Documentation
¶
Overview ¶
This file was generated by counterfeiter
Index ¶
- type FakeAgentClient
- type FakeLocalRepository
- func (fake *FakeLocalRepository) Delete(instanceID string) error
- func (fake *FakeLocalRepository) DeleteArgsForCall(i int) string
- func (fake *FakeLocalRepository) DeleteCallCount() int
- func (fake *FakeLocalRepository) DeleteReturns(result1 error)
- func (fake *FakeLocalRepository) FindByID(instanceID string) (*redis.Instance, error)
- func (fake *FakeLocalRepository) FindByIDArgsForCall(i int) string
- func (fake *FakeLocalRepository) FindByIDCallCount() int
- func (fake *FakeLocalRepository) FindByIDReturns(result1 *redis.Instance, result2 error)
- func (fake *FakeLocalRepository) InstanceConfigPath(instanceID string) string
- func (fake *FakeLocalRepository) InstanceConfigPathArgsForCall(i int) string
- func (fake *FakeLocalRepository) InstanceConfigPathCallCount() int
- func (fake *FakeLocalRepository) InstanceConfigPathReturns(result1 string)
- func (fake *FakeLocalRepository) InstanceCount() (int, []error)
- func (fake *FakeLocalRepository) InstanceCountCallCount() int
- func (fake *FakeLocalRepository) InstanceCountReturns(result1 int, result2 []error)
- func (fake *FakeLocalRepository) InstanceDataDir(instanceID string) string
- func (fake *FakeLocalRepository) InstanceDataDirArgsForCall(i int) string
- func (fake *FakeLocalRepository) InstanceDataDirCallCount() int
- func (fake *FakeLocalRepository) InstanceDataDirReturns(result1 string)
- func (fake *FakeLocalRepository) InstanceExists(instanceID string) (bool, error)
- func (fake *FakeLocalRepository) InstanceExistsArgsForCall(i int) string
- func (fake *FakeLocalRepository) InstanceExistsCallCount() int
- func (fake *FakeLocalRepository) InstanceExistsReturns(result1 bool, result2 error)
- func (fake *FakeLocalRepository) InstanceLogFilePath(instanceID string) string
- func (fake *FakeLocalRepository) InstanceLogFilePathArgsForCall(i int) string
- func (fake *FakeLocalRepository) InstanceLogFilePathCallCount() int
- func (fake *FakeLocalRepository) InstanceLogFilePathReturns(result1 string)
- func (fake *FakeLocalRepository) InstancePidFilePath(instanceID string) string
- func (fake *FakeLocalRepository) InstancePidFilePathArgsForCall(i int) string
- func (fake *FakeLocalRepository) InstancePidFilePathCallCount() int
- func (fake *FakeLocalRepository) InstancePidFilePathReturns(result1 string)
- func (fake *FakeLocalRepository) Lock(instance *redis.Instance) error
- func (fake *FakeLocalRepository) LockArgsForCall(i int) *redis.Instance
- func (fake *FakeLocalRepository) LockCallCount() int
- func (fake *FakeLocalRepository) LockReturns(result1 error)
- func (fake *FakeLocalRepository) Setup(instance *redis.Instance) error
- func (fake *FakeLocalRepository) SetupArgsForCall(i int) *redis.Instance
- func (fake *FakeLocalRepository) SetupCallCount() int
- func (fake *FakeLocalRepository) SetupReturns(result1 error)
- func (fake *FakeLocalRepository) Unlock(instance *redis.Instance) error
- func (fake *FakeLocalRepository) UnlockArgsForCall(i int) *redis.Instance
- func (fake *FakeLocalRepository) UnlockCallCount() int
- func (fake *FakeLocalRepository) UnlockReturns(result1 error)
- type FakeProcessController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAgentClient ¶
type FakeAgentClient struct { ResetHosts []string CredentialsFunc func(string) (redis.Credentials, error) ResetHandler func(string) error }
func (*FakeAgentClient) Credentials ¶
func (fakeAgentClient *FakeAgentClient) Credentials(host string) (redis.Credentials, error)
func (*FakeAgentClient) Reset ¶
func (fakeAgentClient *FakeAgentClient) Reset(host string) error
type FakeLocalRepository ¶
type FakeLocalRepository struct { FindByIDStub func(instanceID string) (*redis.Instance, error) InstanceExistsStub func(instanceID string) (bool, error) SetupStub func(instance *redis.Instance) error DeleteStub func(instanceID string) error InstanceDataDirStub func(instanceID string) string InstanceConfigPathStub func(instanceID string) string InstanceLogFilePathStub func(instanceID string) string InstancePidFilePathStub func(instanceID string) string InstanceCountStub func() (int, []error) LockStub func(instance *redis.Instance) error UnlockStub func(instance *redis.Instance) error // contains filtered or unexported fields }
func (*FakeLocalRepository) Delete ¶
func (fake *FakeLocalRepository) Delete(instanceID string) error
func (*FakeLocalRepository) DeleteArgsForCall ¶
func (fake *FakeLocalRepository) DeleteArgsForCall(i int) string
func (*FakeLocalRepository) DeleteCallCount ¶
func (fake *FakeLocalRepository) DeleteCallCount() int
func (*FakeLocalRepository) DeleteReturns ¶
func (fake *FakeLocalRepository) DeleteReturns(result1 error)
func (*FakeLocalRepository) FindByID ¶
func (fake *FakeLocalRepository) FindByID(instanceID string) (*redis.Instance, error)
func (*FakeLocalRepository) FindByIDArgsForCall ¶
func (fake *FakeLocalRepository) FindByIDArgsForCall(i int) string
func (*FakeLocalRepository) FindByIDCallCount ¶
func (fake *FakeLocalRepository) FindByIDCallCount() int
func (*FakeLocalRepository) FindByIDReturns ¶
func (fake *FakeLocalRepository) FindByIDReturns(result1 *redis.Instance, result2 error)
func (*FakeLocalRepository) InstanceConfigPath ¶
func (fake *FakeLocalRepository) InstanceConfigPath(instanceID string) string
func (*FakeLocalRepository) InstanceConfigPathArgsForCall ¶
func (fake *FakeLocalRepository) InstanceConfigPathArgsForCall(i int) string
func (*FakeLocalRepository) InstanceConfigPathCallCount ¶
func (fake *FakeLocalRepository) InstanceConfigPathCallCount() int
func (*FakeLocalRepository) InstanceConfigPathReturns ¶
func (fake *FakeLocalRepository) InstanceConfigPathReturns(result1 string)
func (*FakeLocalRepository) InstanceCount ¶
func (fake *FakeLocalRepository) InstanceCount() (int, []error)
func (*FakeLocalRepository) InstanceCountCallCount ¶
func (fake *FakeLocalRepository) InstanceCountCallCount() int
func (*FakeLocalRepository) InstanceCountReturns ¶
func (fake *FakeLocalRepository) InstanceCountReturns(result1 int, result2 []error)
func (*FakeLocalRepository) InstanceDataDir ¶
func (fake *FakeLocalRepository) InstanceDataDir(instanceID string) string
func (*FakeLocalRepository) InstanceDataDirArgsForCall ¶
func (fake *FakeLocalRepository) InstanceDataDirArgsForCall(i int) string
func (*FakeLocalRepository) InstanceDataDirCallCount ¶
func (fake *FakeLocalRepository) InstanceDataDirCallCount() int
func (*FakeLocalRepository) InstanceDataDirReturns ¶
func (fake *FakeLocalRepository) InstanceDataDirReturns(result1 string)
func (*FakeLocalRepository) InstanceExists ¶
func (fake *FakeLocalRepository) InstanceExists(instanceID string) (bool, error)
func (*FakeLocalRepository) InstanceExistsArgsForCall ¶
func (fake *FakeLocalRepository) InstanceExistsArgsForCall(i int) string
func (*FakeLocalRepository) InstanceExistsCallCount ¶
func (fake *FakeLocalRepository) InstanceExistsCallCount() int
func (*FakeLocalRepository) InstanceExistsReturns ¶
func (fake *FakeLocalRepository) InstanceExistsReturns(result1 bool, result2 error)
func (*FakeLocalRepository) InstanceLogFilePath ¶
func (fake *FakeLocalRepository) InstanceLogFilePath(instanceID string) string
func (*FakeLocalRepository) InstanceLogFilePathArgsForCall ¶
func (fake *FakeLocalRepository) InstanceLogFilePathArgsForCall(i int) string
func (*FakeLocalRepository) InstanceLogFilePathCallCount ¶
func (fake *FakeLocalRepository) InstanceLogFilePathCallCount() int
func (*FakeLocalRepository) InstanceLogFilePathReturns ¶
func (fake *FakeLocalRepository) InstanceLogFilePathReturns(result1 string)
func (*FakeLocalRepository) InstancePidFilePath ¶
func (fake *FakeLocalRepository) InstancePidFilePath(instanceID string) string
func (*FakeLocalRepository) InstancePidFilePathArgsForCall ¶
func (fake *FakeLocalRepository) InstancePidFilePathArgsForCall(i int) string
func (*FakeLocalRepository) InstancePidFilePathCallCount ¶
func (fake *FakeLocalRepository) InstancePidFilePathCallCount() int
func (*FakeLocalRepository) InstancePidFilePathReturns ¶
func (fake *FakeLocalRepository) InstancePidFilePathReturns(result1 string)
func (*FakeLocalRepository) Lock ¶
func (fake *FakeLocalRepository) Lock(instance *redis.Instance) error
func (*FakeLocalRepository) LockArgsForCall ¶
func (fake *FakeLocalRepository) LockArgsForCall(i int) *redis.Instance
func (*FakeLocalRepository) LockCallCount ¶
func (fake *FakeLocalRepository) LockCallCount() int
func (*FakeLocalRepository) LockReturns ¶
func (fake *FakeLocalRepository) LockReturns(result1 error)
func (*FakeLocalRepository) Setup ¶
func (fake *FakeLocalRepository) Setup(instance *redis.Instance) error
func (*FakeLocalRepository) SetupArgsForCall ¶
func (fake *FakeLocalRepository) SetupArgsForCall(i int) *redis.Instance
func (*FakeLocalRepository) SetupCallCount ¶
func (fake *FakeLocalRepository) SetupCallCount() int
func (*FakeLocalRepository) SetupReturns ¶
func (fake *FakeLocalRepository) SetupReturns(result1 error)
func (*FakeLocalRepository) Unlock ¶
func (fake *FakeLocalRepository) Unlock(instance *redis.Instance) error
func (*FakeLocalRepository) UnlockArgsForCall ¶
func (fake *FakeLocalRepository) UnlockArgsForCall(i int) *redis.Instance
func (*FakeLocalRepository) UnlockCallCount ¶
func (fake *FakeLocalRepository) UnlockCallCount() int
func (*FakeLocalRepository) UnlockReturns ¶
func (fake *FakeLocalRepository) UnlockReturns(result1 error)
type FakeProcessController ¶
type FakeProcessController struct { StartedInstances []redis.Instance DoOnInstanceStart func() KilledInstances []redis.Instance DoOnInstanceStop func() }
func (*FakeProcessController) Kill ¶
func (fakeProcessController *FakeProcessController) Kill(instance *redis.Instance) error
func (*FakeProcessController) StartAndWaitUntilReady ¶
Click to show internal directories.
Click to hide internal directories.