mocks

package
v2.0.2-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCDNDynmaicClient

type MockCDNDynmaicClient struct {
	// contains filtered or unexported fields
}

MockCDNDynmaicClient is a mock of CDNDynmaicClient interface.

func NewMockCDNDynmaicClient

func NewMockCDNDynmaicClient(ctrl *gomock.Controller) *MockCDNDynmaicClient

NewMockCDNDynmaicClient creates a new mock instance.

func (*MockCDNDynmaicClient) Close

func (m *MockCDNDynmaicClient) Close() error

Close mocks base method.

func (*MockCDNDynmaicClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCDNDynmaicClient) GetHost

func (m *MockCDNDynmaicClient) GetHost(arg0 string) (*supervisor.Host, bool)

GetHost mocks base method.

func (*MockCDNDynmaicClient) GetPieceTasks

func (m *MockCDNDynmaicClient) GetPieceTasks(arg0 context.Context, arg1 dfnet.NetAddr, arg2 *base.PieceTaskRequest, arg3 ...grpc.CallOption) (*base.PiecePacket, error)

GetPieceTasks mocks base method.

func (*MockCDNDynmaicClient) ObtainSeeds

ObtainSeeds mocks base method.

func (*MockCDNDynmaicClient) OnNotify

func (m *MockCDNDynmaicClient) OnNotify(arg0 *config.DynconfigData)

OnNotify mocks base method.

func (*MockCDNDynmaicClient) UpdateState

func (m *MockCDNDynmaicClient) UpdateState(arg0 []dfnet.NetAddr)

UpdateState mocks base method.

type MockCDNDynmaicClientMockRecorder

type MockCDNDynmaicClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockCDNDynmaicClientMockRecorder is the mock recorder for MockCDNDynmaicClient.

func (*MockCDNDynmaicClientMockRecorder) Close

Close indicates an expected call of Close.

func (*MockCDNDynmaicClientMockRecorder) GetHost

func (mr *MockCDNDynmaicClientMockRecorder) GetHost(arg0 interface{}) *gomock.Call

GetHost indicates an expected call of GetHost.

func (*MockCDNDynmaicClientMockRecorder) GetPieceTasks

func (mr *MockCDNDynmaicClientMockRecorder) GetPieceTasks(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

GetPieceTasks indicates an expected call of GetPieceTasks.

func (*MockCDNDynmaicClientMockRecorder) ObtainSeeds

func (mr *MockCDNDynmaicClientMockRecorder) ObtainSeeds(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ObtainSeeds indicates an expected call of ObtainSeeds.

func (*MockCDNDynmaicClientMockRecorder) OnNotify

func (mr *MockCDNDynmaicClientMockRecorder) OnNotify(arg0 interface{}) *gomock.Call

OnNotify indicates an expected call of OnNotify.

func (*MockCDNDynmaicClientMockRecorder) UpdateState

func (mr *MockCDNDynmaicClientMockRecorder) UpdateState(arg0 interface{}) *gomock.Call

UpdateState indicates an expected call of UpdateState.

type MockGC

type MockGC struct {
	// contains filtered or unexported fields
}

MockGC is a mock of GC interface.

func NewMockGC

func NewMockGC(ctrl *gomock.Controller) *MockGC

NewMockGC creates a new mock instance.

func (*MockGC) Add

func (m *MockGC) Add(arg0 gc.Task) error

Add mocks base method.

func (*MockGC) EXPECT

func (m *MockGC) EXPECT() *MockGCMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGC) Run

func (m *MockGC) Run(arg0 string) error

Run mocks base method.

func (*MockGC) RunAll

func (m *MockGC) RunAll()

RunAll mocks base method.

func (*MockGC) Serve

func (m *MockGC) Serve()

Serve mocks base method.

func (*MockGC) Stop

func (m *MockGC) Stop()

Stop mocks base method.

type MockGCMockRecorder

type MockGCMockRecorder struct {
	// contains filtered or unexported fields
}

MockGCMockRecorder is the mock recorder for MockGC.

func (*MockGCMockRecorder) Add

func (mr *MockGCMockRecorder) Add(arg0 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockGCMockRecorder) Run

func (mr *MockGCMockRecorder) Run(arg0 interface{}) *gomock.Call

Run indicates an expected call of Run.

func (*MockGCMockRecorder) RunAll

func (mr *MockGCMockRecorder) RunAll() *gomock.Call

RunAll indicates an expected call of RunAll.

func (*MockGCMockRecorder) Serve

func (mr *MockGCMockRecorder) Serve() *gomock.Call

Serve indicates an expected call of Serve.

func (*MockGCMockRecorder) Stop

func (mr *MockGCMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop.

type MockHostManager

type MockHostManager struct {
	// contains filtered or unexported fields
}

MockHostManager is a mock of HostManager interface.

func NewMockHostManager

func NewMockHostManager(ctrl *gomock.Controller) *MockHostManager

NewMockHostManager creates a new mock instance.

func (*MockHostManager) Add

func (m *MockHostManager) Add(arg0 *supervisor.Host)

Add mocks base method.

func (*MockHostManager) Delete

func (m *MockHostManager) Delete(arg0 string)

Delete mocks base method.

func (*MockHostManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHostManager) Get

func (m *MockHostManager) Get(arg0 string) (*supervisor.Host, bool)

Get mocks base method.

type MockHostManagerMockRecorder

type MockHostManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockHostManagerMockRecorder is the mock recorder for MockHostManager.

func (*MockHostManagerMockRecorder) Add

func (mr *MockHostManagerMockRecorder) Add(arg0 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockHostManagerMockRecorder) Delete

func (mr *MockHostManagerMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockHostManagerMockRecorder) Get

func (mr *MockHostManagerMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

type MockPeerManager

type MockPeerManager struct {
	// contains filtered or unexported fields
}

MockPeerManager is a mock of PeerManager interface.

func NewMockPeerManager

func NewMockPeerManager(ctrl *gomock.Controller) *MockPeerManager

NewMockPeerManager creates a new mock instance.

func (*MockPeerManager) Add

func (m *MockPeerManager) Add(arg0 *supervisor.Peer)

Add mocks base method.

func (*MockPeerManager) Delete

func (m *MockPeerManager) Delete(arg0 string)

Delete mocks base method.

func (*MockPeerManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPeerManager) Get

func (m *MockPeerManager) Get(arg0 string) (*supervisor.Peer, bool)

Get mocks base method.

func (*MockPeerManager) GetPeers

func (m *MockPeerManager) GetPeers() *sync.Map

GetPeers mocks base method.

func (*MockPeerManager) GetPeersByTask

func (m *MockPeerManager) GetPeersByTask(arg0 string) []*supervisor.Peer

GetPeersByTask mocks base method.

type MockPeerManagerMockRecorder

type MockPeerManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockPeerManagerMockRecorder is the mock recorder for MockPeerManager.

func (*MockPeerManagerMockRecorder) Add

func (mr *MockPeerManagerMockRecorder) Add(arg0 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockPeerManagerMockRecorder) Delete

func (mr *MockPeerManagerMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockPeerManagerMockRecorder) Get

func (mr *MockPeerManagerMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockPeerManagerMockRecorder) GetPeers

func (mr *MockPeerManagerMockRecorder) GetPeers() *gomock.Call

GetPeers indicates an expected call of GetPeers.

func (*MockPeerManagerMockRecorder) GetPeersByTask

func (mr *MockPeerManagerMockRecorder) GetPeersByTask(arg0 interface{}) *gomock.Call

GetPeersByTask indicates an expected call of GetPeersByTask.

type MockTaskManager

type MockTaskManager struct {
	// contains filtered or unexported fields
}

MockTaskManager is a mock of TaskManager interface.

func NewMockTaskManager

func NewMockTaskManager(ctrl *gomock.Controller) *MockTaskManager

NewMockTaskManager creates a new mock instance.

func (*MockTaskManager) Add

func (m *MockTaskManager) Add(arg0 *supervisor.Task)

Add mocks base method.

func (*MockTaskManager) Delete

func (m *MockTaskManager) Delete(arg0 string)

Delete mocks base method.

func (*MockTaskManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTaskManager) Get

func (m *MockTaskManager) Get(arg0 string) (*supervisor.Task, bool)

Get mocks base method.

func (*MockTaskManager) GetOrAdd

func (m *MockTaskManager) GetOrAdd(arg0 *supervisor.Task) (*supervisor.Task, bool)

GetOrAdd mocks base method.

type MockTaskManagerMockRecorder

type MockTaskManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockTaskManagerMockRecorder is the mock recorder for MockTaskManager.

func (*MockTaskManagerMockRecorder) Add

func (mr *MockTaskManagerMockRecorder) Add(arg0 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockTaskManagerMockRecorder) Delete

func (mr *MockTaskManagerMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTaskManagerMockRecorder) Get

func (mr *MockTaskManagerMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockTaskManagerMockRecorder) GetOrAdd

func (mr *MockTaskManagerMockRecorder) GetOrAdd(arg0 interface{}) *gomock.Call

GetOrAdd indicates an expected call of GetOrAdd.

Jump to

Keyboard shortcuts

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