mirror of
https://github.com/rancher/types.git
synced 2025-08-02 13:17:55 +00:00
Add CreateNewUserClusterRoleBinding to user interface
This commit is contained in:
parent
d6d559ea16
commit
38a6850257
@ -3,6 +3,7 @@ package user
|
||||
import (
|
||||
"github.com/rancher/norman/types"
|
||||
"github.com/rancher/types/apis/management.cattle.io/v3"
|
||||
apitypes "k8s.io/apimachinery/pkg/types"
|
||||
)
|
||||
|
||||
type Manager interface {
|
||||
@ -12,4 +13,5 @@ type Manager interface {
|
||||
EnsureUser(principalName, displayName string) (*v3.User, error)
|
||||
CheckAccess(accessMode string, allowedPrincipalIDs []string, user v3.Principal, groups []v3.Principal) (bool, error)
|
||||
SetPrincipalOnCurrentUserByUserID(userID string, principal v3.Principal) (*v3.User, error)
|
||||
CreateNewUserClusterRoleBinding(userName string, userUID apitypes.UID) error
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user