command

package
v0.2.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KVStoreConsul     = "consul"
	KVStoreZookeeper  = "zookeeper"
	KVStoreEtcd       = "etcd"
	KVStoreConfigMaps = "configmaps"
)

Variables

This section is empty.

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

type KVStoreConfig struct {
	Address   string
	Store     string
	Prefix    string
	Namespace string
}

KVStoreConfig holds the key-value store configuration set from the command line

Jump to

Keyboard shortcuts

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