localresourceaccessreview

package
v0.0.0-...-4d083f9 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: Apache-2.0 Imports: 8 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(clusterRARRegistry resourceaccessreview.Registry) *REST

func (*REST) Create

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

Create transforms a LocalRAR into an ClusterRAR that is requesting a namespace. That collapses the code paths. LocalResourceAccessReview exists to allow clean expression of policy.

func (*REST) New

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

type Registry

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

func NewRegistry

func NewRegistry(s Storage) Registry

type Storage

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