Documentation
¶
Index ¶
- func ChangeAttributesResource(a authorizer.Attributes, groupVersionResource schema.GroupVersionResource, ...) authorizer.Attributes
- func CreateRoleBinding(ctx context.Context, client client.Client, namespace string, ...) error
- func ForbiddenMessage(attributes authorizer.Attributes) string
- func GetAccountsByUserInfo(ctx context.Context, client client2.Client, userInfo user.Info) ([]*configv1alpha1.Account, error)
- func GetClusterRoleFor(account *configv1alpha1.Account) string
- func IsUserPartOfAccount(userInfo user.Info, account *configv1alpha1.Account) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeAttributesResource ¶ added in v0.1.2
func ChangeAttributesResource(a authorizer.Attributes, groupVersionResource schema.GroupVersionResource, namespace string) authorizer.Attributes
func CreateRoleBinding ¶
func CreateRoleBinding(ctx context.Context, client client.Client, namespace string, owner *configv1alpha1.Account, scheme *runtime.Scheme) error
CreateRoleBinding creates a new role binding for the target account with the given name and namespace
func ForbiddenMessage ¶ added in v0.1.10
func ForbiddenMessage(attributes authorizer.Attributes) string
func GetAccountsByUserInfo ¶ added in v0.1.2
func GetClusterRoleFor ¶
func GetClusterRoleFor(account *configv1alpha1.Account) string
GetClusterRoleFor returns the cluster role for the given account if there is any
func IsUserPartOfAccount ¶ added in v0.1.2
func IsUserPartOfAccount(userInfo user.Info, account *configv1alpha1.Account) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.