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)
- func SetMetrics(cfg *CommonConfig, component string)
- 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)
func SetMetrics ¶ added in v0.14.0
func SetMetrics(cfg *CommonConfig, component string)
SetMetrics should be called by any stolon component that outputs application metrics. It sets the clusterIdentifier metric, which is key to joining across all the other metric series.
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 StoreTimeout time.Duration }
Click to show internal directories.
Click to hide internal directories.