Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadDefault ¶
func LoadDefault()
LoadDefault loads the config from one of the default config locations
Types ¶
type Config ¶ added in v0.2.0
type Config struct {
URL string `yaml:"instance"`
Mytoken *mytokenlib.MytokenProvider `yaml:"-"`
DefaultGPGKey string `yaml:"default_gpg_key"`
DefaultProvider string `yaml:"default_provider"`
DefaultOIDCFlow string `yaml:"default_oidc_flow"`
DefaultTokenCapabilities struct {
Stored []string `yaml:"stored"`
Returned []string `yaml:"returned"`
} `yaml:"default_token_capabilities"`
TokenNamePrefix string `yaml:"token_name_prefix"`
Providers model.Providers `yaml:"providers"`
TokensFilePath string `yaml:"tokens_file"`
TokensFileContent *TokenFileContent `yaml:"-"`
// contains filtered or unexported fields
}
type TokenEntry ¶
type TokenFileContent ¶ added in v0.2.0
type TokenFileContent struct {
TokenMapping tokenNameMapping `json:"mapping"`
Tokens tokenEntries `json:"tokens"`
}
func LoadTokens ¶
func LoadTokens() (*TokenFileContent, error)
func (*TokenFileContent) Add ¶ added in v0.2.0
func (f *TokenFileContent) Add(t TokenEntry, iss string)
func (TokenFileContent) Has ¶ added in v0.2.0
func (f TokenFileContent) Has(name, iss string) bool
func (*TokenFileContent) Save ¶ added in v0.2.0
func (f *TokenFileContent) Save() error
Click to show internal directories.
Click to hide internal directories.