Documentation ¶
Index ¶
- type Config
- type Creds
- type Environment
- type FSConfig
- func (c FSConfig) CACert(urlOrAlias string) string
- func (c FSConfig) Credentials(urlOrAlias string) Creds
- func (c FSConfig) Deployment(urlOrAlias string) string
- func (c FSConfig) Environment() string
- 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) SetDeployment(urlOrAlias, nameOrPath string) Config
- func (c FSConfig) SetEnvironment(urlOrAlias, alias, caCert string) 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 { Environment() string Environments() []Environment ResolveEnvironment(urlOrAlias string) string SetEnvironment(urlOrAlias, alias, caCert string) Config CACert(url string) string Credentials(url string) Creds SetCredentials(url string, creds Creds) Config UnsetCredentials(url string) Config Deployment(url string) string SetDeployment(url, nameOrPath string) Config Save() error }
type Creds ¶
type Creds struct { Username string Password string // For UAA clients 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) Credentials ¶
func (FSConfig) Deployment ¶
func (FSConfig) Environment ¶
func (FSConfig) Environments ¶
func (c FSConfig) Environments() []Environment
func (FSConfig) ResolveEnvironment ¶
func (FSConfig) SetCredentials ¶
func (FSConfig) SetDeployment ¶
func (FSConfig) SetEnvironment ¶
func (FSConfig) UnsetCredentials ¶
Click to show internal directories.
Click to hide internal directories.