config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustParse

func MustParse(s string) config.URL

func SetQuboleConfig

func SetQuboleConfig(cfg *Config) error

Types

type Config

type Config struct {
	Endpoint        config.URL `json:"endpoint" pflag:",Endpoint for qubole to use"`
	CommandAPIPath  config.URL `json:"commandApiPath" pflag:",API Path where commands can be launched on Qubole. Should be a valid url."`
	AnalyzeLinkPath config.URL `json:"analyzeLinkPath" pflag:",URL path where queries can be visualized on qubole website. Should be a valid url."`
	TokenKey        string     `json:"quboleTokenKey" pflag:",Name of the key where to find Qubole token in the secret manager."`
	Limit           int        `json:"quboleLimit" pflag:",Global limit for concurrent Qubole queries"`
	LruCacheSize    int        `json:"lruCacheSize" pflag:",Size of the AutoRefreshCache"`
	Workers         int        `json:"workers" pflag:",Number of parallel workers to refresh the cache"`
}

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