fakebbs

package
v0.0.0-...-aa06bc0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeExecutorBBS

type FakeExecutorBBS struct {
	CallsToConverge int

	MaintainConvergeInterval    time.Duration
	MaintainConvergeExecutorID  string
	MaintainConvergeLostChannel <-chan bool
	MaintainConvergeStopChannel chan<- chan bool
	MaintainConvergeLockError   error

	MaintainingPresenceHeartbeatInterval time.Duration
	MaintainingPresenceExecutorID        string
	MaintainingPresencePresence          *FakePresence
	MaintainingPresenceErrorChannel      chan bool
	MaintainingPresenceError             error

	ClaimedRunOnce  models.RunOnce
	ClaimRunOnceErr error

	StartedRunOnce  models.RunOnce
	StartRunOnceErr error

	CompletedRunOnce           models.RunOnce
	CompleteRunOnceErr         error
	ConvergeRunOnceTimeToClaim time.Duration
}

func NewFakeExecutorBBS

func NewFakeExecutorBBS() *FakeExecutorBBS

func (*FakeExecutorBBS) ClaimRunOnce

func (fakeBBS *FakeExecutorBBS) ClaimRunOnce(runOnce models.RunOnce) error

func (*FakeExecutorBBS) CompleteRunOnce

func (fakeBBS *FakeExecutorBBS) CompleteRunOnce(runOnce models.RunOnce) error

func (*FakeExecutorBBS) ConvergeRunOnce

func (fakeBBS *FakeExecutorBBS) ConvergeRunOnce(timeToClaim time.Duration)

func (*FakeExecutorBBS) MaintainConvergeLock

func (fakeBBS *FakeExecutorBBS) MaintainConvergeLock(interval time.Duration, executorID string) (<-chan bool, chan<- chan bool, error)

func (*FakeExecutorBBS) MaintainExecutorPresence

func (fakeBBS *FakeExecutorBBS) MaintainExecutorPresence(heartbeatInterval time.Duration, executorID string) (bbs.PresenceInterface, <-chan bool, error)

func (*FakeExecutorBBS) StartRunOnce

func (fakeBBS *FakeExecutorBBS) StartRunOnce(runOnce models.RunOnce) error

func (*FakeExecutorBBS) WatchForDesiredRunOnce

func (fakeBBS *FakeExecutorBBS) WatchForDesiredRunOnce() (<-chan models.RunOnce, chan<- bool, <-chan error)

type FakePresence

type FakePresence struct {
	Removed bool
}

func (*FakePresence) Remove

func (p *FakePresence) Remove()

type FakeStagerBBS

type FakeStagerBBS struct {
	ResolvedRunOnce   models.RunOnce
	ResolveRunOnceErr error

	CalledCompletedRunOnce  chan bool
	CompletedRunOnceChan    chan models.RunOnce
	CompletedRunOnceErrChan chan error
}

func NewFakeStagerBBS

func NewFakeStagerBBS() *FakeStagerBBS

func (*FakeStagerBBS) DesireRunOnce

func (fakeBBS *FakeStagerBBS) DesireRunOnce(runOnce models.RunOnce) error

func (*FakeStagerBBS) GetAvailableFileServer

func (fakeBBS *FakeStagerBBS) GetAvailableFileServer() (string, error)

func (*FakeStagerBBS) ResolveRunOnce

func (fakeBBS *FakeStagerBBS) ResolveRunOnce(runOnce models.RunOnce) error

func (*FakeStagerBBS) WatchForCompletedRunOnce

func (fakeBBS *FakeStagerBBS) WatchForCompletedRunOnce() (<-chan models.RunOnce, chan<- bool, <-chan error)

Jump to

Keyboard shortcuts

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