Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type ConfigContents
- type FakeConfig
- 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) UnaliasEnvironment(alias string) (config.Config, error)
- func (fake *FakeConfig) UnaliasEnvironmentArgsForCall(i int) string
- func (fake *FakeConfig) UnaliasEnvironmentCallCount() int
- func (fake *FakeConfig) UnaliasEnvironmentReturns(result1 config.Config, result2 error)
- func (fake *FakeConfig) UnaliasEnvironmentReturnsOnCall(i int, result1 config.Config, result2 error)
- 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)
- func (fake *FakeConfig) UpdateConfigWithToken(environment string, t uaa.AccessToken) error
- func (fake *FakeConfig) UpdateConfigWithTokenArgsForCall(i int) (string, uaa.AccessToken)
- func (fake *FakeConfig) UpdateConfigWithTokenCallCount() int
- func (fake *FakeConfig) UpdateConfigWithTokenReturns(result1 error)
- func (fake *FakeConfig) UpdateConfigWithTokenReturnsOnCall(i int, result1 error)
- type FakeConfig2
- 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) UnaliasEnvironment(alias string) (config.Config, error)
- func (f *FakeConfig2) UnsetCredentials(environment string) config.Config
- func (fake *FakeConfig2) UpdateConfigWithToken(environment string, t uaa.AccessToken) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigContents ¶
type FakeConfig ¶
type FakeConfig struct { EnvironmentsStub func() []config.Environment ResolveEnvironmentStub func(urlOrAlias string) string AliasEnvironmentStub func(url, alias, caCert string) (config.Config, error) UnaliasEnvironmentStub func(alias string) (config.Config, error) CACertStub func(url string) string CredentialsStub func(url string) config.Creds SetCredentialsStub func(url string, creds config.Creds) config.Config UnsetCredentialsStub func(url string) config.Config UpdateConfigWithTokenStub func(environment string, t uaa.AccessToken) error SaveStub func() error // contains filtered or unexported fields }
func (*FakeConfig) AliasEnvironment ¶
func (*FakeConfig) AliasEnvironmentArgsForCall ¶
func (fake *FakeConfig) AliasEnvironmentArgsForCall(i int) (string, string, string)
func (*FakeConfig) AliasEnvironmentCallCount ¶
func (fake *FakeConfig) AliasEnvironmentCallCount() int
func (*FakeConfig) AliasEnvironmentReturns ¶
func (fake *FakeConfig) AliasEnvironmentReturns(result1 config.Config, result2 error)
func (*FakeConfig) AliasEnvironmentReturnsOnCall ¶
func (fake *FakeConfig) AliasEnvironmentReturnsOnCall(i int, result1 config.Config, result2 error)
func (*FakeConfig) CACert ¶
func (fake *FakeConfig) CACert(url string) string
func (*FakeConfig) CACertArgsForCall ¶
func (fake *FakeConfig) CACertArgsForCall(i int) string
func (*FakeConfig) CACertCallCount ¶
func (fake *FakeConfig) CACertCallCount() int
func (*FakeConfig) CACertReturns ¶
func (fake *FakeConfig) CACertReturns(result1 string)
func (*FakeConfig) CACertReturnsOnCall ¶
func (fake *FakeConfig) CACertReturnsOnCall(i int, result1 string)
func (*FakeConfig) Credentials ¶
func (fake *FakeConfig) Credentials(url string) config.Creds
func (*FakeConfig) CredentialsArgsForCall ¶
func (fake *FakeConfig) CredentialsArgsForCall(i int) string
func (*FakeConfig) CredentialsCallCount ¶
func (fake *FakeConfig) CredentialsCallCount() int
func (*FakeConfig) CredentialsReturns ¶
func (fake *FakeConfig) CredentialsReturns(result1 config.Creds)
func (*FakeConfig) CredentialsReturnsOnCall ¶
func (fake *FakeConfig) CredentialsReturnsOnCall(i int, result1 config.Creds)
func (*FakeConfig) Environments ¶
func (fake *FakeConfig) Environments() []config.Environment
func (*FakeConfig) EnvironmentsCallCount ¶
func (fake *FakeConfig) EnvironmentsCallCount() int
func (*FakeConfig) EnvironmentsReturns ¶
func (fake *FakeConfig) EnvironmentsReturns(result1 []config.Environment)
func (*FakeConfig) EnvironmentsReturnsOnCall ¶
func (fake *FakeConfig) EnvironmentsReturnsOnCall(i int, result1 []config.Environment)
func (*FakeConfig) Invocations ¶
func (fake *FakeConfig) Invocations() map[string][][]interface{}
func (*FakeConfig) ResolveEnvironment ¶
func (fake *FakeConfig) ResolveEnvironment(urlOrAlias string) string
func (*FakeConfig) ResolveEnvironmentArgsForCall ¶
func (fake *FakeConfig) ResolveEnvironmentArgsForCall(i int) string
func (*FakeConfig) ResolveEnvironmentCallCount ¶
func (fake *FakeConfig) ResolveEnvironmentCallCount() int
func (*FakeConfig) ResolveEnvironmentReturns ¶
func (fake *FakeConfig) ResolveEnvironmentReturns(result1 string)
func (*FakeConfig) ResolveEnvironmentReturnsOnCall ¶
func (fake *FakeConfig) ResolveEnvironmentReturnsOnCall(i int, result1 string)
func (*FakeConfig) Save ¶
func (fake *FakeConfig) Save() error
func (*FakeConfig) SaveCallCount ¶
func (fake *FakeConfig) SaveCallCount() int
func (*FakeConfig) SaveReturns ¶
func (fake *FakeConfig) SaveReturns(result1 error)
func (*FakeConfig) SaveReturnsOnCall ¶
func (fake *FakeConfig) SaveReturnsOnCall(i int, result1 error)
func (*FakeConfig) SetCredentials ¶
func (*FakeConfig) SetCredentialsArgsForCall ¶
func (fake *FakeConfig) SetCredentialsArgsForCall(i int) (string, config.Creds)
func (*FakeConfig) SetCredentialsCallCount ¶
func (fake *FakeConfig) SetCredentialsCallCount() int
func (*FakeConfig) SetCredentialsReturns ¶
func (fake *FakeConfig) SetCredentialsReturns(result1 config.Config)
func (*FakeConfig) SetCredentialsReturnsOnCall ¶
func (fake *FakeConfig) SetCredentialsReturnsOnCall(i int, result1 config.Config)
func (*FakeConfig) UnaliasEnvironment ¶ added in v5.5.0
func (fake *FakeConfig) UnaliasEnvironment(alias string) (config.Config, error)
func (*FakeConfig) UnaliasEnvironmentArgsForCall ¶ added in v5.5.0
func (fake *FakeConfig) UnaliasEnvironmentArgsForCall(i int) string
func (*FakeConfig) UnaliasEnvironmentCallCount ¶ added in v5.5.0
func (fake *FakeConfig) UnaliasEnvironmentCallCount() int
func (*FakeConfig) UnaliasEnvironmentReturns ¶ added in v5.5.0
func (fake *FakeConfig) UnaliasEnvironmentReturns(result1 config.Config, result2 error)
func (*FakeConfig) UnaliasEnvironmentReturnsOnCall ¶ added in v5.5.0
func (fake *FakeConfig) UnaliasEnvironmentReturnsOnCall(i int, result1 config.Config, result2 error)
func (*FakeConfig) UnsetCredentials ¶
func (fake *FakeConfig) UnsetCredentials(url string) config.Config
func (*FakeConfig) UnsetCredentialsArgsForCall ¶
func (fake *FakeConfig) UnsetCredentialsArgsForCall(i int) string
func (*FakeConfig) UnsetCredentialsCallCount ¶
func (fake *FakeConfig) UnsetCredentialsCallCount() int
func (*FakeConfig) UnsetCredentialsReturns ¶
func (fake *FakeConfig) UnsetCredentialsReturns(result1 config.Config)
func (*FakeConfig) UnsetCredentialsReturnsOnCall ¶
func (fake *FakeConfig) UnsetCredentialsReturnsOnCall(i int, result1 config.Config)
func (*FakeConfig) UpdateConfigWithToken ¶ added in v5.4.0
func (fake *FakeConfig) UpdateConfigWithToken(environment string, t uaa.AccessToken) error
func (*FakeConfig) UpdateConfigWithTokenArgsForCall ¶ added in v5.4.0
func (fake *FakeConfig) UpdateConfigWithTokenArgsForCall(i int) (string, uaa.AccessToken)
func (*FakeConfig) UpdateConfigWithTokenCallCount ¶ added in v5.4.0
func (fake *FakeConfig) UpdateConfigWithTokenCallCount() int
func (*FakeConfig) UpdateConfigWithTokenReturns ¶ added in v5.4.0
func (fake *FakeConfig) UpdateConfigWithTokenReturns(result1 error)
func (*FakeConfig) UpdateConfigWithTokenReturnsOnCall ¶ added in v5.4.0
func (fake *FakeConfig) UpdateConfigWithTokenReturnsOnCall(i int, result1 error)
type FakeConfig2 ¶
type FakeConfig2 struct { Existing ConfigContents AliasEnvironmentErr error Saved *ConfigContents SaveErr error }
func (*FakeConfig2) AliasEnvironment ¶
func (f *FakeConfig2) AliasEnvironment(environment, alias, caCert string) (config.Config, error)
func (*FakeConfig2) CACert ¶
func (f *FakeConfig2) CACert(environment string) string
func (*FakeConfig2) Credentials ¶
func (f *FakeConfig2) Credentials(environment string) config.Creds
func (*FakeConfig2) Deployment ¶
func (f *FakeConfig2) Deployment(environment string) string
func (*FakeConfig2) Environment ¶
func (f *FakeConfig2) Environment() string
func (*FakeConfig2) Environments ¶
func (f *FakeConfig2) Environments() []config.Environment
func (*FakeConfig2) ResolveEnvironment ¶
func (f *FakeConfig2) ResolveEnvironment(environmentOrName string) string
func (*FakeConfig2) Save ¶
func (f *FakeConfig2) Save() error
func (*FakeConfig2) SetCredentials ¶
func (*FakeConfig2) SetDeployment ¶
func (f *FakeConfig2) SetDeployment(environment string, nameOrPath string) config.Config
func (*FakeConfig2) UnaliasEnvironment ¶ added in v5.5.0
func (f *FakeConfig2) UnaliasEnvironment(alias string) (config.Config, error)
func (*FakeConfig2) UnsetCredentials ¶
func (f *FakeConfig2) UnsetCredentials(environment string) config.Config
func (*FakeConfig2) UpdateConfigWithToken ¶ added in v5.4.0
func (fake *FakeConfig2) UpdateConfigWithToken(environment string, t uaa.AccessToken) error
Click to show internal directories.
Click to hide internal directories.