options

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggingOptions

type LoggingOptions struct {
	Level string
	// contains filtered or unexported fields
}

func NewLoggingOptions

func NewLoggingOptions(logger log.Logger) *LoggingOptions

func (*LoggingOptions) AddFlags

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

func (*LoggingOptions) ApplyTo

func (*LoggingOptions) Validate

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

type MetricsOptions

type MetricsOptions struct {
	Enabled           bool
	MetricsRegisterer prometheus.Registerer
	// contains filtered or unexported fields
}

func NewMetrcicsOptions

func NewMetrcicsOptions(logger log.Logger) *MetricsOptions

func (*MetricsOptions) AddFlags

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

func (*MetricsOptions) ApplyTo

func (*MetricsOptions) Validate

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

type Options

type Options struct {
	LoggingOptions     *LoggingOptions
	ExtraOptions       *options.ExtraOptions
	RecommendedOptions *genericoptions.RecommendedOptions
	TracingOptions     *TracingOptions
	MetricsOptions     *MetricsOptions
	ServerRunOptions   *genericoptions.ServerRunOptions
	StorageOptions     *options.StorageOptions
}

func New

func New(logger log.Logger, codec runtime.Codec) *Options

func (*Options) AddFlags

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

func (*Options) ApplyTo

func (o *Options) ApplyTo(serverConfig *genericapiserver.RecommendedConfig) error

func (*Options) ModifiedApplyTo

func (o *Options) ModifiedApplyTo(config *genericapiserver.RecommendedConfig) error

A copy of ApplyTo in recommended.go, but for >= 0.28, server pkg in apiserver does a bit extra causing a panic when CoreAPI is set to nil

func (*Options) Validate

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

type TracingOptions

type TracingOptions struct {
	JaegerAddress     string
	JaegerPropagation string

	OTLPAddress     string
	OTLPPropagation string

	ServiceName string
	Tags        map[string]string

	SamplerType        string
	SamplerParam       float64
	SamplingServiceURL string

	TracingService *tracing.TracingService
	// contains filtered or unexported fields
}

func NewTracingOptions

func NewTracingOptions(logger log.Logger) *TracingOptions

func (*TracingOptions) AddFlags

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

func (*TracingOptions) ApplyTo

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