package
Version:
v0.0.0-...-3958eff
Opens a new window with list of versions in this module.
Published: Dec 30, 2022
License: BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package auth manages the secrets required to use the API.
Load returns the username, password, stored in the config file.
MustLoad loads the username and password and exits with an error if it can't.
type Config struct {
User string `yaml:"user"`
Pass string `yaml:"pass"`
}
Config is the go representation of the YAML file containing the secrets.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.