Documentation ¶
Index ¶
Constants ¶
View Source
const ( KVStoreConsul = "consul" KVStoreZookeeper = "zookeeper" KVStoreEtcd = "etcd" KVStoreConfigMaps = "configmaps" )
Variables ¶
View Source
var DefaultUI = &cli.ConcurrentUi{ Ui: &cli.ColoredUi{ Ui: &cli.BasicUi{ Writer: os.Stdout, Reader: os.Stdin, ErrorWriter: os.Stderr, }, WarnColor: cli.UiColorYellow, InfoColor: cli.UiColorGreen, ErrorColor: cli.UiColorRed, }, }
Functions ¶
func AddKVStoreFlags ¶
func AddKVStoreFlags(fs *flag.FlagSet, kv *KVStoreConfig)
AddKVStoreFlags adds to an existing flagset the command lines flags to configure the key-value store connection
func RunCommand ¶
func RunCommand(commandName string, command cli.CommandFactory)
RunCommand runs a single command
func RunSubcommands ¶
func RunSubcommands(commandName string, subcommands map[string]cli.CommandFactory)
RunSubcommands a command given its subcommands
Types ¶
type KVStoreConfig ¶
KVStoreConfig holds the key-value store configuration set from the command line
type PrefixedUi ¶
func NewPrefixedUi ¶
func NewPrefixedUi(prefix string) *PrefixedUi
func (*PrefixedUi) Error ¶
func (p *PrefixedUi) Error(s string)
func (*PrefixedUi) Info ¶
func (p *PrefixedUi) Info(s string)
func (*PrefixedUi) Output ¶
func (p *PrefixedUi) Output(s string)
func (*PrefixedUi) Warn ¶
func (p *PrefixedUi) Warn(s string)
Click to show internal directories.
Click to hide internal directories.