Documentation ¶
Index ¶
- func NewREST(registry Registry) apiserver.RESTStorage
- type REST
- 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, labels, fields klabels.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 ¶
func NewREST ¶
func NewREST(registry 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) 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, labels, fields klabels.Selector) (*authorizationapi.RoleBindingList, error) // GetRoleBinding retrieves a specific policyRoleBinding. GetRoleBinding(ctx kapi.Context, id string) (*authorizationapi.RoleBinding, error) // CreateRoleBinding creates a new policyRoleBinding. CreateRoleBinding(ctx kapi.Context, policyRoleBinding *authorizationapi.RoleBinding) error // UpdateRoleBinding updates a policyRoleBinding. UpdateRoleBinding(ctx kapi.Context, policyRoleBinding *authorizationapi.RoleBinding) 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) 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, labels, fields klabels.Selector) (*authorizationapi.RoleBindingList, error)
func (*VirtualRegistry) UpdateRoleBinding ¶ added in v0.3.2
func (m *VirtualRegistry) UpdateRoleBinding(ctx kapi.Context, roleBinding *authorizationapi.RoleBinding) error
Click to show internal directories.
Click to hide internal directories.