Documentation ¶
Index ¶
- Variables
- func AddCommonFlags(cmd *cobra.Command, cfg *CommonConfig)
- func CheckCommonConfig(cfg *CommonConfig) error
- func IsColorLoggerEnable(cmd *cobra.Command, cfg *CommonConfig) bool
- func NewElection(cfg *CommonConfig, uid string) (store.Election, error)
- func NewKVStore(cfg *CommonConfig) (store.KVStore, error)
- func NewStore(cfg *CommonConfig) (store.Store, error)
- type CommonConfig
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)
Types ¶
type CommonConfig ¶
type CommonConfig struct { IsStolonCtl bool StoreBackend string StoreEndpoints string StorePrefix string StoreCertFile string StoreKeyFile string StoreCAFile string StoreSkipTlsVerify bool ClusterName string MetricsListenAddress string LogColor bool LogLevel string Debug bool KubeResourceKind string KubeConfig string KubeContext string KubeNamespace string }
Click to show internal directories.
Click to hide internal directories.