role

package
v3.7.0-0.102.0+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2017 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClusterStrategy = strategy{false, kapi.Scheme}

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

View Source
var LocalStrategy = strategy{true, kapi.Scheme}

Functions

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, bool, error)

func Matcher added in v0.5.1

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

Types

type REST

type REST struct {
	// contains filtered or unexported fields
}

func (*REST) Create

func (s *REST) Create(ctx apirequest.Context, obj runtime.Object, _ bool) (runtime.Object, error)

func (*REST) Delete

func (s *REST) Delete(ctx apirequest.Context, name string, options *metav1.DeleteOptions) (runtime.Object, bool, error)

func (*REST) Get added in v0.4.2

func (s *REST) Get(ctx apirequest.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*REST) List added in v0.4.2

func (s *REST) List(ctx apirequest.Context, options *metainternal.ListOptions) (runtime.Object, error)

func (*REST) New

func (s *REST) New() runtime.Object

func (*REST) NewList added in v0.4.2

func (s *REST) NewList() runtime.Object

func (*REST) Update

func (s *REST) Update(ctx apirequest.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)

type Storage added in v0.5.1

type Storage interface {
	rest.Getter
	rest.Lister
	rest.CreaterUpdater
	rest.GracefulDeleter

	// CreateRoleWithEscalation creates a new policyRole.  Skipping the escalation check should only be done during bootstrapping procedures where no users are currently bound.
	CreateRoleWithEscalation(ctx apirequest.Context, policyRole *authorizationapi.Role) (*authorizationapi.Role, error)
	// UpdateRoleWithEscalation updates a policyRole.  Skipping the escalation check should only be done during bootstrapping procedures where no users are currently bound.
	UpdateRoleWithEscalation(ctx apirequest.Context, policyRole *authorizationapi.Role) (*authorizationapi.Role, bool, error)
}

Storage is an interface for a standard REST Storage backend

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL