1
0
mirror of https://github.com/rancher/types.git synced 2025-07-17 06:51:02 +00:00

Add EnsureToken

This commit is contained in:
Darren Shepherd 2018-03-03 21:59:27 -07:00
parent df537affe6
commit e9fff3f10f

View File

@ -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)
}