nanny

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(name string) *cobra.Command

Types

type Options

type Options struct {
	AuthURL           string        `env:"OS_AUTH_URL" valid:"url,required"`
	AuthUsername      string        `env:"OS_USERNAME" valid:"required"`
	AuthPassword      string        `env:"OS_PASSWORD" valid:"required"`
	AuthDomain        string        `env:"OS_USER_DOMAIN_NAME" valid:"required"`
	AuthProject       string        `env:"OS_PROJECT_NAME"`
	AuthProjectDomain string        `env:"OS_PROJECT_DOMAIN_NAME"`
	AuthProjectID     string        `env:"OS_PROJECT_ID"`
	RouterID          string        `env:"ROUTER_ID" valid:"required"`
	ClusterCIDR       string        `env:"CLUSTER_CIDR" valid:"cidr,required"`
	SyncPeriod        time.Duration `env:"SYNC_PERIOD"`
}

func NewNannyOptions

func NewNannyOptions() *Options

func (*Options) BindFlags

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

func (*Options) Run added in v1.3.0

func (o *Options) Run(c *cobra.Command) error

Jump to

Keyboard shortcuts

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