options

package
v0.0.0-...-43b7830 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationOptions

type AuthenticationOptions struct {
	TokenSuccessCacheTTL time.Duration
	TokenFailureCacheTTL time.Duration
}

func NewAuthenticationOptions

func NewAuthenticationOptions() *AuthenticationOptions

func (*AuthenticationOptions) AddFlags

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

func (*AuthenticationOptions) ApplyTo

func (o *AuthenticationOptions) ApplyTo(
	authenticationInfo *genericserver.AuthenticationInfo,
	servingInfo *genericserver.SecureServingInfo,
	openAPIConfig *openapicommon.Config,
	sniVerifyOptionsProvider x509.SNIVerifyOptionsProvider,
	clientProvider clusters.ClientProvider,
	controlplaneauthnOptions *options.AuthenticationOptions,
) error

func (*AuthenticationOptions) ToAuthenticationConfig

func (o *AuthenticationOptions) ToAuthenticationConfig(
	controlplaneAutheNConfig authenticator.Config,
	sniVerifyOptionsProvider x509.SNIVerifyOptionsProvider,
	clientProvider clusters.ClientProvider,
) (*proxyauthenticator.AuthenricatorConfig, error)

func (*AuthenticationOptions) Validate

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

type AuthorizationOptions

type AuthorizationOptions struct {
	CacheAuthorizedTTL   time.Duration
	CacheUnauthorizedTTL time.Duration
}

func NewAuthorizationOptions

func NewAuthorizationOptions() *AuthorizationOptions

func (*AuthorizationOptions) AddFlags

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

func (*AuthorizationOptions) ApplyTo

func (o *AuthorizationOptions) ApplyTo(
	genericConfig *genericserver.Config,
	clientProvider clusters.ClientProvider,
) error

func (*AuthorizationOptions) ToAuthorizationConfig

func (o *AuthorizationOptions) ToAuthorizationConfig(clientProvider clusters.ClientProvider) *authorizer.AuthorizerConfig

func (*AuthorizationOptions) Validate

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

type LoggingOptions

type LoggingOptions struct {
	EnableProxyAccessLog bool
}

func NewLoggingOptions

func NewLoggingOptions() *LoggingOptions

func (*LoggingOptions) AddFlags

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

func (*LoggingOptions) Validate

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

type RateLimiterOptions

type RateLimiterOptions struct {
	RateLimiter          string
	RateLimiterService   string
	Kubeconfig           string
	ClientIdentityPrefix string
}

func NewRateLimiterOptions

func NewRateLimiterOptions() *RateLimiterOptions

func (*RateLimiterOptions) AddFlags

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

func (*RateLimiterOptions) Validate

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

type SecureServingOptions

type SecureServingOptions struct {
	Ports []int
}

func NewSecureServingOptions

func NewSecureServingOptions() *SecureServingOptions

func (*SecureServingOptions) AddFlags

func (s *SecureServingOptions) AddFlags(fs *pflag.FlagSet)

func (*SecureServingOptions) ApplyTo

func (s *SecureServingOptions) ApplyTo(
	secureServingInfo **server.SecureServingInfo,
	controlplaneSecureServingOptions contronplaneoptions.SecureServingOptions,
) error

func (*SecureServingOptions) ValidateWith

func (s *SecureServingOptions) ValidateWith(controlplaneSecureServingOptions contronplaneoptions.SecureServingOptions) []error

type ServerRunOptions

type ServerRunOptions struct {
	MaxInflightThreshold     int32
	MaxQPSThreshold          int32
	MaxThroughputMBThreshold int32
	GoawayChance             float64
	DefaultFeatureGate       featuregate.MutableFeatureGate
}

func NewServerRunOptions

func NewServerRunOptions() *ServerRunOptions

func (*ServerRunOptions) AddFlags

func (s *ServerRunOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags to the specified FlagSet

func (*ServerRunOptions) Validate

func (s *ServerRunOptions) Validate() []error

Validate checks validation of ServerRunOptions

type TracingOptions

type TracingOptions struct {
	EnableProxyTracing bool
}

func NewTracingOptions

func NewTracingOptions() *TracingOptions

func (*TracingOptions) AddFlags

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

func (*TracingOptions) Validate

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

Jump to

Keyboard shortcuts

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