config

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConsumerFile         = "file"
	ConsumerTarExtractor = "tar-extractor"
	ConsumerNull         = "null"
)
View Source
const (
	// these two options are a massive hack. They're only availabe via
	// envvar, not command line
	OptCacheNodesSRVNameByHostCIDR = "cache-nodes-srv-name-by-host-cidr"
	OptHostIP                      = "host-ip"

	OptCacheNodesSRVName  = "cache-nodes-srv-name"
	OptConcurrency        = "concurrency"
	OptConnTimeout        = "connect-timeout"
	OptExtract            = "extract"
	OptForce              = "force"
	OptForceHTTP2         = "force-http2"
	OptLoggingLevel       = "log-level"
	OptMaxChunks          = "max-chunks"
	OptMaxConnPerHost     = "max-conn-per-host"
	OptMaxConcurrentFiles = "max-concurrent-files"
	OptMinimumChunkSize   = "minimum-chunk-size"
	OptOutputConsumer     = "output"
	OptPIDFile            = "pid-file"
	OptResolve            = "resolve"
	OptRetries            = "retries"
	OptVerbose            = "verbose"
)

Variables

This section is empty.

Functions

func AddFlagAlias added in v0.3.2

func AddFlagAlias(cmd *cobra.Command, alias, flag string) error

func DeprecateFlags added in v0.3.2

func DeprecateFlags(cmd *cobra.Command, deprecations ...DeprecatedFlag) error

func GetCacheSRV added in v0.3.2

func GetCacheSRV() string

GetCacheSRV returns the SRV name of the cache to use, if set.

func GetConsumer added in v0.3.2

func GetConsumer() (consumer.Consumer, error)

GetConsumer returns the consumer specified by the user on the command line or an error if the consumer is invalid. Note that this function explicitly calls viper.GetString(OptExtract) internally.

func HideFlags added in v0.3.2

func HideFlags(cmd *cobra.Command, flags ...string) error

func PersistentStartupProcessFlags

func PersistentStartupProcessFlags() error

func ResolveOverridesToMap added in v0.4.0

func ResolveOverridesToMap(resolveOverrides []string) (map[string]string, error)

func ViperInit added in v0.3.2

func ViperInit()

Types

type ConsistentHashingStrategy added in v0.4.0

type ConsistentHashingStrategy struct{}
var ConsistentHashingStrategyKey ConsistentHashingStrategy

type DeprecatedFlag added in v0.3.2

type DeprecatedFlag struct {
	Flag string
	Msg  string
}

Jump to

Keyboard shortcuts

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