package role

import "k8s.io/kubernetes/pkg/registry/role"

Package certificates provides Registry interface and its RESTStorage implementation for storing Role objects.

Index

Variables

var Strategy = strategy{api.Scheme, api.SimpleNameGenerator}

strategy is the default logic that applies when creating and updating Role objects.

Functions

func Matcher

Matcher returns a generic matcher for a given label and field selector.

func SelectableFields

func SelectableFields(obj *rbac.Role) fields.Set

SelectableFields returns a field set that can be used for filter selection

Types

type Registry

type Registry interface {
	ListRoles(ctx api.Context, options *api.ListOptions) (*rbac.RoleList, error)
	CreateRole(ctx api.Context, role *rbac.Role) error
	UpdateRole(ctx api.Context, role *rbac.Role) error
	GetRole(ctx api.Context, name string) (*rbac.Role, error)
	DeleteRole(ctx api.Context, name string) error
	WatchRoles(ctx api.Context, options *api.ListOptions) (watch.Interface, 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

PathSynopsis
pkg/registry/role/etcd
pkg/registry/role/policybasedPackage policybased implements a standard storage for Role that prevents privilege escalation.
Version
v1.4.0-beta.5
Published
Sep 15, 2016
Platform
linux/amd64
Imports
11 packages
Last checked
15 minutes ago

Tools for package owners.