Documentation ¶
Index ¶
- Constants
- func AttachSubjectToClusterRoleBinding(clusterRoleBinding *rbacv1.ClusterRoleBinding, subject rbacv1.Subject) (hasGivenSubject bool)
- func CreateClusterRole(ctx context.Context, k8sclient *kubernetes.Clientset, ...) (*rbacv1.ClusterRole, error)
- func CreateClusterRoleBinding(ctx context.Context, k8sclient *kubernetes.Clientset, ...) (*rbacv1.ClusterRoleBinding, error)
- func CreatePSPRole(ctx context.Context, k8sclient *kubernetes.Clientset, ...) (*rbacv1.ClusterRole, error)
- func CreatePSPRoleBinding(ctx context.Context, k8sclient *kubernetes.Clientset, ...) (*rbacv1.ClusterRoleBinding, error)
- func DeleteClusterRole(ctx context.Context, k8sclient *kubernetes.Clientset, name string) error
- func DeleteClusterRoleBindings(ctx context.Context, k8sclient *kubernetes.Clientset, name string) error
- func DetachSubjectToClusterRoleBinding(clusterRoleBinding *rbacv1.ClusterRoleBinding, subject rbacv1.Subject) (hasGivenSubject bool)
- func ExtractPSPFromGenericRole(r interface{}) []string
- func GetClusterRole(ctx context.Context, k8sclient *kubernetes.Clientset, name string) (*rbacv1.ClusterRole, error)
- func GetClusterRoleBinding(ctx context.Context, k8sclient *kubernetes.Clientset, name string) (*rbacv1.ClusterRoleBinding, error)
- func ListClusterRoleBindings(ctx context.Context, k8sclient *kubernetes.Clientset) (*rbacv1.ClusterRoleBindingList, error)
- func ListClusterRolesWithPSP(ctx context.Context, k8sclient *kubernetes.Clientset) (*rbacv1.ClusterRoleList, error)
- func ListRoleBindings(ctx context.Context, k8sclient *kubernetes.Clientset) (*rbacv1.RoleBindingList, error)
- func ListRolesWithPSP(ctx context.Context, k8sclient *kubernetes.Clientset) (*rbacv1.RoleList, error)
- func UpdateClusterRoleBinding(ctx context.Context, k8sclient *kubernetes.Clientset, ...) (*rbacv1.ClusterRoleBinding, error)
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 CreatePSPRole ¶
func CreatePSPRole(ctx context.Context, k8sclient *kubernetes.Clientset, psp *policyv1.PodSecurityPolicy) (*rbacv1.ClusterRole, error)
func CreatePSPRoleBinding ¶
func CreatePSPRoleBinding(ctx context.Context, k8sclient *kubernetes.Clientset, psp *policyv1.PodSecurityPolicy) (*rbacv1.ClusterRoleBinding, error)
func DeleteClusterRole ¶
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 UpdateClusterRoleBinding ¶
func UpdateClusterRoleBinding(ctx context.Context, k8sclient *kubernetes.Clientset, clusterRoleBinding *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.