cmd

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 13 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)

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
}

Directories

Path Synopsis
cmd
cmd
cmd
cmd
cmd/internal/mock/register
Package mock_register is a generated GoMock package.
Package mock_register is a generated GoMock package.

Jump to

Keyboard shortcuts

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