am

package
v0.0.0-...-03b3356 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessManagementInterface

type AccessManagementInterface interface {
	GetGlobalRoleOfUser(username string) (*iamv1.GlobalRole, error)
	GetClusterRoleOfUser(username string) (*rbacv1.ClusterRole, error)
	GetNamespaceRoleOfUser(username string, groups []string, namespace string) ([]*rbacv1.Role, error)
	ListRoles(namespace string, query *query.Query) (*rbacv1.RoleList, error)
	ListClusterRoles(query *query.Query) (*api.ListResult, error)
	ListGlobalRoles(query *query.Query) (*iamv1.GlobalRoleList, error)
	ListGlobalRoleBindings(username string) ([]*iamv1.GlobalRoleBinding, error)
	ListClusterRoleBindings(username string) ([]*rbacv1.ClusterRoleBinding, error)
	ListRoleBindings(username string, groups []string, namespace string) ([]*rbacv1.RoleBinding, error)
	GetRoleBindingOfUser(username string) ([]*rbacv1.RoleBinding, error)
	GetRoleReferenceRules(roleRef rbacv1.RoleRef, namespace string) (string, []rbacv1.PolicyRule, error)
	GetGlobalRole(globalRole string) (*iamv1.GlobalRole, error)
	CreateGlobalRoleBinding(username string, globalRole string) error
	CreateOrUpdateGlobalRole(globalRole *iamv1.GlobalRole) (*iamv1.GlobalRole, error)
	PatchGlobalRole(globalRole *iamv1.GlobalRole) (*iamv1.GlobalRole, error)
	DeleteGlobalRole(name string) error
	CreateOrUpdateClusterRole(clusterRole *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)
	DeleteClusterRole(name string) error
	GetClusterRole(name string) (*rbacv1.ClusterRole, error)
	GetNamespaceRole(namespace string, name string) (*rbacv1.Role, error)
	CreateOrUpdateNamespaceRole(namespace string, role *rbacv1.Role) (*rbacv1.Role, error)
	DeleteNamespaceRole(namespace string, name string) error
	CreateNamespaceRoleBinding(username string, namespace string, role string) error
	RemoveUserFromNamespace(username string, namespace string) error
	CreateClusterRoleBinding(username string, role string) error
	RemoveUserFromCluster(username string) error
	PatchNamespaceRole(namespace string, role *rbacv1.Role) (*rbacv1.Role, error)
	PatchClusterRole(clusterRole *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)
	CreateRoleBinding(namespace string, roleBinding *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)
	DeleteRoleBinding(namespace, name string) error
	GetNamespaceRoleBindingByUser(namespace, username string) *rbacv1.RoleBinding
	DeleteNamespaceRoleBindingByUser(namespace, username string) error
}

func NewOperator

func NewOperator(aiClient ai.Interface, k8sClient kubernetes.Interface, factory informers.InformerFactory) AccessManagementInterface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL