Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Matcher ¶
Matcher returns a generic matcher for a given label and field selector.
func SelectableFields ¶
func SelectableFields(roleBinding *authorizationapi.RoleBinding) fields.Set
SelectableFields returns a label set that represents the object
Types ¶
type Registry ¶
type Registry interface {
// ListRoleBindings obtains list of policyRoleBindings that match a selector.
ListRoleBindings(ctx kapi.Context, label labels.Selector, field fields.Selector) (*authorizationapi.RoleBindingList, error)
// GetRoleBinding retrieves a specific policyRoleBinding.
GetRoleBinding(ctx kapi.Context, id string) (*authorizationapi.RoleBinding, error)
// CreateRoleBinding creates a new policyRoleBinding.
CreateRoleBinding(ctx kapi.Context, policyRoleBinding *authorizationapi.RoleBinding) (*authorizationapi.RoleBinding, error)
// UpdateRoleBinding updates a policyRoleBinding.
UpdateRoleBinding(ctx kapi.Context, policyRoleBinding *authorizationapi.RoleBinding) (*authorizationapi.RoleBinding, bool, error)
// DeleteRoleBinding deletes a policyRoleBinding.
DeleteRoleBinding(ctx kapi.Context, id string) error
}
Registry is an interface for things that know how to store RoleBindings.
type Storage ¶
type Storage interface {
rest.Getter
rest.Lister
rest.CreaterUpdater
rest.GracefulDeleter
// CreateRoleBindingWithEscalation creates a new policyRoleBinding. Skipping the escalation check should only be done during bootstrapping procedures where no users are currently bound.
CreateRoleBindingWithEscalation(ctx kapi.Context, policyRoleBinding *authorizationapi.RoleBinding) (*authorizationapi.RoleBinding, error)
// UpdateRoleBindingWithEscalation updates a policyRoleBinding. Skipping the escalation check should only be done during bootstrapping procedures where no users are currently bound.
UpdateRoleBindingWithEscalation(ctx kapi.Context, policyRoleBinding *authorizationapi.RoleBinding) (*authorizationapi.RoleBinding, bool, error)
}
Storage is an interface for a standard REST Storage backend
Source Files
¶
- registry.go
- strategy.go
Click to show internal directories.
Click to hide internal directories.