fakebackend

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 2 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 FakeMasterLock

type FakeMasterLock struct {
	LockStub func(info *backend.MasterInfo) error

	UnLockStub func(masterID string) error

	WriteHeartbeatStub func(info *backend.MasterInfo) error

	StatusStub func() (*backend.MasterInfo, error)
	// contains filtered or unexported fields
}

func (*FakeMasterLock) Invocations

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

func (*FakeMasterLock) Lock

func (fake *FakeMasterLock) Lock(info *backend.MasterInfo) error

func (*FakeMasterLock) LockArgsForCall

func (fake *FakeMasterLock) LockArgsForCall(i int) *backend.MasterInfo

func (*FakeMasterLock) LockCallCount

func (fake *FakeMasterLock) LockCallCount() int

func (*FakeMasterLock) LockReturns

func (fake *FakeMasterLock) LockReturns(result1 error)

func (*FakeMasterLock) LockReturnsOnCall

func (fake *FakeMasterLock) LockReturnsOnCall(i int, result1 error)

func (*FakeMasterLock) Status

func (fake *FakeMasterLock) Status() (*backend.MasterInfo, error)

func (*FakeMasterLock) StatusCallCount

func (fake *FakeMasterLock) StatusCallCount() int

func (*FakeMasterLock) StatusReturns

func (fake *FakeMasterLock) StatusReturns(result1 *backend.MasterInfo, result2 error)

func (*FakeMasterLock) StatusReturnsOnCall

func (fake *FakeMasterLock) StatusReturnsOnCall(i int, result1 *backend.MasterInfo, result2 error)

func (*FakeMasterLock) UnLock

func (fake *FakeMasterLock) UnLock(masterID string) error

func (*FakeMasterLock) UnLockArgsForCall

func (fake *FakeMasterLock) UnLockArgsForCall(i int) string

func (*FakeMasterLock) UnLockCallCount

func (fake *FakeMasterLock) UnLockCallCount() int

func (*FakeMasterLock) UnLockReturns

func (fake *FakeMasterLock) UnLockReturns(result1 error)

func (*FakeMasterLock) UnLockReturnsOnCall

func (fake *FakeMasterLock) UnLockReturnsOnCall(i int, result1 error)

func (*FakeMasterLock) WriteHeartbeat

func (fake *FakeMasterLock) WriteHeartbeat(info *backend.MasterInfo) error

func (*FakeMasterLock) WriteHeartbeatArgsForCall

func (fake *FakeMasterLock) WriteHeartbeatArgsForCall(i int) *backend.MasterInfo

func (*FakeMasterLock) WriteHeartbeatCallCount

func (fake *FakeMasterLock) WriteHeartbeatCallCount() int

func (*FakeMasterLock) WriteHeartbeatReturns

func (fake *FakeMasterLock) WriteHeartbeatReturns(result1 error)

func (*FakeMasterLock) WriteHeartbeatReturnsOnCall

func (fake *FakeMasterLock) WriteHeartbeatReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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