options

package
v0.5.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication struct {
	ClientCert apiserveroptions.ClientCertAuthenticationOptions
}

Authentication wraps ClientCertAuthenticationOptions so we don't pull in more auth machinery than we need with DelegatingAuthenticationOptions

func NewAuthentication

func NewAuthentication() *Authentication

NewAuthentication creates a default Authentication

func (*Authentication) AddFlags

func (c *Authentication) AddFlags(fs *pflag.FlagSet)

AddFlags delegates to ClientCertAuthenticationOptions

func (*Authentication) ApplyTo

func (c *Authentication) ApplyTo(authenticationInfo *genericapiserver.AuthenticationInfo, servingInfo *genericapiserver.SecureServingInfo) error

ApplyTo sets up the x509 Authenticator if the client-ca-file option was passed

func (*Authentication) Validate

func (c *Authentication) Validate() []error

Validate just completes the options pattern. Returns nil.

type Options

type Options struct {
	SecureServing  apiserveroptions.SecureServingOptionsWithLoopback
	Authentication Authentication
	Proxy          proxyoptions.Options
	Logs           *logs.Options

	RootDirectory string
}

func NewOptions

func NewOptions() *Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

func (*Options) Complete

func (o *Options) Complete() error

func (*Options) Validate

func (o *Options) Validate() []error

Jump to

Keyboard shortcuts

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