rbac

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIGroup = "rbac.authorization.k8s.io"
)

Variables

This section is empty.

Functions

func AttachSubjectToClusterRoleBinding

func AttachSubjectToClusterRoleBinding(clusterRoleBinding *rbacv1.ClusterRoleBinding, subject rbacv1.Subject) (hasGivenSubject bool)

func CreateClusterRole

func CreateClusterRole(ctx context.Context, k8sclient *kubernetes.Clientset, clusterRole *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)

func CreateClusterRoleBinding

func CreateClusterRoleBinding(ctx context.Context, k8sclient *kubernetes.Clientset, clusterRoleBinding *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)

func DeleteClusterRole

func DeleteClusterRole(ctx context.Context, k8sclient *kubernetes.Clientset, name string) error

func DeleteClusterRoleBindings

func DeleteClusterRoleBindings(ctx context.Context, k8sclient *kubernetes.Clientset, name string) error

func DetachSubjectToClusterRoleBinding

func DetachSubjectToClusterRoleBinding(clusterRoleBinding *rbacv1.ClusterRoleBinding, subject rbacv1.Subject) (hasGivenSubject bool)

func ExtractPSPFromGenericRole added in v1.1.0

func ExtractPSPFromGenericRole(r interface{}) []string

func GetClusterRole

func GetClusterRole(ctx context.Context, k8sclient *kubernetes.Clientset, name string) (*rbacv1.ClusterRole, error)

func GetClusterRoleBinding

func GetClusterRoleBinding(ctx context.Context, k8sclient *kubernetes.Clientset, name string) (*rbacv1.ClusterRoleBinding, error)

func ListClusterRoleBindings

func ListClusterRoleBindings(ctx context.Context, k8sclient *kubernetes.Clientset) (*rbacv1.ClusterRoleBindingList, error)

func ListClusterRolesWithPSP added in v1.1.0

func ListClusterRolesWithPSP(ctx context.Context, k8sclient *kubernetes.Clientset) (*rbacv1.ClusterRoleList, error)

func ListRoleBindings added in v1.1.0

func ListRoleBindings(ctx context.Context, k8sclient *kubernetes.Clientset) (*rbacv1.RoleBindingList, error)

func ListRolesWithPSP added in v1.1.0

func ListRolesWithPSP(ctx context.Context, k8sclient *kubernetes.Clientset) (*rbacv1.RoleList, error)

func UpdateClusterRoleBinding

func UpdateClusterRoleBinding(ctx context.Context, k8sclient *kubernetes.Clientset, clusterRoleBinding *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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