accessreview

package
v1.6.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sAuth

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

K8sAuth provides functionality to check if we have enough permissions to run given kubectl command.

func NewK8sAuth

func NewK8sAuth(cli v1.AuthorizationV1Interface) *K8sAuth

NewK8sAuth return a new K8sAuth instance.

func (*K8sAuth) CheckUserAccess

func (c *K8sAuth) CheckUserAccess(ns, verb, resource, name string) error

CheckUserAccess returns error if a given verbs are not supported.

Jump to

Keyboard shortcuts

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