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 ¶
func NewExtraOptions ¶
func NewExtraOptions() *ExtraOptions
func (*ExtraOptions) AddFlags ¶
func (o *ExtraOptions) AddFlags(fs *pflag.FlagSet)
func (*ExtraOptions) ApplyTo ¶
func (o *ExtraOptions) ApplyTo(c *genericapiserver.RecommendedConfig) error
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 (*Options) ApplyTo ¶
func (o *Options) ApplyTo(serverConfig *genericapiserver.RecommendedConfig) 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" )
Click to show internal directories.
Click to hide internal directories.