package role
import "k8s.io/kubernetes/pkg/registry/rbac/role"
Package role provides Registry interface and its RESTStorage implementation for storing Role objects.
Index ¶
Variables ¶
var Strategy = strategy{legacyscheme.Scheme, names.SimpleNameGenerator}
Strategy is the default logic that applies when creating and updating Role objects.
Types ¶
type AuthorizerAdapter ¶
type AuthorizerAdapter struct { Registry Registry }
AuthorizerAdapter adapts the registry to the authorizer interface
func (AuthorizerAdapter) GetRole ¶
func (a AuthorizerAdapter) GetRole(namespace, name string) (*rbacv1.Role, error)
GetRole returns the corresponding Role by name in specified namespace
type Registry ¶
type Registry interface { GetRole(ctx context.Context, name string, options *metav1.GetOptions) (*rbacv1.Role, error) }
Registry is an interface for things that know how to store Roles.
func NewRegistry ¶
func NewRegistry(s rest.StandardStorage) Registry
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.
Source Files ¶
doc.go registry.go strategy.go
Directories ¶
Path | Synopsis |
---|---|
pkg/registry/rbac/role/policybased | Package policybased implements a standard storage for Role that prevents privilege escalation. |
pkg/registry/rbac/role/storage |
- Version
- v1.29.9
- Published
- Sep 11, 2024
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 10 minutes ago –
Tools for package owners.