Documentation ¶
Index ¶
- type REST
- func (r *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)
- func (r *REST) Delete(ctx kapi.Context, name string) (runtime.Object, error)
- func (r *REST) Get(ctx kapi.Context, name 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 (*REST) NewList() runtime.Object
- func (r *REST) Update(ctx kapi.Context, obj runtime.Object) (runtime.Object, bool, error)
- type Registry
- type VirtualRegistry
- func (m *VirtualRegistry) CreateRoleBinding(ctx kapi.Context, roleBinding *authorizationapi.RoleBinding, ...) error
- func (m *VirtualRegistry) DeleteRoleBinding(ctx kapi.Context, name string) error
- func (m *VirtualRegistry) GetRoleBinding(ctx kapi.Context, name string) (*authorizationapi.RoleBinding, error)
- func (m *VirtualRegistry) ListRoleBindings(ctx kapi.Context, label labels.Selector, field fields.Selector) (*authorizationapi.RoleBindingList, error)
- func (m *VirtualRegistry) UpdateRoleBinding(ctx kapi.Context, roleBinding *authorizationapi.RoleBinding, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST implements the RESTStorage interface in terms of an Registry.
func (*REST) Create ¶
Create registers a given new RoleBinding inside the PolicyBinding instance to r.bindingRegistry.
type Registry ¶ added in v0.3.2
type Registry interface { // ListRoleBindings obtains list of policyRoleBindings that match a selector. ListRoleBindings(ctx kapi.Context, label labels.Selector, field fields.Selector) (*authorizationapi.RoleBindingList, error) // GetRoleBinding retrieves a specific policyRoleBinding. GetRoleBinding(ctx kapi.Context, id string) (*authorizationapi.RoleBinding, error) // CreateRoleBinding creates a new policyRoleBinding. Skipping the escalation check should only be done during bootstrapping procedures where no users are currently bound. CreateRoleBinding(ctx kapi.Context, policyRoleBinding *authorizationapi.RoleBinding, allowEscalation bool) error // UpdateRoleBinding updates a policyRoleBinding. Skipping the escalation check should only be done during bootstrapping procedures where no users are currently bound. UpdateRoleBinding(ctx kapi.Context, policyRoleBinding *authorizationapi.RoleBinding, allowEscalation bool) error // DeleteRoleBinding deletes a policyRoleBinding. DeleteRoleBinding(ctx kapi.Context, id string) error }
Registry is an interface for things that know how to store RoleBindings.
func NewVirtualRegistry ¶ added in v0.3.2
func NewVirtualRegistry(bindingRegistry policybindingregistry.Registry, policyRegistry policyregistry.Registry, masterAuthorizationNamespace string) Registry
NewVirtualRegistry creates a new REST for policies.
type VirtualRegistry ¶ added in v0.3.2
type VirtualRegistry struct {
// contains filtered or unexported fields
}
func (*VirtualRegistry) CreateRoleBinding ¶ added in v0.3.2
func (m *VirtualRegistry) CreateRoleBinding(ctx kapi.Context, roleBinding *authorizationapi.RoleBinding, allowEscalation bool) error
func (*VirtualRegistry) DeleteRoleBinding ¶ added in v0.3.2
func (m *VirtualRegistry) DeleteRoleBinding(ctx kapi.Context, name string) error
func (*VirtualRegistry) GetRoleBinding ¶ added in v0.3.2
func (m *VirtualRegistry) GetRoleBinding(ctx kapi.Context, name string) (*authorizationapi.RoleBinding, error)
func (*VirtualRegistry) ListRoleBindings ¶ added in v0.3.2
func (m *VirtualRegistry) ListRoleBindings(ctx kapi.Context, label labels.Selector, field fields.Selector) (*authorizationapi.RoleBindingList, error)
TODO either add selector for fields ot eliminate the option
func (*VirtualRegistry) UpdateRoleBinding ¶ added in v0.3.2
func (m *VirtualRegistry) UpdateRoleBinding(ctx kapi.Context, roleBinding *authorizationapi.RoleBinding, allowEscalation bool) error
Click to show internal directories.
Click to hide internal directories.