package policybased
import "k8s.io/kubernetes/pkg/registry/rbac/clusterrole/policybased"
Package policybased implements a standard storage for ClusterRole that prevents privilege escalation.
Index ¶
- type Storage
- func NewStorage(s rest.StandardStorage, ruleResolver rbacregistryvalidation.AuthorizationRuleResolver) *Storage
- func (s *Storage) Create(ctx genericapirequest.Context, obj runtime.Object, includeUninitialized bool) (runtime.Object, error)
- func (s *Storage) Update(ctx genericapirequest.Context, name string, obj rest.UpdatedObjectInfo) (runtime.Object, bool, error)
Types ¶
type Storage ¶
type Storage struct { rest.StandardStorage // contains filtered or unexported fields }
func NewStorage ¶
func NewStorage(s rest.StandardStorage, ruleResolver rbacregistryvalidation.AuthorizationRuleResolver) *Storage
func (*Storage) Create ¶
func (s *Storage) Create(ctx genericapirequest.Context, obj runtime.Object, includeUninitialized bool) (runtime.Object, error)
func (*Storage) Update ¶
func (s *Storage) Update(ctx genericapirequest.Context, name string, obj rest.UpdatedObjectInfo) (runtime.Object, bool, error)
Source Files ¶
storage.go
- Version
- v1.8.0-beta.0
- Published
- Sep 2, 2017
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 1 minute ago –
Tools for package owners.