options

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 8 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 {
	// 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   cloudprovider.CloudConfig

	Debugging componentbaseconfig.DebuggingConfiguration

	MaxIdleConnsPerClient int

	MetricUpdateInterval time.Duration

	CustomPrice cloudprovider.CustomPricing
}

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