subjectaccessreview

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(authorizer Authorizer, scheme *runtime.Scheme) rest.Storage

Types

type Authorizer

type Authorizer interface {
	Authorize(ctx context.Context, attr authorizer.Attributes) (authorized authorizer.Decision, reason string, err error)
}

type Strategy

type Strategy struct {
	Authorizer Authorizer
}

func (*Strategy) Create

func (s *Strategy) Create(ctx context.Context, object types.Object) (types.Object, error)

func (*Strategy) NamespaceScoped

func (s *Strategy) NamespaceScoped() bool

func (*Strategy) New

func (s *Strategy) New() types.Object

func (*Strategy) PrepareForCreate

func (s *Strategy) PrepareForCreate(ctx context.Context, obj runtime.Object)

Jump to

Keyboard shortcuts

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