config

package
v0.0.0-...-b713d77 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// TODO Add any configuration parameters here. For example, if region should be preset? or if there are some common parameters that should be passed
	// for every execution. If this is not the case, just delete the config folder
	MyConfigParam string `json:"my-cfg-param" pflag:",Some configuration that is used by the backend plugin "`
}

Per Plugin optional configuration

func Get

func Get() *Config

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