authz

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SARAuthorizer

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

SARAuthorizer authorizes user using K8s SubjectAccessReview API

func NewSARAuthorizer

func NewSARAuthorizer(cli kubernetes.Interface) *SARAuthorizer

func (*SARAuthorizer) Authorize

func (s *SARAuthorizer) Authorize(ctx context.Context, userInfo *authv1.UserInfo, namespace string) (authorizer.Decision, string, error)

Authorize check if the user is authorized to access volumesnapshots resources using SubjectAccessReview API

Jump to

Keyboard shortcuts

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