strategy is the default logic that applies when creating and updating RoleBinding objects.
var Strategy = strategy{legacyscheme.Scheme, names.SimpleNameGenerator}
AuthorizerAdapter adapts the registry to the authorizer interface
type AuthorizerAdapter struct { Registry Registry }
func (a AuthorizerAdapter) ListRoleBindings(namespace string) ([]*rbacv1.RoleBinding, error)
Registry is an interface for things that know how to store RoleBindings.
type Registry interface { ListRoleBindings(ctx context.Context, options *metainternalversion.ListOptions) (*rbacv1.RoleBindingList, error) }
func NewRegistry(s rest.StandardStorage) Registry
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.
Name | Synopsis |
---|---|
.. | |
policybased | Package policybased implements a standard storage for RoleBinding that prevents privilege escalation. |
storage |