Documentation
¶
Index ¶
- func NewEmptyPolicyBinding(namespace, policyNamespace string) *authorizationapi.PolicyBinding
- type REST
- func (r *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)
- func (r *REST) Delete(ctx kapi.Context, id string) (runtime.Object, error)
- func (r *REST) Get(ctx kapi.Context, id string) (runtime.Object, error)
- func (r *REST) List(ctx kapi.Context, label labels.Selector, field fields.Selector) (runtime.Object, error)
- func (r *REST) New() runtime.Object
- func (r *REST) NewList() runtime.Object
- func (r *REST) Watch(ctx kapi.Context, label labels.Selector, field fields.Selector, ...) (watch.Interface, error)
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEmptyPolicyBinding ¶
func NewEmptyPolicyBinding(namespace, policyNamespace string) *authorizationapi.PolicyBinding
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST implements the RESTStorage interface in terms of an Registry.
type Registry ¶
type Registry interface {
// ListPolicyBindings obtains list of policyBindings that match a selector.
ListPolicyBindings(ctx kapi.Context, label labels.Selector, field fields.Selector) (*authorizationapi.PolicyBindingList, error)
// GetPolicyBinding retrieves a specific policyBinding.
GetPolicyBinding(ctx kapi.Context, id string) (*authorizationapi.PolicyBinding, error)
// CreatePolicyBinding creates a new policyBinding.
CreatePolicyBinding(ctx kapi.Context, policyBinding *authorizationapi.PolicyBinding) error
// UpdatePolicyBinding updates a policyBinding.
UpdatePolicyBinding(ctx kapi.Context, policyBinding *authorizationapi.PolicyBinding) error
// DeletePolicyBinding deletes a policyBinding.
DeletePolicyBinding(ctx kapi.Context, id string) error
// WatchPolicyBindings watches policyBindings.
WatchPolicyBindings(ctx kapi.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
}
Registry is an interface for things that know how to store Policies.
Click to show internal directories.
Click to hide internal directories.