Versions in this module Expand all Collapse all v3 v3.0.1 Mar 13, 2018 Changes in this version + type ConfigContents struct + Called bool + EnvironmentAlias string + EnvironmentCACert string + EnvironmentURL string + type FakeConfig struct + AliasEnvironmentStub func(url, alias, caCert string) (config.Config, error) + CACertStub func(url string) string + CredentialsStub func(url string) config.Creds + EnvironmentsStub func() []config.Environment + ResolveEnvironmentStub func(urlOrAlias string) string + SaveStub func() error + SetCredentialsStub func(url string, creds config.Creds) config.Config + UnsetCredentialsStub func(url string) config.Config + func (fake *FakeConfig) AliasEnvironment(url string, alias string, caCert string) (config.Config, error) + func (fake *FakeConfig) AliasEnvironmentArgsForCall(i int) (string, string, string) + func (fake *FakeConfig) AliasEnvironmentCallCount() int + func (fake *FakeConfig) AliasEnvironmentReturns(result1 config.Config, result2 error) + func (fake *FakeConfig) AliasEnvironmentReturnsOnCall(i int, result1 config.Config, result2 error) + func (fake *FakeConfig) CACert(url string) string + func (fake *FakeConfig) CACertArgsForCall(i int) string + func (fake *FakeConfig) CACertCallCount() int + func (fake *FakeConfig) CACertReturns(result1 string) + func (fake *FakeConfig) CACertReturnsOnCall(i int, result1 string) + func (fake *FakeConfig) Credentials(url string) config.Creds + func (fake *FakeConfig) CredentialsArgsForCall(i int) string + func (fake *FakeConfig) CredentialsCallCount() int + func (fake *FakeConfig) CredentialsReturns(result1 config.Creds) + func (fake *FakeConfig) CredentialsReturnsOnCall(i int, result1 config.Creds) + func (fake *FakeConfig) Environments() []config.Environment + func (fake *FakeConfig) EnvironmentsCallCount() int + func (fake *FakeConfig) EnvironmentsReturns(result1 []config.Environment) + func (fake *FakeConfig) EnvironmentsReturnsOnCall(i int, result1 []config.Environment) + func (fake *FakeConfig) Invocations() map[string][][]interface{} + func (fake *FakeConfig) ResolveEnvironment(urlOrAlias string) string + func (fake *FakeConfig) ResolveEnvironmentArgsForCall(i int) string + func (fake *FakeConfig) ResolveEnvironmentCallCount() int + func (fake *FakeConfig) ResolveEnvironmentReturns(result1 string) + func (fake *FakeConfig) ResolveEnvironmentReturnsOnCall(i int, result1 string) + func (fake *FakeConfig) Save() error + func (fake *FakeConfig) SaveCallCount() int + func (fake *FakeConfig) SaveReturns(result1 error) + func (fake *FakeConfig) SaveReturnsOnCall(i int, result1 error) + func (fake *FakeConfig) SetCredentials(url string, creds config.Creds) config.Config + func (fake *FakeConfig) SetCredentialsArgsForCall(i int) (string, config.Creds) + func (fake *FakeConfig) SetCredentialsCallCount() int + func (fake *FakeConfig) SetCredentialsReturns(result1 config.Config) + func (fake *FakeConfig) SetCredentialsReturnsOnCall(i int, result1 config.Config) + func (fake *FakeConfig) UnsetCredentials(url string) config.Config + func (fake *FakeConfig) UnsetCredentialsArgsForCall(i int) string + func (fake *FakeConfig) UnsetCredentialsCallCount() int + func (fake *FakeConfig) UnsetCredentialsReturns(result1 config.Config) + func (fake *FakeConfig) UnsetCredentialsReturnsOnCall(i int, result1 config.Config) + type FakeConfig2 struct + AliasEnvironmentErr error + Existing ConfigContents + SaveErr error + Saved *ConfigContents + func (f *FakeConfig2) AliasEnvironment(environment, alias, caCert string) (config.Config, error) + func (f *FakeConfig2) CACert(environment string) string + func (f *FakeConfig2) Credentials(environment string) config.Creds + func (f *FakeConfig2) Deployment(environment string) string + func (f *FakeConfig2) Environment() string + func (f *FakeConfig2) Environments() []config.Environment + func (f *FakeConfig2) ResolveEnvironment(environmentOrName string) string + func (f *FakeConfig2) Save() error + func (f *FakeConfig2) SetCredentials(environment string, creds config.Creds) config.Config + func (f *FakeConfig2) SetDeployment(environment string, nameOrPath string) config.Config + func (f *FakeConfig2) UnsetCredentials(environment string) config.Config Other modules containing this package gopkg.in/cloudfoundry/bosh-cli.v0 gopkg.in/cloudfoundry/bosh-cli.v2 gopkg.in/cloudfoundry/bosh-cli.v4 gopkg.in/cloudfoundry/bosh-cli.v5 gopkg.in/cloudfoundry/bosh-cli.v6