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 SelectableFields ¶
func SelectableFields(role *authorizationapi.Role) fields.Set
SelectableFields returns a label set that represents the object
Types ¶
type Registry ¶
type Registry interface { // ListRoles obtains list of policyRoles that match a selector. ListRoles(ctx kapi.Context, label labels.Selector, field fields.Selector) (*authorizationapi.RoleList, error) // GetRole retrieves a specific policyRole. GetRole(ctx kapi.Context, id string) (*authorizationapi.Role, error) // CreateRole creates a new policyRole. CreateRole(ctx kapi.Context, policyRole *authorizationapi.Role) (*authorizationapi.Role, error) // UpdateRole updates a policyRole. UpdateRole(ctx kapi.Context, policyRole *authorizationapi.Role) (*authorizationapi.Role, bool, error) // DeleteRole deletes a policyRole. DeleteRole(ctx kapi.Context, id string) error }
Registry is an interface for things that know how to store Roles.
type Storage ¶
type Storage interface { rest.Getter rest.Lister rest.CreaterUpdater rest.GracefulDeleter }
Storage is an interface for a standard REST Storage backend
Click to show internal directories.
Click to hide internal directories.