1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 13:18:20 +00:00

cluster auth token type changes

This commit is contained in:
Erik Wilson
2018-10-25 09:56:31 -07:00
committed by Craig Jellick
parent 918e3096ba
commit 8cac937266
8 changed files with 75 additions and 6 deletions

View File

@@ -10,6 +10,7 @@ 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)
EnsureClusterToken(clusterName, tokenName, description, userName string) (string, error)
EnsureUser(principalName, displayName string) (*v3.User, error)
CheckAccess(accessMode string, allowedPrincipalIDs []string, userPrincipalID string, groups []v3.Principal) (bool, error)
SetPrincipalOnCurrentUserByUserID(userID string, principal v3.Principal) (*v3.User, error)