cmd

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "No version defined at build time"

Functions

func AddCommonFlags

func AddCommonFlags(cmd *cobra.Command, cfg *CommonConfig)

func CheckCommonConfig

func CheckCommonConfig(cfg *CommonConfig) error

func IsColorLoggerEnable added in v0.9.0

func IsColorLoggerEnable(cmd *cobra.Command, cfg *CommonConfig) bool

func NewElection added in v0.10.0

func NewElection(cfg *CommonConfig, uid string) (store.Election, error)

func NewKVStore added in v0.10.0

func NewKVStore(cfg *CommonConfig) (store.KVStore, error)

func NewStore added in v0.10.0

func NewStore(cfg *CommonConfig) (store.Store, error)

Types

type CommonConfig

type CommonConfig struct {
	IsStolonCtl bool

	StoreBackend           string
	StoreEndpoints         string
	StorePrefix            string
	StoreCertFile          string
	StoreKeyFile           string
	StoreCAFile            string
	StoreSkipTlsVerify     bool
	ClusterName            string
	InitialClusterSpecFile string
	LogColor               bool
	LogLevel               string
	Debug                  bool
	KubeResourceKind       string
	KubeConfig             string
	KubeContext            string
	KubeNamespace          string
}

Directories

Path Synopsis
cmd
cmd
cmd
cmd

Jump to

Keyboard shortcuts

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