Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry interface { // ListClusterRoles obtains list of policyClusterRoles that match a selector. ListClusterRoles(ctx kapi.Context, label labels.Selector, field fields.Selector) (*authorizationapi.ClusterRoleList, error) // GetClusterRole retrieves a specific policyClusterRole. GetClusterRole(ctx kapi.Context, id string) (*authorizationapi.ClusterRole, error) // CreateClusterRole creates a new policyClusterRole. CreateClusterRole(ctx kapi.Context, policyClusterRole *authorizationapi.ClusterRole) (*authorizationapi.ClusterRole, error) // UpdateClusterRole updates a policyClusterRole. UpdateClusterRole(ctx kapi.Context, policyClusterRole *authorizationapi.ClusterRole) (*authorizationapi.ClusterRole, bool, error) // DeleteClusterRole deletes a policyClusterRole. DeleteClusterRole(ctx kapi.Context, id string) error }
Registry is an interface for things that know how to store ClusterRoles.
func NewRegistry ¶
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.
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.