access

package
v2.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(usernames map[string]struct{}, groups map[string]struct{}, user user.User, action string) error

Types

type AccessDeniedError

type AccessDeniedError struct {
	Reason string
}

func (*AccessDeniedError) Error

func (a *AccessDeniedError) Error() string

func (*AccessDeniedError) Is

func (a *AccessDeniedError) Is(err error) bool

type ControlPlaneMetadataAccess

type ControlPlaneMetadataAccess interface {
	ValidateView(ctx context.Context, user user.User) error
}

Jump to

Keyboard shortcuts

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