1
0
mirror of https://github.com/rancher/types.git synced 2025-06-28 22:46:49 +00:00

Add kind label to tokens

This commit is contained in:
Caleb Bron 2019-08-14 15:34:54 -07:00
parent 9097b6038b
commit e79b1fb936

View File

@ -9,8 +9,8 @@ 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)
EnsureClusterToken(clusterName, tokenName, description, userName string) (string, error)
EnsureToken(tokenName, description, kind, userName string) (string, error)
EnsureClusterToken(clusterName, tokenName, description, kind, 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)