options

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComparatorOptions added in v0.3.0

type ComparatorOptions struct {
	Config      comparatorcfg.Config
	DataSource  string
	CustomPrice cloud.CustomPricing
	CloudConfig cloud.CloudConfig
	// DataSourcePromConfig is the prometheus datasource config
	DataSourcePromConfig datasource.PromConfig
	// DataSourceQMonitorConfig is the tencent cloud monitor datasource config
	DataSourceQMonitorConfig datasource.QCloudMonitorConfig
}

ComparatorOptions used for fadvisor cost comparator

func NewComparatorOptions added in v0.3.0

func NewComparatorOptions() *ComparatorOptions

func (*ComparatorOptions) AddFlags added in v0.3.0

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

func (*ComparatorOptions) Complete added in v0.3.0

func (o *ComparatorOptions) Complete() error

func (*ComparatorOptions) Validate added in v0.3.0

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

type Options

type Options struct {
	// LeaderElection hold the configurations for manager leader election.
	LeaderElection componentbaseconfig.LeaderElectionConfiguration
	// BindAddr is The address the probe endpoint binds to.
	BindAddr string

	ClientConfig componentbaseconfig.ClientConnectionConfiguration
	// SecureServing specifies the server configurations to set up a HTTPS server.
	SecureServing options.SecureServingOptionsWithLoopback
	CloudConfig   cloud.CloudConfig

	Debugging componentbaseconfig.DebuggingConfiguration

	MaxIdleConnsPerClient int

	MetricUpdateInterval time.Duration

	CustomPrice cloud.CustomPricing

	ComparatorMode    bool
	ComparatorOptions *ComparatorOptions
}

Options hold the command-line options about crane manager

func NewOptions

func NewOptions() *Options

NewOptions builds an empty options.

func (*Options) AddFlags

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

AddFlags adds flags to the specified FlagSet.

func (*Options) ApplyTo

func (o *Options) ApplyTo()

func (*Options) Complete

func (o *Options) Complete() error

Complete completes all the required options.

func (*Options) Validate

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

Validate all required options.

Jump to

Keyboard shortcuts

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