mock

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

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 MockComponentUsecase

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

MockComponentUsecase is a mock of ComponentUsecase interface

func NewMockComponentUsecase

func NewMockComponentUsecase(ctrl *gomock.Controller) *MockComponentUsecase

NewMockComponentUsecase creates a new mock instance

func (*MockComponentUsecase) EXPECT

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

func (*MockComponentUsecase) Get

Get mocks base method

func (*MockComponentUsecase) List

func (m *MockComponentUsecase) List(isInit bool) ([]*v1.RbdComponentStatus, error)

List mocks base method

func (*MockComponentUsecase) ListComponents added in v1.3.0

func (m *MockComponentUsecase) ListComponents() []*v1alpha1.RbdComponent

ListComponents mocks base method

func (*MockComponentUsecase) ListPodsByComponent added in v1.3.0

func (m *MockComponentUsecase) ListPodsByComponent(cpn *v1alpha1.RbdComponent) ([]*v10.Pod, error)

ListPodsByComponent mocks base method

type MockComponentUsecaseMockRecorder

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

MockComponentUsecaseMockRecorder is the mock recorder for MockComponentUsecase

func (*MockComponentUsecaseMockRecorder) Get

func (mr *MockComponentUsecaseMockRecorder) Get(name interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockComponentUsecaseMockRecorder) List

func (mr *MockComponentUsecaseMockRecorder) List(isInit interface{}) *gomock.Call

List indicates an expected call of List

func (*MockComponentUsecaseMockRecorder) ListComponents added in v1.3.0

func (mr *MockComponentUsecaseMockRecorder) ListComponents() *gomock.Call

ListComponents indicates an expected call of ListComponents

func (*MockComponentUsecaseMockRecorder) ListPodsByComponent added in v1.3.0

func (mr *MockComponentUsecaseMockRecorder) ListPodsByComponent(cpn interface{}) *gomock.Call

ListPodsByComponent indicates an expected call of ListPodsByComponent

type MockGlobalConfigUseCase

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

MockGlobalConfigUseCase is a mock of GlobalConfigUseCase interface

func NewMockGlobalConfigUseCase

func NewMockGlobalConfigUseCase(ctrl *gomock.Controller) *MockGlobalConfigUseCase

NewMockGlobalConfigUseCase creates a new mock instance

func (*MockGlobalConfigUseCase) Address

func (m *MockGlobalConfigUseCase) Address() (string, error)

Address mocks base method

func (*MockGlobalConfigUseCase) EXPECT

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

func (*MockGlobalConfigUseCase) GlobalConfigs

func (m *MockGlobalConfigUseCase) GlobalConfigs() (*model.GlobalConfigs, error)

GlobalConfigs mocks base method

func (*MockGlobalConfigUseCase) UpdateGatewayIP added in v1.3.0

func (m *MockGlobalConfigUseCase) UpdateGatewayIP(gatewayIP string) error

UpdateGatewayIP mocks base method

func (*MockGlobalConfigUseCase) UpdateGlobalConfig

func (m *MockGlobalConfigUseCase) UpdateGlobalConfig(config *v1.GlobalConfigs) error

UpdateGlobalConfig mocks base method

type MockGlobalConfigUseCaseMockRecorder

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

MockGlobalConfigUseCaseMockRecorder is the mock recorder for MockGlobalConfigUseCase

func (*MockGlobalConfigUseCaseMockRecorder) Address

Address indicates an expected call of Address

func (*MockGlobalConfigUseCaseMockRecorder) GlobalConfigs

func (mr *MockGlobalConfigUseCaseMockRecorder) GlobalConfigs() *gomock.Call

GlobalConfigs indicates an expected call of GlobalConfigs

func (*MockGlobalConfigUseCaseMockRecorder) UpdateGatewayIP added in v1.3.0

func (mr *MockGlobalConfigUseCaseMockRecorder) UpdateGatewayIP(gatewayIP interface{}) *gomock.Call

UpdateGatewayIP indicates an expected call of UpdateGatewayIP

func (*MockGlobalConfigUseCaseMockRecorder) UpdateGlobalConfig

func (mr *MockGlobalConfigUseCaseMockRecorder) UpdateGlobalConfig(config interface{}) *gomock.Call

UpdateGlobalConfig indicates an expected call of UpdateGlobalConfig

type MockIClusterUcase

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

MockIClusterUcase is a mock of IClusterUcase interface

func NewMockIClusterUcase

func NewMockIClusterUcase(ctrl *gomock.Controller) *MockIClusterUcase

NewMockIClusterUcase creates a new mock instance

func (*MockIClusterUcase) Cluster

func (m *MockIClusterUcase) Cluster() cluster.Usecase

Cluster mocks base method

func (*MockIClusterUcase) Components

func (m *MockIClusterUcase) Components() cluster.ComponentUsecase

Components mocks base method

func (*MockIClusterUcase) EXPECT

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

func (*MockIClusterUcase) GlobalConfigs

func (m *MockIClusterUcase) GlobalConfigs() cluster.GlobalConfigUseCase

GlobalConfigs mocks base method

func (*MockIClusterUcase) Install

Install mocks base method

type MockIClusterUcaseMockRecorder

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

MockIClusterUcaseMockRecorder is the mock recorder for MockIClusterUcase

func (*MockIClusterUcaseMockRecorder) Cluster

func (mr *MockIClusterUcaseMockRecorder) Cluster() *gomock.Call

Cluster indicates an expected call of Cluster

func (*MockIClusterUcaseMockRecorder) Components

func (mr *MockIClusterUcaseMockRecorder) Components() *gomock.Call

Components indicates an expected call of Components

func (*MockIClusterUcaseMockRecorder) GlobalConfigs

func (mr *MockIClusterUcaseMockRecorder) GlobalConfigs() *gomock.Call

GlobalConfigs indicates an expected call of GlobalConfigs

func (*MockIClusterUcaseMockRecorder) Install

func (mr *MockIClusterUcaseMockRecorder) Install() *gomock.Call

Install indicates an expected call of Install

type MockInstallUseCase

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

MockInstallUseCase is a mock of InstallUseCase interface

func NewMockInstallUseCase

func NewMockInstallUseCase(ctrl *gomock.Controller) *MockInstallUseCase

NewMockInstallUseCase creates a new mock instance

func (*MockInstallUseCase) EXPECT

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

func (*MockInstallUseCase) Install

func (m *MockInstallUseCase) Install() error

Install mocks base method

func (*MockInstallUseCase) InstallStatus

func (m *MockInstallUseCase) InstallStatus() (model.StatusRes, error)

InstallStatus mocks base method

func (*MockInstallUseCase) RestartPackage added in v1.3.0

func (m *MockInstallUseCase) RestartPackage() error

RestartPackage mocks base method

type MockInstallUseCaseMockRecorder

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

MockInstallUseCaseMockRecorder is the mock recorder for MockInstallUseCase

func (*MockInstallUseCaseMockRecorder) Install

Install indicates an expected call of Install

func (*MockInstallUseCaseMockRecorder) InstallStatus

func (mr *MockInstallUseCaseMockRecorder) InstallStatus() *gomock.Call

InstallStatus indicates an expected call of InstallStatus

func (*MockInstallUseCaseMockRecorder) RestartPackage added in v1.3.0

func (mr *MockInstallUseCaseMockRecorder) RestartPackage() *gomock.Call

RestartPackage indicates an expected call of RestartPackage

type MockRepository

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

MockRepository is a mock of Repository interface

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance

func (*MockRepository) EXPECT

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

func (*MockRepository) EnterpriseID

func (m *MockRepository) EnterpriseID(eid string) string

EnterpriseID mocks base method

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository

func (*MockRepositoryMockRecorder) EnterpriseID

func (mr *MockRepositoryMockRecorder) EnterpriseID(eid interface{}) *gomock.Call

EnterpriseID indicates an expected call of EnterpriseID

type MockUsecase

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

MockUsecase is a mock of Usecase interface

func NewMockUsecase

func NewMockUsecase(ctrl *gomock.Controller) *MockUsecase

NewMockUsecase creates a new mock instance

func (*MockUsecase) ClusterNodes

func (m *MockUsecase) ClusterNodes(query string, runGateway bool) []*v1.K8sNode

ClusterNodes mocks base method

func (*MockUsecase) CompleteNodes

func (m *MockUsecase) CompleteNodes(nodes []*v1.K8sNode, runGateway bool) ([]*v1.K8sNode, []*v1.K8sNode)

CompleteNodes mocks base method

func (*MockUsecase) EXPECT

func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder

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

func (*MockUsecase) Init

func (m *MockUsecase) Init() error

Init mocks base method

func (*MockUsecase) PreCheck added in v1.3.0

func (m *MockUsecase) PreCheck() (*v1.ClusterPreCheckResp, error)

PreCheck mocks base method

func (*MockUsecase) Status

func (m *MockUsecase) Status() (*model.ClusterStatus, error)

Status mocks base method

func (*MockUsecase) StatusInfo

func (m *MockUsecase) StatusInfo() (*v1.ClusterStatusInfo, error)

StatusInfo mocks base method

func (*MockUsecase) UnInstall

func (m *MockUsecase) UnInstall() error

UnInstall mocks base method

type MockUsecaseMockRecorder

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

MockUsecaseMockRecorder is the mock recorder for MockUsecase

func (*MockUsecaseMockRecorder) ClusterNodes

func (mr *MockUsecaseMockRecorder) ClusterNodes(query, runGateway interface{}) *gomock.Call

ClusterNodes indicates an expected call of ClusterNodes

func (*MockUsecaseMockRecorder) CompleteNodes

func (mr *MockUsecaseMockRecorder) CompleteNodes(nodes, runGateway interface{}) *gomock.Call

CompleteNodes indicates an expected call of CompleteNodes

func (*MockUsecaseMockRecorder) Init

func (mr *MockUsecaseMockRecorder) Init() *gomock.Call

Init indicates an expected call of Init

func (*MockUsecaseMockRecorder) PreCheck added in v1.3.0

func (mr *MockUsecaseMockRecorder) PreCheck() *gomock.Call

PreCheck indicates an expected call of PreCheck

func (*MockUsecaseMockRecorder) Status

func (mr *MockUsecaseMockRecorder) Status() *gomock.Call

Status indicates an expected call of Status

func (*MockUsecaseMockRecorder) StatusInfo

func (mr *MockUsecaseMockRecorder) StatusInfo() *gomock.Call

StatusInfo indicates an expected call of StatusInfo

func (*MockUsecaseMockRecorder) UnInstall

func (mr *MockUsecaseMockRecorder) UnInstall() *gomock.Call

UnInstall indicates an expected call of UnInstall

Jump to

Keyboard shortcuts

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