policybased

package
v1.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmptyPolicy

func NewEmptyPolicy(namespace string) *authorizationapi.Policy

func NewVirtualStorage

func NewVirtualStorage(policyStorage policyregistry.Registry, ruleResolver rulevalidation.AuthorizationRuleResolver) roleregistry.Storage

NewVirtualStorage creates a new REST for policies.

Types

type VirtualStorage

type VirtualStorage struct {
	PolicyStorage policyregistry.Registry

	RuleResolver   rulevalidation.AuthorizationRuleResolver
	CreateStrategy rest.RESTCreateStrategy
	UpdateStrategy rest.RESTUpdateStrategy
}

func (*VirtualStorage) Create

func (m *VirtualStorage) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)

func (*VirtualStorage) CreateRoleWithEscalation added in v1.1.4

func (m *VirtualStorage) CreateRoleWithEscalation(ctx kapi.Context, obj *authorizationapi.Role) (*authorizationapi.Role, error)

func (*VirtualStorage) Delete

func (m *VirtualStorage) Delete(ctx kapi.Context, name string, options *kapi.DeleteOptions) (runtime.Object, error)

Delete(ctx api.Context, name string) (runtime.Object, error)

func (*VirtualStorage) EnsurePolicy

func (m *VirtualStorage) EnsurePolicy(ctx kapi.Context) (*authorizationapi.Policy, error)

EnsurePolicy returns the policy object for the specified namespace. If one does not exist, it is created for you. Permission to create, update, or delete roles in a namespace implies the ability to create a Policy object itself.

func (*VirtualStorage) Get

func (m *VirtualStorage) Get(ctx kapi.Context, name string) (runtime.Object, error)

func (*VirtualStorage) List

func (m *VirtualStorage) List(ctx kapi.Context, options *kapi.ListOptions) (runtime.Object, error)

func (*VirtualStorage) New

func (m *VirtualStorage) New() runtime.Object

func (*VirtualStorage) NewList

func (m *VirtualStorage) NewList() runtime.Object

func (*VirtualStorage) Update

func (m *VirtualStorage) Update(ctx kapi.Context, obj runtime.Object) (runtime.Object, bool, error)

func (*VirtualStorage) UpdateRoleWithEscalation added in v1.1.4

func (m *VirtualStorage) UpdateRoleWithEscalation(ctx kapi.Context, obj *authorizationapi.Role) (*authorizationapi.Role, bool, error)

Jump to

Keyboard shortcuts

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