Documentation ¶
Index ¶
- func NewEmptyPolicy(namespace string) *authorizationapi.Policy
- func NewREST(registry policyregistry.Registry) apiserver.RESTStorage
- 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) EnsurePolicy(ctx kapi.Context) (*authorizationapi.Policy, error)
- func (r *REST) New() runtime.Object
- func (r *REST) Update(ctx kapi.Context, obj runtime.Object) (runtime.Object, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEmptyPolicy ¶
func NewEmptyPolicy(namespace string) *authorizationapi.Policy
func NewREST ¶
func NewREST(registry policyregistry.Registry) apiserver.RESTStorage
NewREST creates a new REST for policies.
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST implements the RESTStorage interface in terms of an Registry.
func (*REST) EnsurePolicy ¶
EnsurePolicy returns the policy object for the specified namespace. If one does not exist, it is created for you. Permission to create, update, or delete roles in a namespace implies the ability to create a Policy object itself.
Click to show internal directories.
Click to hide internal directories.