mirror of
https://github.com/rancher/types.git
synced 2025-07-17 06:51:02 +00:00
Add EnsureToken
This commit is contained in:
parent
df537affe6
commit
e9fff3f10f
@ -8,6 +8,7 @@ import (
|
||||
type Manager interface {
|
||||
SetPrincipalOnCurrentUser(apiContext *types.APIContext, principal v3.Principal) (*v3.User, error)
|
||||
GetUser(apiContext *types.APIContext) string
|
||||
EnsureToken(tokenName, description, userName string) (string, error)
|
||||
EnsureUser(principalName, displayName string) (*v3.User, error)
|
||||
CheckAccess(accessMode string, allowedPrincipalIDs []string, user v3.Principal, groups []v3.Principal) (bool, error)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user