Documentation ¶
Overview ¶
This file was generated by counterfeiter
Index ¶
- type FakeAgentKiller
- type FakeClock
- func (fake *FakeClock) Invocations() map[string][][]interface{}
- func (fake *FakeClock) NewTicker(d time.Duration) clock.Ticker
- func (fake *FakeClock) NewTickerArgsForCall(i int) time.Duration
- func (fake *FakeClock) NewTickerCallCount() int
- func (fake *FakeClock) NewTickerReturns(result1 clock.Ticker)
- func (fake *FakeClock) NewTimer(d time.Duration) clock.Timer
- func (fake *FakeClock) NewTimerArgsForCall(i int) time.Duration
- func (fake *FakeClock) NewTimerCallCount() int
- func (fake *FakeClock) NewTimerReturns(result1 clock.Timer)
- func (fake *FakeClock) Now() time.Time
- func (fake *FakeClock) NowCallCount() int
- func (fake *FakeClock) NowReturns(result1 time.Time)
- func (fake *FakeClock) Since(t time.Time) time.Duration
- func (fake *FakeClock) SinceArgsForCall(i int) time.Time
- func (fake *FakeClock) SinceCallCount() int
- func (fake *FakeClock) SinceReturns(result1 time.Duration)
- func (fake *FakeClock) Sleep(d time.Duration)
- func (fake *FakeClock) SleepArgsForCall(i int) time.Duration
- func (fake *FakeClock) SleepCallCount() int
- type FakeFactory
- type FakeRunner
- type TestAction
- func (a *TestAction) Cancel() error
- func (a *TestAction) IsAsynchronous(protocolVersion boshaction.ProtocolVersion) bool
- func (a *TestAction) IsLoggable() bool
- func (a *TestAction) IsPersistent() bool
- func (a *TestAction) Resume() (interface{}, error)
- func (a *TestAction) Run(payload []byte) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAgentKiller ¶
type FakeAgentKiller struct { }
func NewFakeAgentKiller ¶
func NewFakeAgentKiller() FakeAgentKiller
func (FakeAgentKiller) KillAgent ¶
func (a FakeAgentKiller) KillAgent(waitToKillAgentInterval time.Duration)
type FakeClock ¶
type FakeClock struct { NowStub func() time.Time SleepStub func(d time.Duration) SinceStub func(t time.Time) time.Duration NewTimerStub func(d time.Duration) clock.Timer NewTickerStub func(d time.Duration) clock.Ticker // contains filtered or unexported fields }
func (*FakeClock) Invocations ¶
func (*FakeClock) NewTickerArgsForCall ¶
func (*FakeClock) NewTickerCallCount ¶
func (*FakeClock) NewTickerReturns ¶
func (*FakeClock) NewTimerArgsForCall ¶
func (*FakeClock) NewTimerCallCount ¶
func (*FakeClock) NewTimerReturns ¶
func (*FakeClock) NowCallCount ¶
func (*FakeClock) NowReturns ¶
func (*FakeClock) SinceCallCount ¶
func (*FakeClock) SinceReturns ¶
func (*FakeClock) SleepCallCount ¶
type FakeFactory ¶
type FakeFactory struct {
// contains filtered or unexported fields
}
func NewFakeFactory ¶
func NewFakeFactory() *FakeFactory
func (*FakeFactory) Create ¶
func (f *FakeFactory) Create(method string) (boshaction.Action, error)
func (*FakeFactory) RegisterAction ¶
func (f *FakeFactory) RegisterAction(method string, action *TestAction)
func (*FakeFactory) RegisterActionErr ¶
func (f *FakeFactory) RegisterActionErr(method string, err error)
type FakeRunner ¶
type FakeRunner struct { RunAction boshaction.Action RunPayload []byte RunProtocolVersion boshaction.ProtocolVersion RunValue interface{} RunErr error ResumeAction boshaction.Action ResumePayload []byte ResumeValue interface{} ResumeErr error }
func (*FakeRunner) Resume ¶
func (runner *FakeRunner) Resume(action boshaction.Action, payload []byte) (interface{}, error)
func (*FakeRunner) Run ¶
func (runner *FakeRunner) Run(action boshaction.Action, payload []byte, version boshaction.ProtocolVersion) (interface{}, error)
type TestAction ¶
type TestAction struct { Asynchronous bool Persistent bool Loggable bool ResumeValue interface{} ResumeErr error Resumed bool Canceled bool CancelErr error ProtocolVersion boshaction.ProtocolVersion }
func (*TestAction) Cancel ¶
func (a *TestAction) Cancel() error
func (*TestAction) IsAsynchronous ¶
func (a *TestAction) IsAsynchronous(protocolVersion boshaction.ProtocolVersion) bool
func (*TestAction) IsLoggable ¶
func (a *TestAction) IsLoggable() bool
func (*TestAction) IsPersistent ¶
func (a *TestAction) IsPersistent() bool
func (*TestAction) Resume ¶
func (a *TestAction) Resume() (interface{}, error)
func (*TestAction) Run ¶
func (a *TestAction) Run(payload []byte) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.