Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PersonalPath ¶
func SavePersonal ¶
SavePersonal replaces only complete, validated files. Never writes secret values to stdout.
Types ¶
type Config ¶
type Personal ¶
type Personal struct {
Version int `json:"version"`
Database string `json:"database"`
APIKey string `json:"api_key"`
Addr string `json:"addr"`
BaseURL string `json:"base_url"`
SyncInterval string `json:"sync_interval"`
Profiles []Profile `json:"profiles"`
}
func NewPersonal ¶
func NewPersonal() Personal
func ReadPersonal ¶
type Profile ¶
type Profile struct {
Name string `json:"name"`
Provider string `json:"provider"`
Environment string `json:"environment,omitempty"`
ClientID string `json:"client_id,omitempty"`
ClientSecretFile string `json:"client_secret_file,omitempty"`
CertificateFile string `json:"certificate_file,omitempty"`
PrivateKeyFile string `json:"private_key_file,omitempty"`
AccessTokenFile string `json:"access_token_file,omitempty"`
Account string `json:"account,omitempty"`
LookbackDays int `json:"lookback_days,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.