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) UnaliasEnvironment(alias string) (Config, error)
- func (c FSConfig) UnsetCredentials(urlOrAlias string) Config
- func (c FSConfig) UpdateConfigWithToken(environment string, t uaa.AccessToken) error
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) UnaliasEnvironment(alias string) (Config, error) CACert(url string) string Credentials(url string) Creds SetCredentials(url string, creds Creds) Config UnsetCredentials(url string) Config UpdateConfigWithToken(environment string, t uaa.AccessToken) error Save() error }
type Creds ¶
type Creds struct { // Basic auth username/password or UAA client creds Client string ClientSecret string // For UAA users AccessTokenType string AccessToken string 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) UnaliasEnvironment ¶
func (FSConfig) UnsetCredentials ¶
func (FSConfig) UpdateConfigWithToken ¶
func (c FSConfig) UpdateConfigWithToken(environment string, t uaa.AccessToken) error
Click to show internal directories.
Click to hide internal directories.