mock

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.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 MockBundleService

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

MockBundleService is a mock of BundleService interface.

func NewMockBundleService

func NewMockBundleService(ctrl *gomock.Controller) *MockBundleService

NewMockBundleService creates a new mock instance.

func (*MockBundleService) CheckPermission

CheckPermission mocks base method.

func (*MockBundleService) EXPECT

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

func (*MockBundleService) GetApp

GetApp mocks base method.

func (*MockBundleService) GetCluster

func (m *MockBundleService) GetCluster(arg0 string) (*apistructs.ClusterInfo, error)

GetCluster mocks base method.

func (*MockBundleService) InspectServiceGroupWithTimeout

func (m *MockBundleService) InspectServiceGroupWithTimeout(arg0, arg1 string) (*apistructs.ServiceGroup, error)

InspectServiceGroupWithTimeout mocks base method.

type MockBundleServiceMockRecorder

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

MockBundleServiceMockRecorder is the mock recorder for MockBundleService.

func (*MockBundleServiceMockRecorder) CheckPermission

func (mr *MockBundleServiceMockRecorder) CheckPermission(arg0 interface{}) *gomock.Call

CheckPermission indicates an expected call of CheckPermission.

func (*MockBundleServiceMockRecorder) GetApp

func (mr *MockBundleServiceMockRecorder) GetApp(arg0 interface{}) *gomock.Call

GetApp indicates an expected call of GetApp.

func (*MockBundleServiceMockRecorder) GetCluster

func (mr *MockBundleServiceMockRecorder) GetCluster(arg0 interface{}) *gomock.Call

GetCluster indicates an expected call of GetCluster.

func (*MockBundleServiceMockRecorder) InspectServiceGroupWithTimeout

func (mr *MockBundleServiceMockRecorder) InspectServiceGroupWithTimeout(arg0, arg1 interface{}) *gomock.Call

InspectServiceGroupWithTimeout indicates an expected call of InspectServiceGroupWithTimeout.

type MockDBService

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

MockDBService is a mock of DBService interface.

func NewMockDBService

func NewMockDBService(ctrl *gomock.Controller) *MockDBService

NewMockDBService creates a new mock instance.

func (*MockDBService) EXPECT

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

func (*MockDBService) FindDomainsByRuntimeId

func (m *MockDBService) FindDomainsByRuntimeId(arg0 uint64) ([]dbclient.RuntimeDomain, error)

FindDomainsByRuntimeId mocks base method.

func (*MockDBService) FindLastDeployment

func (m *MockDBService) FindLastDeployment(arg0 uint64) (*dbclient.Deployment, error)

FindLastDeployment mocks base method.

func (*MockDBService) FindRuntime

func (m *MockDBService) FindRuntime(arg0 spec.RuntimeUniqueId) (*dbclient.Runtime, error)

FindRuntime mocks base method.

func (*MockDBService) GetRuntime

func (m *MockDBService) GetRuntime(arg0 uint64) (*dbclient.Runtime, error)

GetRuntime mocks base method.

func (*MockDBService) GetRuntimeAllowNil

func (m *MockDBService) GetRuntimeAllowNil(arg0 uint64) (*dbclient.Runtime, error)

GetRuntimeAllowNil mocks base method.

func (*MockDBService) GetRuntimeHPARulesByRuntimeId

func (m *MockDBService) GetRuntimeHPARulesByRuntimeId(arg0 uint64) ([]dbclient.RuntimeHPA, error)

GetRuntimeHPARulesByRuntimeId mocks base method.

func (*MockDBService) GetRuntimeVPARulesByRuntimeId

func (m *MockDBService) GetRuntimeVPARulesByRuntimeId(arg0 uint64) ([]dbclient.RuntimeVPA, error)

GetRuntimeVPARulesByRuntimeId mocks base method.

func (*MockDBService) UpdateRuntime

func (m *MockDBService) UpdateRuntime(arg0 *dbclient.Runtime) error

UpdateRuntime mocks base method.

type MockDBServiceMockRecorder

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

MockDBServiceMockRecorder is the mock recorder for MockDBService.

func (*MockDBServiceMockRecorder) FindDomainsByRuntimeId

func (mr *MockDBServiceMockRecorder) FindDomainsByRuntimeId(arg0 interface{}) *gomock.Call

FindDomainsByRuntimeId indicates an expected call of FindDomainsByRuntimeId.

func (*MockDBServiceMockRecorder) FindLastDeployment

func (mr *MockDBServiceMockRecorder) FindLastDeployment(arg0 interface{}) *gomock.Call

FindLastDeployment indicates an expected call of FindLastDeployment.

func (*MockDBServiceMockRecorder) FindRuntime

func (mr *MockDBServiceMockRecorder) FindRuntime(arg0 interface{}) *gomock.Call

FindRuntime indicates an expected call of FindRuntime.

func (*MockDBServiceMockRecorder) GetRuntime

func (mr *MockDBServiceMockRecorder) GetRuntime(arg0 interface{}) *gomock.Call

GetRuntime indicates an expected call of GetRuntime.

func (*MockDBServiceMockRecorder) GetRuntimeAllowNil

func (mr *MockDBServiceMockRecorder) GetRuntimeAllowNil(arg0 interface{}) *gomock.Call

GetRuntimeAllowNil indicates an expected call of GetRuntimeAllowNil.

func (*MockDBServiceMockRecorder) GetRuntimeHPARulesByRuntimeId

func (mr *MockDBServiceMockRecorder) GetRuntimeHPARulesByRuntimeId(arg0 interface{}) *gomock.Call

GetRuntimeHPARulesByRuntimeId indicates an expected call of GetRuntimeHPARulesByRuntimeId.

func (*MockDBServiceMockRecorder) GetRuntimeVPARulesByRuntimeId

func (mr *MockDBServiceMockRecorder) GetRuntimeVPARulesByRuntimeId(arg0 interface{}) *gomock.Call

GetRuntimeVPARulesByRuntimeId indicates an expected call of GetRuntimeVPARulesByRuntimeId.

func (*MockDBServiceMockRecorder) UpdateRuntime

func (mr *MockDBServiceMockRecorder) UpdateRuntime(arg0 interface{}) *gomock.Call

UpdateRuntime indicates an expected call of UpdateRuntime.

type MockEventManagerService

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

MockEventManagerService is a mock of EventManagerService interface.

func NewMockEventManagerService

func NewMockEventManagerService(ctrl *gomock.Controller) *MockEventManagerService

NewMockEventManagerService creates a new mock instance.

func (*MockEventManagerService) EXPECT

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

func (*MockEventManagerService) EmitEvent

func (m *MockEventManagerService) EmitEvent(arg0 *events.RuntimeEvent)

EmitEvent mocks base method.

type MockEventManagerServiceMockRecorder

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

MockEventManagerServiceMockRecorder is the mock recorder for MockEventManagerService.

func (*MockEventManagerServiceMockRecorder) EmitEvent

func (mr *MockEventManagerServiceMockRecorder) EmitEvent(arg0 interface{}) *gomock.Call

EmitEvent indicates an expected call of EmitEvent.

type MockServiceGroup

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

MockServiceGroup is a mock of ServiceGroup interface.

func NewMockServiceGroup

func NewMockServiceGroup(ctrl *gomock.Controller) *MockServiceGroup

NewMockServiceGroup creates a new mock instance.

func (*MockServiceGroup) Cancel

func (m *MockServiceGroup) Cancel(arg0, arg1 string) error

Cancel mocks base method.

func (*MockServiceGroup) ConfigUpdate

func (m *MockServiceGroup) ConfigUpdate(arg0 apistructs.ServiceGroup) error

ConfigUpdate mocks base method.

func (*MockServiceGroup) Create

Create mocks base method.

func (*MockServiceGroup) Delete

func (m *MockServiceGroup) Delete(arg0, arg1 string, arg2 bool, arg3 map[string]string) error

Delete mocks base method.

func (*MockServiceGroup) EXPECT

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

func (*MockServiceGroup) Info

func (m *MockServiceGroup) Info(arg0 context.Context, arg1, arg2 string) (apistructs.ServiceGroup, error)

Info mocks base method.

func (*MockServiceGroup) InspectRuntimeServicePods

func (m *MockServiceGroup) InspectRuntimeServicePods(arg0, arg1, arg2, arg3 string) (*apistructs.ServiceGroup, error)

InspectRuntimeServicePods mocks base method.

func (*MockServiceGroup) InspectServiceGroupWithTimeout

func (m *MockServiceGroup) InspectServiceGroupWithTimeout(arg0, arg1 string) (*apistructs.ServiceGroup, error)

InspectServiceGroupWithTimeout mocks base method.

func (*MockServiceGroup) KillPod

func (m *MockServiceGroup) KillPod(arg0 context.Context, arg1, arg2, arg3 string) error

KillPod mocks base method.

func (*MockServiceGroup) Precheck

Precheck mocks base method.

func (*MockServiceGroup) Restart

func (m *MockServiceGroup) Restart(arg0, arg1 string) error

Restart mocks base method.

func (*MockServiceGroup) Scale

func (m *MockServiceGroup) Scale(arg0 *apistructs.ServiceGroup) (interface{}, error)

Scale mocks base method.

func (*MockServiceGroup) Update

Update mocks base method.

type MockServiceGroupMockRecorder

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

MockServiceGroupMockRecorder is the mock recorder for MockServiceGroup.

func (*MockServiceGroupMockRecorder) Cancel

func (mr *MockServiceGroupMockRecorder) Cancel(arg0, arg1 interface{}) *gomock.Call

Cancel indicates an expected call of Cancel.

func (*MockServiceGroupMockRecorder) ConfigUpdate

func (mr *MockServiceGroupMockRecorder) ConfigUpdate(arg0 interface{}) *gomock.Call

ConfigUpdate indicates an expected call of ConfigUpdate.

func (*MockServiceGroupMockRecorder) Create

func (mr *MockServiceGroupMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockServiceGroupMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockServiceGroupMockRecorder) Info

func (mr *MockServiceGroupMockRecorder) Info(arg0, arg1, arg2 interface{}) *gomock.Call

Info indicates an expected call of Info.

func (*MockServiceGroupMockRecorder) InspectRuntimeServicePods

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

InspectRuntimeServicePods indicates an expected call of InspectRuntimeServicePods.

func (*MockServiceGroupMockRecorder) InspectServiceGroupWithTimeout

func (mr *MockServiceGroupMockRecorder) InspectServiceGroupWithTimeout(arg0, arg1 interface{}) *gomock.Call

InspectServiceGroupWithTimeout indicates an expected call of InspectServiceGroupWithTimeout.

func (*MockServiceGroupMockRecorder) KillPod

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

KillPod indicates an expected call of KillPod.

func (*MockServiceGroupMockRecorder) Precheck

func (mr *MockServiceGroupMockRecorder) Precheck(arg0 interface{}) *gomock.Call

Precheck indicates an expected call of Precheck.

func (*MockServiceGroupMockRecorder) Restart

func (mr *MockServiceGroupMockRecorder) Restart(arg0, arg1 interface{}) *gomock.Call

Restart indicates an expected call of Restart.

func (*MockServiceGroupMockRecorder) Scale

func (mr *MockServiceGroupMockRecorder) Scale(arg0 interface{}) *gomock.Call

Scale indicates an expected call of Scale.

func (*MockServiceGroupMockRecorder) Update

func (mr *MockServiceGroupMockRecorder) Update(arg0 interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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