Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePFlags ¶
CreatePFlags Creates pflags for the value structure and adds them in the provided set
func CreatePFlagsForConfigFile ¶
CreatePFlagsForConfigFile creates pflags for setting the configuration file
func EmptyFlagSet ¶
EmptyFlagSet creates an empty flag set and adds the default set of flags to it
Types ¶
type Environment ¶
type Environment interface { Get(key string) interface{} Set(key string, value interface{}) Unmarshal(value interface{}) error BindPFlag(key string, flag *pflag.Flag) error }
Environment represents an abstraction over the env from which Service Manager configuration will be loaded
type File ¶
type File struct { Name string `description:"name of the configuration file"` Location string `description:"location of the configuration file"` Format string `description:"extension of the configuration file"` }
File describes the name, path and the format of the file to be used to load the configuration in the env
func DefaultConfigFile ¶
func DefaultConfigFile() File
DefaultConfigFile holds the default SM config file properties
Click to show internal directories.
Click to hide internal directories.