auth

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory added in v0.10.0

func NewFactory(
	config *rest.Config,
	kubeClient kubernetes.Interface,
	manifestWorkInformer workinformers.ManifestWorkInformer,
	clusterName string,
	recorder events.Recorder,
	restMapper meta.RESTMapper) *validatorFactory

Types

type ExecutorValidator

type ExecutorValidator interface {
	// Validate whether the work executor subject has permission to operate the specific manifest,
	// if there is no permission will return a basic.NotAllowedError.
	Validate(ctx context.Context, executor *workapiv1.ManifestWorkExecutor, gvr schema.GroupVersionResource,
		namespace, name string, ownedByTheWork bool, obj *unstructured.Unstructured) error
}

ExecutorValidator validates whether the executor has permission to perform the requests to the local managed cluster

Directories

Path Synopsis
Package cache implements a ManifestWork Executor Validator with caching capabilities.
Package cache implements a ManifestWork Executor Validator with caching capabilities.

Jump to

Keyboard shortcuts

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