Documentation ¶
Index ¶
- type ClusterRoleAdapter
- type ClusterRoleBindingAdapter
- func (a ClusterRoleBindingAdapter) AppliesToUser(user user.Info) bool
- func (a ClusterRoleBindingAdapter) Groups() sets.String
- func (a ClusterRoleBindingAdapter) Name() string
- func (a ClusterRoleBindingAdapter) Namespace() string
- func (a ClusterRoleBindingAdapter) RoleRef() kapi.ObjectReference
- func (a ClusterRoleBindingAdapter) Users() sets.String
- type Role
- type RoleAdapter
- type RoleBinding
- type RoleBindingAdapter
- func (a RoleBindingAdapter) AppliesToUser(user user.Info) bool
- func (a RoleBindingAdapter) Groups() sets.String
- func (a RoleBindingAdapter) Name() string
- func (a RoleBindingAdapter) Namespace() string
- func (a RoleBindingAdapter) RoleRef() kapi.ObjectReference
- func (a RoleBindingAdapter) Users() sets.String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterRoleAdapter ¶
type ClusterRoleAdapter struct {
// contains filtered or unexported fields
}
func (ClusterRoleAdapter) Name ¶
func (a ClusterRoleAdapter) Name() string
func (ClusterRoleAdapter) Namespace ¶
func (a ClusterRoleAdapter) Namespace() string
func (ClusterRoleAdapter) Rules ¶
func (a ClusterRoleAdapter) Rules() []authorizationapi.PolicyRule
type ClusterRoleBindingAdapter ¶
type ClusterRoleBindingAdapter struct {
// contains filtered or unexported fields
}
func (ClusterRoleBindingAdapter) AppliesToUser ¶ added in v1.3.0
func (a ClusterRoleBindingAdapter) AppliesToUser(user user.Info) bool
AppliesToUser returns true if this binding applies to the provided user.
func (ClusterRoleBindingAdapter) Groups ¶
func (a ClusterRoleBindingAdapter) Groups() sets.String
func (ClusterRoleBindingAdapter) Name ¶
func (a ClusterRoleBindingAdapter) Name() string
func (ClusterRoleBindingAdapter) Namespace ¶
func (a ClusterRoleBindingAdapter) Namespace() string
func (ClusterRoleBindingAdapter) RoleRef ¶
func (a ClusterRoleBindingAdapter) RoleRef() kapi.ObjectReference
func (ClusterRoleBindingAdapter) Users ¶
func (a ClusterRoleBindingAdapter) Users() sets.String
type Role ¶
type Role interface { Name() string Namespace() string Rules() []authorizationapi.PolicyRule }
func NewClusterRoleAdapter ¶
func NewClusterRoleAdapter(role *authorizationapi.ClusterRole) Role
func NewLocalRoleAdapter ¶
func NewLocalRoleAdapter(role *authorizationapi.Role) Role
type RoleAdapter ¶
type RoleAdapter struct {
// contains filtered or unexported fields
}
func (RoleAdapter) Name ¶
func (a RoleAdapter) Name() string
func (RoleAdapter) Namespace ¶
func (a RoleAdapter) Namespace() string
func (RoleAdapter) Rules ¶
func (a RoleAdapter) Rules() []authorizationapi.PolicyRule
type RoleBinding ¶
type RoleBinding interface { Name() string Namespace() string RoleRef() kapi.ObjectReference Users() sets.String Groups() sets.String // AppliesToUser returns true if the provided user matches this role binding AppliesToUser(user.Info) bool }
func NewClusterRoleBindingAdapter ¶
func NewClusterRoleBindingAdapter(roleBinding *authorizationapi.ClusterRoleBinding) RoleBinding
func NewLocalRoleBindingAdapter ¶
func NewLocalRoleBindingAdapter(roleBinding *authorizationapi.RoleBinding) RoleBinding
type RoleBindingAdapter ¶
type RoleBindingAdapter struct {
// contains filtered or unexported fields
}
func (RoleBindingAdapter) AppliesToUser ¶ added in v1.3.0
func (a RoleBindingAdapter) AppliesToUser(user user.Info) bool
AppliesToUser returns true if this binding applies to the provided user.
func (RoleBindingAdapter) Groups ¶
func (a RoleBindingAdapter) Groups() sets.String
func (RoleBindingAdapter) Name ¶
func (a RoleBindingAdapter) Name() string
func (RoleBindingAdapter) Namespace ¶
func (a RoleBindingAdapter) Namespace() string
func (RoleBindingAdapter) RoleRef ¶
func (a RoleBindingAdapter) RoleRef() kapi.ObjectReference
func (RoleBindingAdapter) Users ¶
func (a RoleBindingAdapter) Users() sets.String
Click to show internal directories.
Click to hide internal directories.