options

package
v1.10.0-preview2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	CustomMetricsAdapterServerOptions *options.CustomMetricsAdapterServerOptions

	KubeConfig string
}

Options contains everything necessary to create and run metrics-adapter.

func NewOptions

func NewOptions() *Options

NewOptions builds a default metrics-adapter options.

func (*Options) AddFlags

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

AddFlags adds flags to the specified FlagSet.

func (*Options) Complete

func (o *Options) Complete() error

Complete fills in fields required to have valid data.

func (*Options) Config

func (o *Options) Config() (*metricsadapter.MetricsServer, error)

Config returns config for the metrics-adapter server given Options

func (*Options) Run

func (o *Options) Run(ctx context.Context) error

Run runs the metrics-adapter with options. This should never exit.

func (*Options) Validate

func (o *Options) Validate() error

Validate checks Options and return a slice of found errs.

Jump to

Keyboard shortcuts

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