fakes

package
Version: v2.367.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

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 {
	AfterStub func(time.Duration) <-chan time.Time

	NewTickerStub func(time.Duration) clock.Ticker

	NewTimerStub func(time.Duration) clock.Timer

	NowStub func() time.Time

	SinceStub func(time.Time) time.Duration

	SleepStub func(time.Duration)
	// contains filtered or unexported fields
}

func (*FakeClock) After

func (fake *FakeClock) After(arg1 time.Duration) <-chan time.Time

func (*FakeClock) AfterArgsForCall

func (fake *FakeClock) AfterArgsForCall(i int) time.Duration

func (*FakeClock) AfterCallCount

func (fake *FakeClock) AfterCallCount() int

func (*FakeClock) AfterCalls

func (fake *FakeClock) AfterCalls(stub func(time.Duration) <-chan time.Time)

func (*FakeClock) AfterReturns

func (fake *FakeClock) AfterReturns(result1 <-chan time.Time)

func (*FakeClock) AfterReturnsOnCall

func (fake *FakeClock) AfterReturnsOnCall(i int, result1 <-chan time.Time)

func (*FakeClock) Invocations

func (fake *FakeClock) Invocations() map[string][][]interface{}

func (*FakeClock) NewTicker

func (fake *FakeClock) NewTicker(arg1 time.Duration) clock.Ticker

func (*FakeClock) NewTickerArgsForCall

func (fake *FakeClock) NewTickerArgsForCall(i int) time.Duration

func (*FakeClock) NewTickerCallCount

func (fake *FakeClock) NewTickerCallCount() int

func (*FakeClock) NewTickerCalls

func (fake *FakeClock) NewTickerCalls(stub func(time.Duration) clock.Ticker)

func (*FakeClock) NewTickerReturns

func (fake *FakeClock) NewTickerReturns(result1 clock.Ticker)

func (*FakeClock) NewTickerReturnsOnCall

func (fake *FakeClock) NewTickerReturnsOnCall(i int, result1 clock.Ticker)

func (*FakeClock) NewTimer

func (fake *FakeClock) NewTimer(arg1 time.Duration) clock.Timer

func (*FakeClock) NewTimerArgsForCall

func (fake *FakeClock) NewTimerArgsForCall(i int) time.Duration

func (*FakeClock) NewTimerCallCount

func (fake *FakeClock) NewTimerCallCount() int

func (*FakeClock) NewTimerCalls

func (fake *FakeClock) NewTimerCalls(stub func(time.Duration) clock.Timer)

func (*FakeClock) NewTimerReturns

func (fake *FakeClock) NewTimerReturns(result1 clock.Timer)

func (*FakeClock) NewTimerReturnsOnCall

func (fake *FakeClock) NewTimerReturnsOnCall(i int, result1 clock.Timer)

func (*FakeClock) Now

func (fake *FakeClock) Now() time.Time

func (*FakeClock) NowCallCount

func (fake *FakeClock) NowCallCount() int

func (*FakeClock) NowCalls

func (fake *FakeClock) NowCalls(stub func() time.Time)

func (*FakeClock) NowReturns

func (fake *FakeClock) NowReturns(result1 time.Time)

func (*FakeClock) NowReturnsOnCall

func (fake *FakeClock) NowReturnsOnCall(i int, result1 time.Time)

func (*FakeClock) Since

func (fake *FakeClock) Since(arg1 time.Time) time.Duration

func (*FakeClock) SinceArgsForCall

func (fake *FakeClock) SinceArgsForCall(i int) time.Time

func (*FakeClock) SinceCallCount

func (fake *FakeClock) SinceCallCount() int

func (*FakeClock) SinceCalls

func (fake *FakeClock) SinceCalls(stub func(time.Time) time.Duration)

func (*FakeClock) SinceReturns

func (fake *FakeClock) SinceReturns(result1 time.Duration)

func (*FakeClock) SinceReturnsOnCall

func (fake *FakeClock) SinceReturnsOnCall(i int, result1 time.Duration)

func (*FakeClock) Sleep

func (fake *FakeClock) Sleep(arg1 time.Duration)

func (*FakeClock) SleepArgsForCall

func (fake *FakeClock) SleepArgsForCall(i int) time.Duration

func (*FakeClock) SleepCallCount

func (fake *FakeClock) SleepCallCount() int

func (*FakeClock) SleepCalls

func (fake *FakeClock) SleepCalls(stub func(time.Duration))

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL