Documentation ¶
Index ¶
- func NewEmptyPolicy(namespace string) *authorizationapi.Policy
- func NewVirtualStorage(policyStorage policyregistry.Registry) roleregistry.Storage
- type VirtualStorage
- func (m *VirtualStorage) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)
- func (m *VirtualStorage) Delete(ctx kapi.Context, name string, options *kapi.DeleteOptions) (runtime.Object, error)
- func (m *VirtualStorage) EnsurePolicy(ctx kapi.Context) (*authorizationapi.Policy, error)
- func (m *VirtualStorage) Get(ctx kapi.Context, name string) (runtime.Object, error)
- func (m *VirtualStorage) List(ctx kapi.Context, label labels.Selector, field fields.Selector) (runtime.Object, error)
- func (m *VirtualStorage) New() runtime.Object
- func (m *VirtualStorage) NewList() runtime.Object
- func (m *VirtualStorage) 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 NewVirtualStorage ¶
func NewVirtualStorage(policyStorage policyregistry.Registry) roleregistry.Storage
NewVirtualStorage creates a new REST for policies.
Types ¶
type VirtualStorage ¶
type VirtualStorage struct { PolicyStorage policyregistry.Registry CreateStrategy rest.RESTCreateStrategy UpdateStrategy rest.RESTUpdateStrategy }
func (*VirtualStorage) Delete ¶
func (m *VirtualStorage) Delete(ctx kapi.Context, name string, options *kapi.DeleteOptions) (runtime.Object, error)
Delete(ctx api.Context, name string) (runtime.Object, error)
func (*VirtualStorage) EnsurePolicy ¶
func (m *VirtualStorage) EnsurePolicy(ctx kapi.Context) (*authorizationapi.Policy, error)
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.
func (*VirtualStorage) List ¶
func (m *VirtualStorage) List(ctx kapi.Context, label labels.Selector, field fields.Selector) (runtime.Object, error)
TODO either add selector for fields ot eliminate the option
func (*VirtualStorage) New ¶
func (m *VirtualStorage) New() runtime.Object
func (*VirtualStorage) NewList ¶
func (m *VirtualStorage) NewList() runtime.Object
Click to show internal directories.
Click to hide internal directories.