resourceaccessreview

package
v3.6.94-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type REST

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

REST implements the RESTStorage interface in terms of an Registry.

func NewREST

func NewREST(authorizer kauthorizer.Authorizer, subjectLocator authorizer.SubjectLocator) *REST

NewREST creates a new REST for policies.

func (*REST) Create

func (r *REST) Create(ctx apirequest.Context, obj runtime.Object) (runtime.Object, error)

Create registers a given new ResourceAccessReview instance to r.registry.

func (*REST) New

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

New creates a new ResourceAccessReview object

type Registry added in v1.0.5

type Registry interface {
	CreateResourceAccessReview(ctx apirequest.Context, resourceAccessReview *api.ResourceAccessReview) (*api.ResourceAccessReviewResponse, error)
}

func NewRegistry added in v1.0.5

func NewRegistry(s Storage) Registry

type Storage added in v1.0.5

type Storage interface {
	Create(ctx apirequest.Context, obj runtime.Object) (runtime.Object, error)
}

Jump to

Keyboard shortcuts

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