Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ensure ¶
Ensure function will check for required configuration values that are missing. If they do, they will be requested from Stdin.
func Export ¶
Export function creates a config.yaml file at the specified config path using the config struct provided.
If parents is set to true, the given directory path will be created (if not existed)
func ExportDefault ¶
ExportDefault function creates a config.yaml file at the default path using the config struct provided.
If parents is set to true, the default directory path will be created (if not existed)
Types ¶
type Config ¶
type Config struct { Credentials auth.Credentials `yaml:"credentials"` Options Options `yaml:"options"` SecretKey string `yaml:"secretKey"` }
func Import ¶
Import function will read options and credentials from the given path of a yaml file. If the config file is missing, it will be created with default values.
func ImportDefault ¶
Import function will read options and credentials from the given path of a yaml file. If the config file is missing, it will be created with default values.