Documentation
¶
Overview ¶
This file was generated by counterfeiter
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) 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) 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) Environments() []config.Environment
- func (fake *FakeConfig) EnvironmentsCallCount() int
- func (fake *FakeConfig) EnvironmentsReturns(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) Save() error
- func (fake *FakeConfig) SaveCallCount() int
- func (fake *FakeConfig) SaveReturns(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) UnsetCredentials(url string) config.Config
- func (fake *FakeConfig) UnsetCredentialsArgsForCall(i int) string
- func (fake *FakeConfig) UnsetCredentialsCallCount() int
- func (fake *FakeConfig) UnsetCredentialsReturns(result1 config.Config)
- 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) UnsetCredentials(environment string) config.Config
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)
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
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) 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) 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) 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) 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) 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) 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) 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)
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) UnsetCredentials ¶
func (f *FakeConfig2) UnsetCredentials(environment string) config.Config
Click to show internal directories.
Click to hide internal directories.