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: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRecommendedOptions

func NewRecommendedOptions(codec runtime.Codec) *genericoptions.RecommendedOptions

Types

type AggregatorServerOptions

type AggregatorServerOptions struct {
	AlternateDNS           []string
	ProxyClientCertFile    string
	ProxyClientKeyFile     string
	RemoteServicesFile     string
	APIServiceCABundleFile string
}

AggregatorServerOptions contains the state for the aggregator apiserver

func NewAggregatorServerOptions

func NewAggregatorServerOptions() *AggregatorServerOptions

func (*AggregatorServerOptions) AddFlags

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

func (*AggregatorServerOptions) ApplyTo

func (o *AggregatorServerOptions) ApplyTo(aggregatorConfig *aggregatorapiserver.Config, etcdOpts *options.EtcdOptions, dataPath string) error

func (*AggregatorServerOptions) Validate

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

type ExtraOptions

type ExtraOptions struct {
	DevMode         bool
	ExternalAddress string
	APIURL          string
	Verbosity       int
}

func NewExtraOptions

func NewExtraOptions() *ExtraOptions

func (*ExtraOptions) AddFlags

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

func (*ExtraOptions) ApplyTo

func (*ExtraOptions) Validate

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

type Options

type Options struct {
	RecommendedOptions *genericoptions.RecommendedOptions
	AggregatorOptions  *AggregatorServerOptions
	StorageOptions     *StorageOptions
	ExtraOptions       *ExtraOptions
	APIOptions         []OptionsProvider
}

func NewOptions

func NewOptions(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) Validate

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

type OptionsProvider

type OptionsProvider interface {
	AddFlags(fs *pflag.FlagSet)
	ApplyTo(config *genericapiserver.RecommendedConfig) error
	ValidateOptions() []error
}

type StorageOptions

type StorageOptions struct {
	StorageType            StorageType
	DataPath               string
	Address                string
	DualWriterDesiredModes map[string]grafanarest.DualWriterMode
}

func NewStorageOptions

func NewStorageOptions() *StorageOptions

func (*StorageOptions) AddFlags

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

func (*StorageOptions) ApplyTo

func (o *StorageOptions) ApplyTo(serverConfig *genericapiserver.RecommendedConfig, etcdOptions *options.EtcdOptions) error

func (*StorageOptions) Validate

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

type StorageType

type StorageType string
const (
	StorageTypeFile        StorageType = "file"
	StorageTypeEtcd        StorageType = "etcd"
	StorageTypeLegacy      StorageType = "legacy"
	StorageTypeUnified     StorageType = "unified"
	StorageTypeUnifiedGrpc StorageType = "unified-grpc"
)

Jump to

Keyboard shortcuts

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