authorization

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupAuthorization

func SetupAuthorization(genericAPIServerConfig *genericapiserver.Config, authorizationOpts *apiserveroptions.AuthorizationOptions) error

SetupAuthorization to setup the generic apiserver by authorization options.

Types

type Config

type Config struct {
	AuthorizationModes []string
	// Options for ModeWebhook
	// file for Webhook authorization plugin.
	WebhookConfigFile string
	WebhookVersion    string
	// TTL for caching of authorized responses from the webhook server.
	WebhookCacheAuthorizedTTL time.Duration
	// TTL for caching of unauthorized responses from the webhook server.
	WebhookCacheUnauthorizedTTL time.Duration
}

Config contains the data on how to authorize a request to the Kube API Server

func (Config) New

New returns the right sort of union of multiple authorizer.Authorizer objects based on the authorizationMode or an error.

Directories

Path Synopsis
Package abac authorizes Kubernetes API actions using an Attribute-based access control scheme.
Package abac authorizes Kubernetes API actions using an Attribute-based access control scheme.

Jump to

Keyboard shortcuts

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