mock_api

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_api is a generated GoMock package.

Package mock_api is a generated GoMock package.

Package mock_api is a generated GoMock package.

Package mock_api is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApiClient

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

MockApiClient is a mock of ApiClient interface

func NewMockApiClient

func NewMockApiClient(ctrl *gomock.Controller) *MockApiClient

NewMockApiClient creates a new mock instance

func (*MockApiClient) BackupsMetadata

BackupsMetadata mocks base method

func (*MockApiClient) EXPECT

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

func (*MockApiClient) GetClients

func (m *MockApiClient) GetClients(arg0 context.Context, arg1 *api.Empty, arg2 ...grpc.CallOption) (api.Api_GetClientsClient, error)

GetClients mocks base method

func (*MockApiClient) LastBackupMetadata

func (m *MockApiClient) LastBackupMetadata(arg0 context.Context, arg1 *api.LastBackupMetadataParams, arg2 ...grpc.CallOption) (*messages.BackupMetadata, error)

LastBackupMetadata mocks base method

func (*MockApiClient) RunBackup

func (m *MockApiClient) RunBackup(arg0 context.Context, arg1 *api.RunBackupParams, arg2 ...grpc.CallOption) (*api.Error, error)

RunBackup mocks base method

func (*MockApiClient) RunRestore

func (m *MockApiClient) RunRestore(arg0 context.Context, arg1 *api.RunRestoreParams, arg2 ...grpc.CallOption) (*api.RunRestoreResponse, error)

RunRestore mocks base method

type MockApiClientMockRecorder

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

MockApiClientMockRecorder is the mock recorder for MockApiClient

func (*MockApiClientMockRecorder) BackupsMetadata

func (mr *MockApiClientMockRecorder) BackupsMetadata(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

BackupsMetadata indicates an expected call of BackupsMetadata

func (*MockApiClientMockRecorder) GetClients

func (mr *MockApiClientMockRecorder) GetClients(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetClients indicates an expected call of GetClients

func (*MockApiClientMockRecorder) LastBackupMetadata

func (mr *MockApiClientMockRecorder) LastBackupMetadata(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

LastBackupMetadata indicates an expected call of LastBackupMetadata

func (*MockApiClientMockRecorder) RunBackup

func (mr *MockApiClientMockRecorder) RunBackup(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

RunBackup indicates an expected call of RunBackup

func (*MockApiClientMockRecorder) RunRestore

func (mr *MockApiClientMockRecorder) RunRestore(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

RunRestore indicates an expected call of RunRestore

type MockApiServer

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

MockApiServer is a mock of ApiServer interface

func NewMockApiServer

func NewMockApiServer(ctrl *gomock.Controller) *MockApiServer

NewMockApiServer creates a new mock instance

func (*MockApiServer) BackupsMetadata

BackupsMetadata mocks base method

func (*MockApiServer) EXPECT

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

func (*MockApiServer) GetClients

func (m *MockApiServer) GetClients(arg0 *api.Empty, arg1 api.Api_GetClientsServer) error

GetClients mocks base method

func (*MockApiServer) LastBackupMetadata

func (m *MockApiServer) LastBackupMetadata(arg0 context.Context, arg1 *api.LastBackupMetadataParams) (*messages.BackupMetadata, error)

LastBackupMetadata mocks base method

func (*MockApiServer) RunBackup

func (m *MockApiServer) RunBackup(arg0 context.Context, arg1 *api.RunBackupParams) (*api.Error, error)

RunBackup mocks base method

func (*MockApiServer) RunRestore

RunRestore mocks base method

type MockApiServerMockRecorder

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

MockApiServerMockRecorder is the mock recorder for MockApiServer

func (*MockApiServerMockRecorder) BackupsMetadata

func (mr *MockApiServerMockRecorder) BackupsMetadata(arg0, arg1 interface{}) *gomock.Call

BackupsMetadata indicates an expected call of BackupsMetadata

func (*MockApiServerMockRecorder) GetClients

func (mr *MockApiServerMockRecorder) GetClients(arg0, arg1 interface{}) *gomock.Call

GetClients indicates an expected call of GetClients

func (*MockApiServerMockRecorder) LastBackupMetadata

func (mr *MockApiServerMockRecorder) LastBackupMetadata(arg0, arg1 interface{}) *gomock.Call

LastBackupMetadata indicates an expected call of LastBackupMetadata

func (*MockApiServerMockRecorder) RunBackup

func (mr *MockApiServerMockRecorder) RunBackup(arg0, arg1 interface{}) *gomock.Call

RunBackup indicates an expected call of RunBackup

func (*MockApiServerMockRecorder) RunRestore

func (mr *MockApiServerMockRecorder) RunRestore(arg0, arg1 interface{}) *gomock.Call

RunRestore indicates an expected call of RunRestore

type MockApi_GetClientsClient

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

MockApi_GetClientsClient is a mock of Api_GetClientsClient interface

func NewMockApi_GetClientsClient

func NewMockApi_GetClientsClient(ctrl *gomock.Controller) *MockApi_GetClientsClient

NewMockApi_GetClientsClient creates a new mock instance

func (*MockApi_GetClientsClient) CloseSend

func (m *MockApi_GetClientsClient) CloseSend() error

CloseSend mocks base method

func (*MockApi_GetClientsClient) Context

Context mocks base method

func (*MockApi_GetClientsClient) EXPECT

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

func (*MockApi_GetClientsClient) Header

func (m *MockApi_GetClientsClient) Header() (metadata.MD, error)

Header mocks base method

func (*MockApi_GetClientsClient) Recv

func (m *MockApi_GetClientsClient) Recv() (*api.Client, error)

Recv mocks base method

func (*MockApi_GetClientsClient) RecvMsg

func (m *MockApi_GetClientsClient) RecvMsg(arg0 interface{}) error

RecvMsg mocks base method

func (*MockApi_GetClientsClient) SendMsg

func (m *MockApi_GetClientsClient) SendMsg(arg0 interface{}) error

SendMsg mocks base method

func (*MockApi_GetClientsClient) Trailer

func (m *MockApi_GetClientsClient) Trailer() metadata.MD

Trailer mocks base method

type MockApi_GetClientsClientMockRecorder

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

MockApi_GetClientsClientMockRecorder is the mock recorder for MockApi_GetClientsClient

func (*MockApi_GetClientsClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend

func (*MockApi_GetClientsClientMockRecorder) Context

Context indicates an expected call of Context

func (*MockApi_GetClientsClientMockRecorder) Header

Header indicates an expected call of Header

func (*MockApi_GetClientsClientMockRecorder) Recv

Recv indicates an expected call of Recv

func (*MockApi_GetClientsClientMockRecorder) RecvMsg

func (mr *MockApi_GetClientsClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg

func (*MockApi_GetClientsClientMockRecorder) SendMsg

func (mr *MockApi_GetClientsClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg

func (*MockApi_GetClientsClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer

type MockApi_GetClientsServer

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

MockApi_GetClientsServer is a mock of Api_GetClientsServer interface

func NewMockApi_GetClientsServer

func NewMockApi_GetClientsServer(ctrl *gomock.Controller) *MockApi_GetClientsServer

NewMockApi_GetClientsServer creates a new mock instance

func (*MockApi_GetClientsServer) Context

Context mocks base method

func (*MockApi_GetClientsServer) EXPECT

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

func (*MockApi_GetClientsServer) RecvMsg

func (m *MockApi_GetClientsServer) RecvMsg(arg0 interface{}) error

RecvMsg mocks base method

func (*MockApi_GetClientsServer) Send

func (m *MockApi_GetClientsServer) Send(arg0 *api.Client) error

Send mocks base method

func (*MockApi_GetClientsServer) SendHeader

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

SendHeader mocks base method

func (*MockApi_GetClientsServer) SendMsg

func (m *MockApi_GetClientsServer) SendMsg(arg0 interface{}) error

SendMsg mocks base method

func (*MockApi_GetClientsServer) SetHeader

func (m *MockApi_GetClientsServer) SetHeader(arg0 metadata.MD) error

SetHeader mocks base method

func (*MockApi_GetClientsServer) SetTrailer

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

SetTrailer mocks base method

type MockApi_GetClientsServerMockRecorder

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

MockApi_GetClientsServerMockRecorder is the mock recorder for MockApi_GetClientsServer

func (*MockApi_GetClientsServerMockRecorder) Context

Context indicates an expected call of Context

func (*MockApi_GetClientsServerMockRecorder) RecvMsg

func (mr *MockApi_GetClientsServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg

func (*MockApi_GetClientsServerMockRecorder) Send

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

Send indicates an expected call of Send

func (*MockApi_GetClientsServerMockRecorder) SendHeader

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

SendHeader indicates an expected call of SendHeader

func (*MockApi_GetClientsServerMockRecorder) SendMsg

func (mr *MockApi_GetClientsServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg

func (*MockApi_GetClientsServerMockRecorder) SetHeader

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

SetHeader indicates an expected call of SetHeader

func (*MockApi_GetClientsServerMockRecorder) SetTrailer

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

SetTrailer indicates an expected call of SetTrailer

Jump to

Keyboard shortcuts

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