mocks

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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 MockSchedulerClient

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

MockSchedulerClient is a mock of SchedulerClient interface.

func NewMockSchedulerClient

func NewMockSchedulerClient(ctrl *gomock.Controller) *MockSchedulerClient

NewMockSchedulerClient creates a new mock instance.

func (*MockSchedulerClient) AnnounceHost added in v1.2.5

func (m *MockSchedulerClient) AnnounceHost(ctx context.Context, in *v2.AnnounceHostRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

AnnounceHost mocks base method.

func (*MockSchedulerClient) AnnouncePeer

AnnouncePeer mocks base method.

func (*MockSchedulerClient) EXPECT

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

func (*MockSchedulerClient) ExchangePeer

ExchangePeer mocks base method.

func (*MockSchedulerClient) LeaveHost added in v1.2.2

LeaveHost mocks base method.

func (*MockSchedulerClient) LeavePeer

LeavePeer mocks base method.

func (*MockSchedulerClient) StatPeer

func (m *MockSchedulerClient) StatPeer(ctx context.Context, in *v2.StatPeerRequest, opts ...grpc.CallOption) (*v2.Peer, error)

StatPeer mocks base method.

func (*MockSchedulerClient) StatTask

func (m *MockSchedulerClient) StatTask(ctx context.Context, in *v2.StatTaskRequest, opts ...grpc.CallOption) (*v2.Task, error)

StatTask mocks base method.

type MockSchedulerClientMockRecorder

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

MockSchedulerClientMockRecorder is the mock recorder for MockSchedulerClient.

func (*MockSchedulerClientMockRecorder) AnnounceHost added in v1.2.5

func (mr *MockSchedulerClientMockRecorder) AnnounceHost(ctx, in interface{}, opts ...interface{}) *gomock.Call

AnnounceHost indicates an expected call of AnnounceHost.

func (*MockSchedulerClientMockRecorder) AnnouncePeer

func (mr *MockSchedulerClientMockRecorder) AnnouncePeer(ctx interface{}, opts ...interface{}) *gomock.Call

AnnouncePeer indicates an expected call of AnnouncePeer.

func (*MockSchedulerClientMockRecorder) ExchangePeer

func (mr *MockSchedulerClientMockRecorder) ExchangePeer(ctx, in interface{}, opts ...interface{}) *gomock.Call

ExchangePeer indicates an expected call of ExchangePeer.

func (*MockSchedulerClientMockRecorder) LeaveHost added in v1.2.2

func (mr *MockSchedulerClientMockRecorder) LeaveHost(ctx, in interface{}, opts ...interface{}) *gomock.Call

LeaveHost indicates an expected call of LeaveHost.

func (*MockSchedulerClientMockRecorder) LeavePeer

func (mr *MockSchedulerClientMockRecorder) LeavePeer(ctx, in interface{}, opts ...interface{}) *gomock.Call

LeavePeer indicates an expected call of LeavePeer.

func (*MockSchedulerClientMockRecorder) StatPeer

func (mr *MockSchedulerClientMockRecorder) StatPeer(ctx, in interface{}, opts ...interface{}) *gomock.Call

StatPeer indicates an expected call of StatPeer.

func (*MockSchedulerClientMockRecorder) StatTask

func (mr *MockSchedulerClientMockRecorder) StatTask(ctx, in interface{}, opts ...interface{}) *gomock.Call

StatTask indicates an expected call of StatTask.

type MockSchedulerServer

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

MockSchedulerServer is a mock of SchedulerServer interface.

func NewMockSchedulerServer

func NewMockSchedulerServer(ctrl *gomock.Controller) *MockSchedulerServer

NewMockSchedulerServer creates a new mock instance.

func (*MockSchedulerServer) AnnounceHost added in v1.2.5

func (m *MockSchedulerServer) AnnounceHost(arg0 context.Context, arg1 *v2.AnnounceHostRequest) (*emptypb.Empty, error)

AnnounceHost mocks base method.

func (*MockSchedulerServer) AnnouncePeer

AnnouncePeer mocks base method.

func (*MockSchedulerServer) EXPECT

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

func (*MockSchedulerServer) ExchangePeer

ExchangePeer mocks base method.

func (*MockSchedulerServer) LeaveHost added in v1.2.2

func (m *MockSchedulerServer) LeaveHost(arg0 context.Context, arg1 *v2.LeaveHostRequest) (*emptypb.Empty, error)

LeaveHost mocks base method.

func (*MockSchedulerServer) LeavePeer

func (m *MockSchedulerServer) LeavePeer(arg0 context.Context, arg1 *v2.LeavePeerRequest) (*emptypb.Empty, error)

LeavePeer mocks base method.

func (*MockSchedulerServer) StatPeer

func (m *MockSchedulerServer) StatPeer(arg0 context.Context, arg1 *v2.StatPeerRequest) (*v2.Peer, error)

StatPeer mocks base method.

func (*MockSchedulerServer) StatTask

func (m *MockSchedulerServer) StatTask(arg0 context.Context, arg1 *v2.StatTaskRequest) (*v2.Task, error)

StatTask mocks base method.

type MockSchedulerServerMockRecorder

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

MockSchedulerServerMockRecorder is the mock recorder for MockSchedulerServer.

func (*MockSchedulerServerMockRecorder) AnnounceHost added in v1.2.5

func (mr *MockSchedulerServerMockRecorder) AnnounceHost(arg0, arg1 interface{}) *gomock.Call

AnnounceHost indicates an expected call of AnnounceHost.

func (*MockSchedulerServerMockRecorder) AnnouncePeer

func (mr *MockSchedulerServerMockRecorder) AnnouncePeer(arg0 interface{}) *gomock.Call

AnnouncePeer indicates an expected call of AnnouncePeer.

func (*MockSchedulerServerMockRecorder) ExchangePeer

func (mr *MockSchedulerServerMockRecorder) ExchangePeer(arg0, arg1 interface{}) *gomock.Call

ExchangePeer indicates an expected call of ExchangePeer.

func (*MockSchedulerServerMockRecorder) LeaveHost added in v1.2.2

func (mr *MockSchedulerServerMockRecorder) LeaveHost(arg0, arg1 interface{}) *gomock.Call

LeaveHost indicates an expected call of LeaveHost.

func (*MockSchedulerServerMockRecorder) LeavePeer

func (mr *MockSchedulerServerMockRecorder) LeavePeer(arg0, arg1 interface{}) *gomock.Call

LeavePeer indicates an expected call of LeavePeer.

func (*MockSchedulerServerMockRecorder) StatPeer

func (mr *MockSchedulerServerMockRecorder) StatPeer(arg0, arg1 interface{}) *gomock.Call

StatPeer indicates an expected call of StatPeer.

func (*MockSchedulerServerMockRecorder) StatTask

func (mr *MockSchedulerServerMockRecorder) StatTask(arg0, arg1 interface{}) *gomock.Call

StatTask indicates an expected call of StatTask.

type MockScheduler_AnnouncePeerClient

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

MockScheduler_AnnouncePeerClient is a mock of Scheduler_AnnouncePeerClient interface.

func NewMockScheduler_AnnouncePeerClient

func NewMockScheduler_AnnouncePeerClient(ctrl *gomock.Controller) *MockScheduler_AnnouncePeerClient

NewMockScheduler_AnnouncePeerClient creates a new mock instance.

func (*MockScheduler_AnnouncePeerClient) CloseSend

func (m *MockScheduler_AnnouncePeerClient) CloseSend() error

CloseSend mocks base method.

func (*MockScheduler_AnnouncePeerClient) Context

Context mocks base method.

func (*MockScheduler_AnnouncePeerClient) EXPECT

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

func (*MockScheduler_AnnouncePeerClient) Header

Header mocks base method.

func (*MockScheduler_AnnouncePeerClient) Recv

Recv mocks base method.

func (*MockScheduler_AnnouncePeerClient) RecvMsg

func (m_2 *MockScheduler_AnnouncePeerClient) RecvMsg(m interface{}) error

RecvMsg mocks base method.

func (*MockScheduler_AnnouncePeerClient) Send

Send mocks base method.

func (*MockScheduler_AnnouncePeerClient) SendMsg

func (m_2 *MockScheduler_AnnouncePeerClient) SendMsg(m interface{}) error

SendMsg mocks base method.

func (*MockScheduler_AnnouncePeerClient) Trailer

Trailer mocks base method.

type MockScheduler_AnnouncePeerClientMockRecorder

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

MockScheduler_AnnouncePeerClientMockRecorder is the mock recorder for MockScheduler_AnnouncePeerClient.

func (*MockScheduler_AnnouncePeerClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockScheduler_AnnouncePeerClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockScheduler_AnnouncePeerClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockScheduler_AnnouncePeerClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockScheduler_AnnouncePeerClientMockRecorder) RecvMsg

func (mr *MockScheduler_AnnouncePeerClientMockRecorder) RecvMsg(m interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockScheduler_AnnouncePeerClientMockRecorder) Send

func (mr *MockScheduler_AnnouncePeerClientMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockScheduler_AnnouncePeerClientMockRecorder) SendMsg

func (mr *MockScheduler_AnnouncePeerClientMockRecorder) SendMsg(m interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockScheduler_AnnouncePeerClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockScheduler_AnnouncePeerServer

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

MockScheduler_AnnouncePeerServer is a mock of Scheduler_AnnouncePeerServer interface.

func NewMockScheduler_AnnouncePeerServer

func NewMockScheduler_AnnouncePeerServer(ctrl *gomock.Controller) *MockScheduler_AnnouncePeerServer

NewMockScheduler_AnnouncePeerServer creates a new mock instance.

func (*MockScheduler_AnnouncePeerServer) Context

Context mocks base method.

func (*MockScheduler_AnnouncePeerServer) EXPECT

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

func (*MockScheduler_AnnouncePeerServer) Recv

Recv mocks base method.

func (*MockScheduler_AnnouncePeerServer) RecvMsg

func (m_2 *MockScheduler_AnnouncePeerServer) RecvMsg(m interface{}) error

RecvMsg mocks base method.

func (*MockScheduler_AnnouncePeerServer) Send

Send mocks base method.

func (*MockScheduler_AnnouncePeerServer) SendHeader

func (m *MockScheduler_AnnouncePeerServer) SendHeader(arg0 metadata.MD) error

SendHeader mocks base method.

func (*MockScheduler_AnnouncePeerServer) SendMsg

func (m_2 *MockScheduler_AnnouncePeerServer) SendMsg(m interface{}) error

SendMsg mocks base method.

func (*MockScheduler_AnnouncePeerServer) SetHeader

SetHeader mocks base method.

func (*MockScheduler_AnnouncePeerServer) SetTrailer

func (m *MockScheduler_AnnouncePeerServer) SetTrailer(arg0 metadata.MD)

SetTrailer mocks base method.

type MockScheduler_AnnouncePeerServerMockRecorder

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

MockScheduler_AnnouncePeerServerMockRecorder is the mock recorder for MockScheduler_AnnouncePeerServer.

func (*MockScheduler_AnnouncePeerServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockScheduler_AnnouncePeerServerMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockScheduler_AnnouncePeerServerMockRecorder) RecvMsg

func (mr *MockScheduler_AnnouncePeerServerMockRecorder) RecvMsg(m interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockScheduler_AnnouncePeerServerMockRecorder) Send

func (mr *MockScheduler_AnnouncePeerServerMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockScheduler_AnnouncePeerServerMockRecorder) SendHeader

func (mr *MockScheduler_AnnouncePeerServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call

SendHeader indicates an expected call of SendHeader.

func (*MockScheduler_AnnouncePeerServerMockRecorder) SendMsg

func (mr *MockScheduler_AnnouncePeerServerMockRecorder) SendMsg(m interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockScheduler_AnnouncePeerServerMockRecorder) SetHeader

func (mr *MockScheduler_AnnouncePeerServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call

SetHeader indicates an expected call of SetHeader.

func (*MockScheduler_AnnouncePeerServerMockRecorder) SetTrailer

func (mr *MockScheduler_AnnouncePeerServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call

SetTrailer indicates an expected call of SetTrailer.

type MockisAnnouncePeerRequest_Request

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

MockisAnnouncePeerRequest_Request is a mock of isAnnouncePeerRequest_Request interface.

func NewMockisAnnouncePeerRequest_Request

func NewMockisAnnouncePeerRequest_Request(ctrl *gomock.Controller) *MockisAnnouncePeerRequest_Request

NewMockisAnnouncePeerRequest_Request creates a new mock instance.

func (*MockisAnnouncePeerRequest_Request) EXPECT

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

type MockisAnnouncePeerRequest_RequestMockRecorder

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

MockisAnnouncePeerRequest_RequestMockRecorder is the mock recorder for MockisAnnouncePeerRequest_Request.

type MockisAnnouncePeerResponse_Response

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

MockisAnnouncePeerResponse_Response is a mock of isAnnouncePeerResponse_Response interface.

func NewMockisAnnouncePeerResponse_Response

func NewMockisAnnouncePeerResponse_Response(ctrl *gomock.Controller) *MockisAnnouncePeerResponse_Response

NewMockisAnnouncePeerResponse_Response creates a new mock instance.

func (*MockisAnnouncePeerResponse_Response) EXPECT

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

type MockisAnnouncePeerResponse_ResponseMockRecorder

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

MockisAnnouncePeerResponse_ResponseMockRecorder is the mock recorder for MockisAnnouncePeerResponse_Response.

Jump to

Keyboard shortcuts

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