mock

package
v0.0.0-...-73d3e97 Latest Latest
Warning

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

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

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAdminClient

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

MockAdminClient is a mock of AdminClient interface.

func NewMockAdminClient

func NewMockAdminClient(ctrl *gomock.Controller) *MockAdminClient

NewMockAdminClient creates a new mock instance.

func (*MockAdminClient) ClusterStatus

func (m *MockAdminClient) ClusterStatus() (*pb.ClusterStatus, error)

ClusterStatus mocks base method.

func (*MockAdminClient) CreateSnapshot

func (m *MockAdminClient) CreateSnapshot(arg0 *hrpc.Snapshot) error

CreateSnapshot mocks base method.

func (*MockAdminClient) CreateTable

func (m *MockAdminClient) CreateTable(arg0 *hrpc.CreateTable) error

CreateTable mocks base method.

func (*MockAdminClient) DeleteSnapshot

func (m *MockAdminClient) DeleteSnapshot(arg0 *hrpc.Snapshot) error

DeleteSnapshot mocks base method.

func (*MockAdminClient) DeleteTable

func (m *MockAdminClient) DeleteTable(arg0 *hrpc.DeleteTable) error

DeleteTable mocks base method.

func (*MockAdminClient) DisableTable

func (m *MockAdminClient) DisableTable(arg0 *hrpc.DisableTable) error

DisableTable mocks base method.

func (*MockAdminClient) EXPECT

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

func (*MockAdminClient) EnableTable

func (m *MockAdminClient) EnableTable(arg0 *hrpc.EnableTable) error

EnableTable mocks base method.

func (*MockAdminClient) ListSnapshots

func (m *MockAdminClient) ListSnapshots(arg0 *hrpc.ListSnapshots) ([]*pb.SnapshotDescription, error)

ListSnapshots mocks base method.

func (*MockAdminClient) ListTableNames

func (m *MockAdminClient) ListTableNames(arg0 *hrpc.ListTableNames) ([]*pb.TableName, error)

ListTableNames mocks base method.

func (*MockAdminClient) MoveRegion

func (m *MockAdminClient) MoveRegion(arg0 *hrpc.MoveRegion) error

MoveRegion mocks base method.

func (*MockAdminClient) RestoreSnapshot

func (m *MockAdminClient) RestoreSnapshot(arg0 *hrpc.Snapshot) error

RestoreSnapshot mocks base method.

func (*MockAdminClient) SetBalancer

func (m *MockAdminClient) SetBalancer(arg0 *hrpc.SetBalancer) (bool, error)

SetBalancer mocks base method.

type MockAdminClientMockRecorder

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

MockAdminClientMockRecorder is the mock recorder for MockAdminClient.

func (*MockAdminClientMockRecorder) ClusterStatus

func (mr *MockAdminClientMockRecorder) ClusterStatus() *gomock.Call

ClusterStatus indicates an expected call of ClusterStatus.

func (*MockAdminClientMockRecorder) CreateSnapshot

func (mr *MockAdminClientMockRecorder) CreateSnapshot(arg0 interface{}) *gomock.Call

CreateSnapshot indicates an expected call of CreateSnapshot.

func (*MockAdminClientMockRecorder) CreateTable

func (mr *MockAdminClientMockRecorder) CreateTable(arg0 interface{}) *gomock.Call

CreateTable indicates an expected call of CreateTable.

func (*MockAdminClientMockRecorder) DeleteSnapshot

func (mr *MockAdminClientMockRecorder) DeleteSnapshot(arg0 interface{}) *gomock.Call

DeleteSnapshot indicates an expected call of DeleteSnapshot.

func (*MockAdminClientMockRecorder) DeleteTable

func (mr *MockAdminClientMockRecorder) DeleteTable(arg0 interface{}) *gomock.Call

DeleteTable indicates an expected call of DeleteTable.

func (*MockAdminClientMockRecorder) DisableTable

func (mr *MockAdminClientMockRecorder) DisableTable(arg0 interface{}) *gomock.Call

DisableTable indicates an expected call of DisableTable.

func (*MockAdminClientMockRecorder) EnableTable

func (mr *MockAdminClientMockRecorder) EnableTable(arg0 interface{}) *gomock.Call

EnableTable indicates an expected call of EnableTable.

func (*MockAdminClientMockRecorder) ListSnapshots

func (mr *MockAdminClientMockRecorder) ListSnapshots(arg0 interface{}) *gomock.Call

ListSnapshots indicates an expected call of ListSnapshots.

func (*MockAdminClientMockRecorder) ListTableNames

func (mr *MockAdminClientMockRecorder) ListTableNames(arg0 interface{}) *gomock.Call

ListTableNames indicates an expected call of ListTableNames.

func (*MockAdminClientMockRecorder) MoveRegion

func (mr *MockAdminClientMockRecorder) MoveRegion(arg0 interface{}) *gomock.Call

MoveRegion indicates an expected call of MoveRegion.

func (*MockAdminClientMockRecorder) RestoreSnapshot

func (mr *MockAdminClientMockRecorder) RestoreSnapshot(arg0 interface{}) *gomock.Call

RestoreSnapshot indicates an expected call of RestoreSnapshot.

func (*MockAdminClientMockRecorder) SetBalancer

func (mr *MockAdminClientMockRecorder) SetBalancer(arg0 interface{}) *gomock.Call

SetBalancer indicates an expected call of SetBalancer.

type MockCall

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

MockCall is a mock of Call interface.

func NewMockCall

func NewMockCall(ctrl *gomock.Controller) *MockCall

NewMockCall creates a new mock instance.

func (*MockCall) Context

func (m *MockCall) Context() context.Context

Context mocks base method.

func (*MockCall) Description

func (m *MockCall) Description() string

Description mocks base method.

func (*MockCall) EXPECT

func (m *MockCall) EXPECT() *MockCallMockRecorder

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

func (*MockCall) Key

func (m *MockCall) Key() []byte

Key mocks base method.

func (*MockCall) Name

func (m *MockCall) Name() string

Name mocks base method.

func (*MockCall) NewResponse

func (m *MockCall) NewResponse() protoreflect.ProtoMessage

NewResponse mocks base method.

func (*MockCall) Region

func (m *MockCall) Region() hrpc.RegionInfo

Region mocks base method.

func (*MockCall) ResultChan

func (m *MockCall) ResultChan() chan hrpc.RPCResult

ResultChan mocks base method.

func (*MockCall) SetContext

func (m *MockCall) SetContext(arg0 context.Context)

SetContext mocks base method.

func (*MockCall) SetRegion

func (m *MockCall) SetRegion(arg0 hrpc.RegionInfo)

SetRegion mocks base method.

func (*MockCall) Table

func (m *MockCall) Table() []byte

Table mocks base method.

func (*MockCall) ToProto

func (m *MockCall) ToProto() protoreflect.ProtoMessage

ToProto mocks base method.

type MockCallMockRecorder

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

MockCallMockRecorder is the mock recorder for MockCall.

func (*MockCallMockRecorder) Context

func (mr *MockCallMockRecorder) Context() *gomock.Call

Context indicates an expected call of Context.

func (*MockCallMockRecorder) Description

func (mr *MockCallMockRecorder) Description() *gomock.Call

Description indicates an expected call of Description.

func (*MockCallMockRecorder) Key

func (mr *MockCallMockRecorder) Key() *gomock.Call

Key indicates an expected call of Key.

func (*MockCallMockRecorder) Name

func (mr *MockCallMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockCallMockRecorder) NewResponse

func (mr *MockCallMockRecorder) NewResponse() *gomock.Call

NewResponse indicates an expected call of NewResponse.

func (*MockCallMockRecorder) Region

func (mr *MockCallMockRecorder) Region() *gomock.Call

Region indicates an expected call of Region.

func (*MockCallMockRecorder) ResultChan

func (mr *MockCallMockRecorder) ResultChan() *gomock.Call

ResultChan indicates an expected call of ResultChan.

func (*MockCallMockRecorder) SetContext

func (mr *MockCallMockRecorder) SetContext(arg0 interface{}) *gomock.Call

SetContext indicates an expected call of SetContext.

func (*MockCallMockRecorder) SetRegion

func (mr *MockCallMockRecorder) SetRegion(arg0 interface{}) *gomock.Call

SetRegion indicates an expected call of SetRegion.

func (*MockCallMockRecorder) Table

func (mr *MockCallMockRecorder) Table() *gomock.Call

Table indicates an expected call of Table.

func (*MockCallMockRecorder) ToProto

func (mr *MockCallMockRecorder) ToProto() *gomock.Call

ToProto indicates an expected call of ToProto.

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) Append

func (m *MockClient) Append(arg0 *hrpc.Mutate) (*hrpc.Result, error)

Append mocks base method.

func (*MockClient) CheckAndPut

func (m *MockClient) CheckAndPut(arg0 *hrpc.Mutate, arg1, arg2 string, arg3 []byte) (bool, error)

CheckAndPut mocks base method.

func (*MockClient) Close

func (m *MockClient) Close()

Close mocks base method.

func (*MockClient) Delete

func (m *MockClient) Delete(arg0 *hrpc.Mutate) (*hrpc.Result, error)

Delete mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) Get

func (m *MockClient) Get(arg0 *hrpc.Get) (*hrpc.Result, error)

Get mocks base method.

func (*MockClient) Increment

func (m *MockClient) Increment(arg0 *hrpc.Mutate) (int64, error)

Increment mocks base method.

func (*MockClient) Put

func (m *MockClient) Put(arg0 *hrpc.Mutate) (*hrpc.Result, error)

Put mocks base method.

func (*MockClient) Scan

func (m *MockClient) Scan(arg0 *hrpc.Scan) hrpc.Scanner

Scan mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Append

func (mr *MockClientMockRecorder) Append(arg0 interface{}) *gomock.Call

Append indicates an expected call of Append.

func (*MockClientMockRecorder) CheckAndPut

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

CheckAndPut indicates an expected call of CheckAndPut.

func (*MockClientMockRecorder) Close

func (mr *MockClientMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockClientMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockClientMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockClientMockRecorder) Increment

func (mr *MockClientMockRecorder) Increment(arg0 interface{}) *gomock.Call

Increment indicates an expected call of Increment.

func (*MockClientMockRecorder) Put

func (mr *MockClientMockRecorder) Put(arg0 interface{}) *gomock.Call

Put indicates an expected call of Put.

func (*MockClientMockRecorder) Scan

func (mr *MockClientMockRecorder) Scan(arg0 interface{}) *gomock.Call

Scan indicates an expected call of Scan.

type MockConn

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

MockConn is a mock of Conn interface.

func NewMockConn

func NewMockConn(ctrl *gomock.Controller) *MockConn

NewMockConn creates a new mock instance.

func (*MockConn) Close

func (m *MockConn) Close() error

Close mocks base method.

func (*MockConn) EXPECT

func (m *MockConn) EXPECT() *MockConnMockRecorder

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

func (*MockConn) LocalAddr

func (m *MockConn) LocalAddr() net.Addr

LocalAddr mocks base method.

func (*MockConn) Read

func (m *MockConn) Read(arg0 []byte) (int, error)

Read mocks base method.

func (*MockConn) RemoteAddr

func (m *MockConn) RemoteAddr() net.Addr

RemoteAddr mocks base method.

func (*MockConn) SetDeadline

func (m *MockConn) SetDeadline(arg0 time.Time) error

SetDeadline mocks base method.

func (*MockConn) SetReadDeadline

func (m *MockConn) SetReadDeadline(arg0 time.Time) error

SetReadDeadline mocks base method.

func (*MockConn) SetWriteDeadline

func (m *MockConn) SetWriteDeadline(arg0 time.Time) error

SetWriteDeadline mocks base method.

func (*MockConn) Write

func (m *MockConn) Write(arg0 []byte) (int, error)

Write mocks base method.

type MockConnMockRecorder

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

MockConnMockRecorder is the mock recorder for MockConn.

func (*MockConnMockRecorder) Close

func (mr *MockConnMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockConnMockRecorder) LocalAddr

func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call

LocalAddr indicates an expected call of LocalAddr.

func (*MockConnMockRecorder) Read

func (mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockConnMockRecorder) RemoteAddr

func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call

RemoteAddr indicates an expected call of RemoteAddr.

func (*MockConnMockRecorder) SetDeadline

func (mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call

SetDeadline indicates an expected call of SetDeadline.

func (*MockConnMockRecorder) SetReadDeadline

func (mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockConnMockRecorder) SetWriteDeadline

func (mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call

SetWriteDeadline indicates an expected call of SetWriteDeadline.

func (*MockConnMockRecorder) Write

func (mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write.

type MockRPCClient

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

MockRPCClient is a mock of RPCClient interface.

func NewMockRPCClient

func NewMockRPCClient(ctrl *gomock.Controller) *MockRPCClient

NewMockRPCClient creates a new mock instance.

func (*MockRPCClient) EXPECT

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

func (*MockRPCClient) SendRPC

func (m *MockRPCClient) SendRPC(arg0 hrpc.Call) (protoreflect.ProtoMessage, error)

SendRPC mocks base method.

type MockRPCClientMockRecorder

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

MockRPCClientMockRecorder is the mock recorder for MockRPCClient.

func (*MockRPCClientMockRecorder) SendRPC

func (mr *MockRPCClientMockRecorder) SendRPC(arg0 interface{}) *gomock.Call

SendRPC indicates an expected call of SendRPC.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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