Documentation ¶
Index ¶
- type Config
- type Creds
- type Environment
- type FSConfig
- func (c FSConfig) AliasEnvironment(url, alias, caCert string) (Config, error)
- func (c FSConfig) CACert(urlOrAlias string) string
- func (c FSConfig) Credentials(urlOrAlias string) Creds
- func (c FSConfig) Environments() []Environment
- func (c FSConfig) ResolveEnvironment(urlOrAlias string) string
- func (c FSConfig) Save() error
- func (c FSConfig) SetCredentials(urlOrAlias string, creds Creds) Config
- func (c FSConfig) UnsetCredentials(urlOrAlias string) Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { Environments() []Environment ResolveEnvironment(urlOrAlias string) string AliasEnvironment(url, alias, caCert string) (Config, error) CACert(url string) string Credentials(url string) Creds SetCredentials(url string, creds Creds) Config UnsetCredentials(url string) Config Save() error }
type Creds ¶
type Creds struct { // Basic auth username/password or UAA client creds Client string ClientSecret string // For UAA users RefreshToken string }
func (Creds) Description ¶
func (Creds) IsBasicComplete ¶
func (Creds) IsUAAClient ¶
type Environment ¶
type FSConfig ¶
type FSConfig struct {
// contains filtered or unexported fields
}
func NewFSConfigFromPath ¶
func NewFSConfigFromPath(path string, fs boshsys.FileSystem) (FSConfig, error)
func (FSConfig) AliasEnvironment ¶ added in v0.0.96
func (FSConfig) Credentials ¶
func (FSConfig) Environments ¶
func (c FSConfig) Environments() []Environment
func (FSConfig) ResolveEnvironment ¶
func (FSConfig) SetCredentials ¶
func (FSConfig) UnsetCredentials ¶
Click to show internal directories.
Click to hide internal directories.