Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockComponentUsecase
- func (m *MockComponentUsecase) EXPECT() *MockComponentUsecaseMockRecorder
- func (m *MockComponentUsecase) Get(name string) (*v1.RbdComponentStatus, error)
- func (m *MockComponentUsecase) List(isInit bool) ([]*v1.RbdComponentStatus, error)
- func (m *MockComponentUsecase) ListComponents() []*v1alpha1.RbdComponent
- func (m *MockComponentUsecase) ListPodsByComponent(cpn *v1alpha1.RbdComponent) ([]*v10.Pod, error)
- type MockComponentUsecaseMockRecorder
- func (mr *MockComponentUsecaseMockRecorder) Get(name interface{}) *gomock.Call
- func (mr *MockComponentUsecaseMockRecorder) List(isInit interface{}) *gomock.Call
- func (mr *MockComponentUsecaseMockRecorder) ListComponents() *gomock.Call
- func (mr *MockComponentUsecaseMockRecorder) ListPodsByComponent(cpn interface{}) *gomock.Call
- type MockGlobalConfigUseCase
- func (m *MockGlobalConfigUseCase) Address() (string, error)
- func (m *MockGlobalConfigUseCase) EXPECT() *MockGlobalConfigUseCaseMockRecorder
- func (m *MockGlobalConfigUseCase) GlobalConfigs() (*model.GlobalConfigs, error)
- func (m *MockGlobalConfigUseCase) UpdateGatewayIP(gatewayIP string) error
- func (m *MockGlobalConfigUseCase) UpdateGlobalConfig(config *v1.GlobalConfigs) error
- type MockGlobalConfigUseCaseMockRecorder
- func (mr *MockGlobalConfigUseCaseMockRecorder) Address() *gomock.Call
- func (mr *MockGlobalConfigUseCaseMockRecorder) GlobalConfigs() *gomock.Call
- func (mr *MockGlobalConfigUseCaseMockRecorder) UpdateGatewayIP(gatewayIP interface{}) *gomock.Call
- func (mr *MockGlobalConfigUseCaseMockRecorder) UpdateGlobalConfig(config interface{}) *gomock.Call
- type MockIClusterUcase
- func (m *MockIClusterUcase) Cluster() cluster.Usecase
- func (m *MockIClusterUcase) Components() cluster.ComponentUsecase
- func (m *MockIClusterUcase) EXPECT() *MockIClusterUcaseMockRecorder
- func (m *MockIClusterUcase) GlobalConfigs() cluster.GlobalConfigUseCase
- func (m *MockIClusterUcase) Install() cluster.InstallUseCase
- type MockIClusterUcaseMockRecorder
- type MockInstallUseCase
- type MockInstallUseCaseMockRecorder
- type MockRepository
- type MockRepositoryMockRecorder
- type MockUsecase
- func (m *MockUsecase) ClusterNodes(query string, runGateway bool) []*v1.K8sNode
- func (m *MockUsecase) CompleteNodes(nodes []*v1.K8sNode, runGateway bool) ([]*v1.K8sNode, []*v1.K8sNode)
- func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder
- func (m *MockUsecase) Init() error
- func (m *MockUsecase) PreCheck() (*v1.ClusterPreCheckResp, error)
- func (m *MockUsecase) Status() (*model.ClusterStatus, error)
- func (m *MockUsecase) StatusInfo() (*v1.ClusterStatusInfo, error)
- func (m *MockUsecase) UnInstall() error
- type MockUsecaseMockRecorder
- func (mr *MockUsecaseMockRecorder) ClusterNodes(query, runGateway interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) CompleteNodes(nodes, runGateway interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Init() *gomock.Call
- func (mr *MockUsecaseMockRecorder) PreCheck() *gomock.Call
- func (mr *MockUsecaseMockRecorder) Status() *gomock.Call
- func (mr *MockUsecaseMockRecorder) StatusInfo() *gomock.Call
- func (mr *MockUsecaseMockRecorder) UnInstall() *gomock.Call
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 ¶
func (m *MockComponentUsecase) EXPECT() *MockComponentUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockComponentUsecase) Get ¶
func (m *MockComponentUsecase) Get(name string) (*v1.RbdComponentStatus, error)
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 ¶
func (m *MockGlobalConfigUseCase) EXPECT() *MockGlobalConfigUseCaseMockRecorder
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 ¶
func (mr *MockGlobalConfigUseCaseMockRecorder) Address() *gomock.Call
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 ¶
func (m *MockIClusterUcase) EXPECT() *MockIClusterUcaseMockRecorder
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 ¶
func (m *MockIClusterUcase) Install() cluster.InstallUseCase
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 ¶
func (m *MockInstallUseCase) EXPECT() *MockInstallUseCaseMockRecorder
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 ¶
func (mr *MockInstallUseCaseMockRecorder) Install() *gomock.Call
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 ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
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) 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
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