Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvSandbox = "sandbox" EnvProduction = "production" )
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
func CredentialsPath ¶
func SaveCredentials ¶
func SaveCredentials(credentials CredentialsFile) error
Types ¶
type CredentialEntry ¶
type CredentialsFile ¶
type CredentialsFile struct {
Profiles map[string]CredentialEntry `json:"profiles"`
}
func DefaultCredentialsFile ¶
func DefaultCredentialsFile() CredentialsFile
func LoadCredentials ¶
func LoadCredentials() (CredentialsFile, error)
type File ¶
type File struct {
DefaultProfile string `json:"default_profile"`
Profiles map[string]Profile `json:"profiles"`
}
func DefaultConfig ¶
func DefaultConfig() File
type Profile ¶
type Profile struct {
Name string `json:"name"`
Environment string `json:"environment"`
StorageMode StorageMode `json:"storage_mode"`
KeychainAccount string `json:"keychain_account,omitempty"`
// ConfigToken is retained for migration from the original inline secret storage.
ConfigToken string `json:"config_token,omitempty"`
LastKnownEntity string `json:"last_known_entity,omitempty"`
LastKnownRequestID string `json:"last_known_request_id,omitempty"`
}
type StorageMode ¶
type StorageMode string
const ( StorageModeAuto StorageMode = "auto" StorageModeFile StorageMode = "file" StorageModeKeychain StorageMode = "keychain" StorageModeConfig StorageMode = "config" )
func NormalizeStorageMode ¶
func NormalizeStorageMode(mode StorageMode) StorageMode
Click to show internal directories.
Click to hide internal directories.