Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error is a custom rbac error type
func NewRBACError ¶
NewRBACError is a constructor for rbac error
type Matcher ¶
type Matcher interface { MatchPolicyRules(actual, requested []rbacv1.PolicyRule) (matches bool) MatchPolicyRule(actual, requested *rbacv1.PolicyRule) (matches bool) MatchRoleBindingsSubjects(roleBindings []rbacv1.RoleBinding, subjectName, namespace string) (matchesRoleBindings []rbacv1.RoleBinding) MatchRoleBindingSubjects(roleBinding *rbacv1.RoleBinding, subjectName, namespace string) (matches bool) MatchRoles(roles []rbacv1.Role, names []string) (matchesRoles []rbacv1.Role) }
Matcher is a helper for matching actual resources with requested ones
Click to show internal directories.
Click to hide internal directories.