Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Strategy is the default logic that applies when creating and updating Role objects.
Functions ¶
func Matcher ¶
Matcher returns a generic matcher for a given label and field selector.
func RoleToSelectableFields ¶
func RoleToSelectableFields(role *authorizationapi.Role) fields.Set
RoleToSelectableFields returns a label set that represents the object changes to the returned keys require registering conversions for existing versions using Scheme.AddFieldLabelConversionFunc
Types ¶
type Storage ¶
type Storage interface {
rest.Getter
rest.Lister
rest.CreaterUpdater
rest.GracefulDeleter
// CreateRoleWithEscalation creates a new policyRole. Skipping the escalation check should only be done during bootstrapping procedures where no users are currently bound.
CreateRoleWithEscalation(ctx apirequest.Context, policyRole *authorizationapi.Role) (*authorizationapi.Role, error)
// UpdateRoleWithEscalation updates a policyRole. Skipping the escalation check should only be done during bootstrapping procedures where no users are currently bound.
UpdateRoleWithEscalation(ctx apirequest.Context, policyRole *authorizationapi.Role) (*authorizationapi.Role, 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.