config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetQuboleConfig

func SetQuboleConfig(cfg *Config) error

Types

type Config

type Config struct {
	QuboleTokenPath        string          `json:"quboleTokenPath" pflag:",Where to find the Qubole secret"`
	ResourceManagerType    string          `json:"resourceManagerType" pflag:"noop,Which resource manager to use"`
	RedisHostPath          string          `json:"redisHostPath" pflag:",Redis host location"`
	RedisHostKey           string          `json:"redisHostKey" pflag:",Key for local Redis access"`
	RedisMaxRetries        int             `json:"redisMaxRetries" pflag:",See Redis client options for more info"`
	QuboleLimit            int             `json:"quboleLimit" pflag:",Global limit for concurrent Qubole queries"`
	LruCacheSize           int             `json:"lruCacheSize" pflag:",Size of the AutoRefreshCache"`
	LookasideBufferPrefix  string          `json:"lookasideBufferPrefix" pflag:",Prefix used for lookaside buffer"`
	LookasideExpirySeconds config.Duration `json:"lookasideExpirySeconds" pflag:",TTL for lookaside buffer if supported"`
}

Qubole plugin configs

func GetQuboleConfig

func GetQuboleConfig() *Config

Retrieves the current config value or default.

func (Config) GetPFlagSet

func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet

GetPFlagSet will return strongly types pflags for all fields in Config and its nested types. The format of the flags is json-name.json-sub-name... etc.

Jump to

Keyboard shortcuts

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