options

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlControllerOptions

type MysqlControllerOptions struct {
	APIServerHost            string
	Namespace                string
	ClusterResourceNamespace string

	LeaderElect                 bool
	LeaderElectionNamespace     string
	LeaderElectionLeaseDuration time.Duration
	LeaderElectionRenewDeadline time.Duration
	LeaderElectionRetryPeriod   time.Duration

	// The number of workers
	NoWorkers int

	ProbeAddr string
}

func NewControllerOptions

func NewControllerOptions() *MysqlControllerOptions

func (*MysqlControllerOptions) AddFlags

func (s *MysqlControllerOptions) AddFlags(fs *pflag.FlagSet)

func (*MysqlControllerOptions) Validate

func (o *MysqlControllerOptions) Validate() error

Jump to

Keyboard shortcuts

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