mocks

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInterface

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

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) EXPECT

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

func (*MockInterface) GetClients

GetClients mocks base method.

func (*MockInterface) GetName

func (m *MockInterface) GetName() string

GetName mocks base method.

func (*MockInterface) GetNamespace

func (m *MockInterface) GetNamespace() string

GetNamespace mocks base method.

func (*MockInterface) GetObservers

func (m *MockInterface) GetObservers(obsType observer.Type) []observer.Interface

GetObservers mocks base method.

func (*MockInterface) Parameters

func (m *MockInterface) Parameters() string

Parameters mocks base method.

func (*MockInterface) Run

func (m *MockInterface) Run(ctx context.Context, storageClass string, clients *k8sclient.Clients) (func() error, error)

Run mocks base method.

type MockInterfaceMockRecorder

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

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) GetClients

func (mr *MockInterfaceMockRecorder) GetClients(arg0, arg1 any) *gomock.Call

GetClients indicates an expected call of GetClients.

func (*MockInterfaceMockRecorder) GetName

func (mr *MockInterfaceMockRecorder) GetName() *gomock.Call

GetName indicates an expected call of GetName.

func (*MockInterfaceMockRecorder) GetNamespace

func (mr *MockInterfaceMockRecorder) GetNamespace() *gomock.Call

GetNamespace indicates an expected call of GetNamespace.

func (*MockInterfaceMockRecorder) GetObservers

func (mr *MockInterfaceMockRecorder) GetObservers(obsType any) *gomock.Call

GetObservers indicates an expected call of GetObservers.

func (*MockInterfaceMockRecorder) Parameters

func (mr *MockInterfaceMockRecorder) Parameters() *gomock.Call

Parameters indicates an expected call of Parameters.

func (*MockInterfaceMockRecorder) Run

func (mr *MockInterfaceMockRecorder) Run(ctx, storageClass, clients any) *gomock.Call

Run indicates an expected call of Run.

type MockK8sClientInterface

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

MockK8sClientInterface is a mock of K8sClientInterface interface.

func NewMockK8sClientInterface

func NewMockK8sClientInterface(ctrl *gomock.Controller) *MockK8sClientInterface

NewMockK8sClientInterface creates a new mock instance.

func (*MockK8sClientInterface) EXPECT

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

func (*MockK8sClientInterface) GetConfig

func (m *MockK8sClientInterface) GetConfig(arg0 string) (*rest.Config, error)

GetConfig mocks base method.

func (*MockK8sClientInterface) NewKubeClient

func (m *MockK8sClientInterface) NewKubeClient(config *rest.Config, timeout int) (k8sclient.KubeClientInterface, error)

NewKubeClient mocks base method.

type MockK8sClientInterfaceMockRecorder

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

MockK8sClientInterfaceMockRecorder is the mock recorder for MockK8sClientInterface.

func (*MockK8sClientInterfaceMockRecorder) GetConfig

func (mr *MockK8sClientInterfaceMockRecorder) GetConfig(arg0 any) *gomock.Call

GetConfig indicates an expected call of GetConfig.

func (*MockK8sClientInterfaceMockRecorder) NewKubeClient

func (mr *MockK8sClientInterfaceMockRecorder) NewKubeClient(config, timeout any) *gomock.Call

NewKubeClient indicates an expected call of NewKubeClient.

type MockKubeClientInterface

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

MockKubeClientInterface is a mock of KubeClientInterface interface.

func NewMockKubeClientInterface

func NewMockKubeClientInterface(ctrl *gomock.Controller) *MockKubeClientInterface

NewMockKubeClientInterface creates a new mock instance.

func (*MockKubeClientInterface) CreateCSISCClient

func (m *MockKubeClientInterface) CreateCSISCClient(namespace string) (*csistoragecapacity.Client, error)

CreateCSISCClient mocks base method.

func (*MockKubeClientInterface) CreateMetricsClient

func (m *MockKubeClientInterface) CreateMetricsClient(namespace string) (*metrics.Client, error)

CreateMetricsClient mocks base method.

func (*MockKubeClientInterface) CreateNamespace

func (m *MockKubeClientInterface) CreateNamespace(ctx context.Context, namespace string) (*v10.Namespace, error)

CreateNamespace mocks base method.

func (*MockKubeClientInterface) CreateNamespaceWithSuffix

func (m *MockKubeClientInterface) CreateNamespaceWithSuffix(ctx context.Context, namespace string) (*v10.Namespace, error)

CreateNamespaceWithSuffix mocks base method.

func (*MockKubeClientInterface) CreateNodeClient

func (m *MockKubeClientInterface) CreateNodeClient() (*node.Client, error)

CreateNodeClient mocks base method.

func (*MockKubeClientInterface) CreatePVCClient

func (m *MockKubeClientInterface) CreatePVCClient(namespace string) (*pvc.Client, error)

CreatePVCClient mocks base method.

func (*MockKubeClientInterface) CreatePVClient

func (m *MockKubeClientInterface) CreatePVClient() (*pv.Client, error)

CreatePVClient mocks base method.

func (*MockKubeClientInterface) CreatePodClient

func (m *MockKubeClientInterface) CreatePodClient(namespace string) (*pod.Client, error)

CreatePodClient mocks base method.

func (*MockKubeClientInterface) CreateRGClient

func (m *MockKubeClientInterface) CreateRGClient() (*replicationgroup.Client, error)

CreateRGClient mocks base method.

func (*MockKubeClientInterface) CreateSCClient

func (m *MockKubeClientInterface) CreateSCClient() (*sc.Client, error)

CreateSCClient mocks base method.

func (*MockKubeClientInterface) CreateSnapshotGAClient

func (m *MockKubeClientInterface) CreateSnapshotGAClient(namespace string) (*v1.SnapshotClient, error)

CreateSnapshotGAClient mocks base method.

func (*MockKubeClientInterface) CreateStatefulSetClient

func (m *MockKubeClientInterface) CreateStatefulSetClient(namespace string) (*statefulset.Client, error)

CreateStatefulSetClient mocks base method.

func (*MockKubeClientInterface) CreateVaClient

func (m *MockKubeClientInterface) CreateVaClient(namespace string) (*va.Client, error)

CreateVaClient mocks base method.

func (*MockKubeClientInterface) DeleteNamespace

func (m *MockKubeClientInterface) DeleteNamespace(ctx context.Context, namespace string) error

DeleteNamespace mocks base method.

func (*MockKubeClientInterface) EXPECT

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

func (*MockKubeClientInterface) GetClientSet

func (m *MockKubeClientInterface) GetClientSet() kubernetes.Interface

GetClientSet mocks base method.

func (*MockKubeClientInterface) GetMinor

func (m *MockKubeClientInterface) GetMinor() int

GetMinor mocks base method.

func (*MockKubeClientInterface) NamespaceExists

func (m *MockKubeClientInterface) NamespaceExists(ctx context.Context, namespace string) (bool, error)

NamespaceExists mocks base method.

func (*MockKubeClientInterface) SnapshotClassExists

func (m *MockKubeClientInterface) SnapshotClassExists(snapClass string) (bool, error)

SnapshotClassExists mocks base method.

func (*MockKubeClientInterface) StorageClassExists

func (m *MockKubeClientInterface) StorageClassExists(ctx context.Context, storageClass string) (bool, error)

StorageClassExists mocks base method.

func (*MockKubeClientInterface) Timeout

func (m *MockKubeClientInterface) Timeout() int

Timeout mocks base method.

type MockKubeClientInterfaceMockRecorder

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

MockKubeClientInterfaceMockRecorder is the mock recorder for MockKubeClientInterface.

func (*MockKubeClientInterfaceMockRecorder) CreateCSISCClient

func (mr *MockKubeClientInterfaceMockRecorder) CreateCSISCClient(namespace any) *gomock.Call

CreateCSISCClient indicates an expected call of CreateCSISCClient.

func (*MockKubeClientInterfaceMockRecorder) CreateMetricsClient

func (mr *MockKubeClientInterfaceMockRecorder) CreateMetricsClient(namespace any) *gomock.Call

CreateMetricsClient indicates an expected call of CreateMetricsClient.

func (*MockKubeClientInterfaceMockRecorder) CreateNamespace

func (mr *MockKubeClientInterfaceMockRecorder) CreateNamespace(ctx, namespace any) *gomock.Call

CreateNamespace indicates an expected call of CreateNamespace.

func (*MockKubeClientInterfaceMockRecorder) CreateNamespaceWithSuffix

func (mr *MockKubeClientInterfaceMockRecorder) CreateNamespaceWithSuffix(ctx, namespace any) *gomock.Call

CreateNamespaceWithSuffix indicates an expected call of CreateNamespaceWithSuffix.

func (*MockKubeClientInterfaceMockRecorder) CreateNodeClient

func (mr *MockKubeClientInterfaceMockRecorder) CreateNodeClient() *gomock.Call

CreateNodeClient indicates an expected call of CreateNodeClient.

func (*MockKubeClientInterfaceMockRecorder) CreatePVCClient

func (mr *MockKubeClientInterfaceMockRecorder) CreatePVCClient(namespace any) *gomock.Call

CreatePVCClient indicates an expected call of CreatePVCClient.

func (*MockKubeClientInterfaceMockRecorder) CreatePVClient

func (mr *MockKubeClientInterfaceMockRecorder) CreatePVClient() *gomock.Call

CreatePVClient indicates an expected call of CreatePVClient.

func (*MockKubeClientInterfaceMockRecorder) CreatePodClient

func (mr *MockKubeClientInterfaceMockRecorder) CreatePodClient(namespace any) *gomock.Call

CreatePodClient indicates an expected call of CreatePodClient.

func (*MockKubeClientInterfaceMockRecorder) CreateRGClient

func (mr *MockKubeClientInterfaceMockRecorder) CreateRGClient() *gomock.Call

CreateRGClient indicates an expected call of CreateRGClient.

func (*MockKubeClientInterfaceMockRecorder) CreateSCClient

func (mr *MockKubeClientInterfaceMockRecorder) CreateSCClient() *gomock.Call

CreateSCClient indicates an expected call of CreateSCClient.

func (*MockKubeClientInterfaceMockRecorder) CreateSnapshotGAClient

func (mr *MockKubeClientInterfaceMockRecorder) CreateSnapshotGAClient(namespace any) *gomock.Call

CreateSnapshotGAClient indicates an expected call of CreateSnapshotGAClient.

func (*MockKubeClientInterfaceMockRecorder) CreateStatefulSetClient

func (mr *MockKubeClientInterfaceMockRecorder) CreateStatefulSetClient(namespace any) *gomock.Call

CreateStatefulSetClient indicates an expected call of CreateStatefulSetClient.

func (*MockKubeClientInterfaceMockRecorder) CreateVaClient

func (mr *MockKubeClientInterfaceMockRecorder) CreateVaClient(namespace any) *gomock.Call

CreateVaClient indicates an expected call of CreateVaClient.

func (*MockKubeClientInterfaceMockRecorder) DeleteNamespace

func (mr *MockKubeClientInterfaceMockRecorder) DeleteNamespace(ctx, namespace any) *gomock.Call

DeleteNamespace indicates an expected call of DeleteNamespace.

func (*MockKubeClientInterfaceMockRecorder) GetClientSet

func (mr *MockKubeClientInterfaceMockRecorder) GetClientSet() *gomock.Call

GetClientSet indicates an expected call of GetClientSet.

func (*MockKubeClientInterfaceMockRecorder) GetMinor

GetMinor indicates an expected call of GetMinor.

func (*MockKubeClientInterfaceMockRecorder) NamespaceExists

func (mr *MockKubeClientInterfaceMockRecorder) NamespaceExists(ctx, namespace any) *gomock.Call

NamespaceExists indicates an expected call of NamespaceExists.

func (*MockKubeClientInterfaceMockRecorder) SnapshotClassExists

func (mr *MockKubeClientInterfaceMockRecorder) SnapshotClassExists(snapClass any) *gomock.Call

SnapshotClassExists indicates an expected call of SnapshotClassExists.

func (*MockKubeClientInterfaceMockRecorder) StorageClassExists

func (mr *MockKubeClientInterfaceMockRecorder) StorageClassExists(ctx, storageClass any) *gomock.Call

StorageClassExists indicates an expected call of StorageClassExists.

func (*MockKubeClientInterfaceMockRecorder) Timeout

Timeout indicates an expected call of Timeout.

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) Close

func (m *MockStore) Close() error

Close mocks base method.

func (*MockStore) CreateEntitiesRelation

func (m *MockStore) CreateEntitiesRelation(entity1, entity2 store.Entity) error

CreateEntitiesRelation mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) FailedTestCase

func (m *MockStore) FailedTestCase(ts *store.TestCase, endTimestamp time.Time, errMsg string) error

FailedTestCase mocks base method.

func (*MockStore) GetEntities

func (m *MockStore) GetEntities(whereConditions store.Conditions, orderBy string, limit int) ([]store.Entity, error)

GetEntities mocks base method.

func (*MockStore) GetEntitiesWithEventsByTestCaseAndEntityType

func (m *MockStore) GetEntitiesWithEventsByTestCaseAndEntityType(tc *store.TestCase, eType store.EntityTypeEnum) (map[store.Entity][]store.Event, error)

GetEntitiesWithEventsByTestCaseAndEntityType mocks base method.

func (*MockStore) GetEntityRelations

func (m *MockStore) GetEntityRelations(event store.Entity) ([]store.Entity, error)

GetEntityRelations mocks base method.

func (*MockStore) GetEvents

func (m *MockStore) GetEvents(whereConditions store.Conditions, orderBy string, limit int) ([]store.Event, error)

GetEvents mocks base method.

func (*MockStore) GetNumberEntities

func (m *MockStore) GetNumberEntities(whereConditions store.Conditions, orderBy string, limit int) ([]store.NumberEntities, error)

GetNumberEntities mocks base method.

func (*MockStore) GetResourceUsage

func (m *MockStore) GetResourceUsage(whereConditions store.Conditions, orderBy string, limit int) ([]store.ResourceUsage, error)

GetResourceUsage mocks base method.

func (*MockStore) GetTestCases

func (m *MockStore) GetTestCases(whereConditions store.Conditions, orderBy string, limit int) ([]store.TestCase, error)

GetTestCases mocks base method.

func (*MockStore) GetTestRuns

func (m *MockStore) GetTestRuns(whereConditions store.Conditions, orderBy string, limit int) ([]store.TestRun, error)

GetTestRuns mocks base method.

func (*MockStore) SaveEntities

func (m *MockStore) SaveEntities(entities []*store.Entity) error

SaveEntities mocks base method.

func (*MockStore) SaveEvents

func (m *MockStore) SaveEvents(events []*store.Event) error

SaveEvents mocks base method.

func (*MockStore) SaveNumberEntities

func (m *MockStore) SaveNumberEntities(nEntities []*store.NumberEntities) error

SaveNumberEntities mocks base method.

func (*MockStore) SaveResourceUsage

func (m *MockStore) SaveResourceUsage(resUsages []*store.ResourceUsage) error

SaveResourceUsage mocks base method.

func (*MockStore) SaveTestCase

func (m *MockStore) SaveTestCase(ts *store.TestCase) error

SaveTestCase mocks base method.

func (*MockStore) SaveTestRun

func (m *MockStore) SaveTestRun(tr *store.TestRun) error

SaveTestRun mocks base method.

func (*MockStore) SuccessfulTestCase

func (m *MockStore) SuccessfulTestCase(ts *store.TestCase, endTimestamp time.Time) error

SuccessfulTestCase mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockStoreMockRecorder) CreateEntitiesRelation

func (mr *MockStoreMockRecorder) CreateEntitiesRelation(entity1, entity2 any) *gomock.Call

CreateEntitiesRelation indicates an expected call of CreateEntitiesRelation.

func (*MockStoreMockRecorder) FailedTestCase

func (mr *MockStoreMockRecorder) FailedTestCase(ts, endTimestamp, errMsg any) *gomock.Call

FailedTestCase indicates an expected call of FailedTestCase.

func (*MockStoreMockRecorder) GetEntities

func (mr *MockStoreMockRecorder) GetEntities(whereConditions, orderBy, limit any) *gomock.Call

GetEntities indicates an expected call of GetEntities.

func (*MockStoreMockRecorder) GetEntitiesWithEventsByTestCaseAndEntityType

func (mr *MockStoreMockRecorder) GetEntitiesWithEventsByTestCaseAndEntityType(tc, eType any) *gomock.Call

GetEntitiesWithEventsByTestCaseAndEntityType indicates an expected call of GetEntitiesWithEventsByTestCaseAndEntityType.

func (*MockStoreMockRecorder) GetEntityRelations

func (mr *MockStoreMockRecorder) GetEntityRelations(event any) *gomock.Call

GetEntityRelations indicates an expected call of GetEntityRelations.

func (*MockStoreMockRecorder) GetEvents

func (mr *MockStoreMockRecorder) GetEvents(whereConditions, orderBy, limit any) *gomock.Call

GetEvents indicates an expected call of GetEvents.

func (*MockStoreMockRecorder) GetNumberEntities

func (mr *MockStoreMockRecorder) GetNumberEntities(whereConditions, orderBy, limit any) *gomock.Call

GetNumberEntities indicates an expected call of GetNumberEntities.

func (*MockStoreMockRecorder) GetResourceUsage

func (mr *MockStoreMockRecorder) GetResourceUsage(whereConditions, orderBy, limit any) *gomock.Call

GetResourceUsage indicates an expected call of GetResourceUsage.

func (*MockStoreMockRecorder) GetTestCases

func (mr *MockStoreMockRecorder) GetTestCases(whereConditions, orderBy, limit any) *gomock.Call

GetTestCases indicates an expected call of GetTestCases.

func (*MockStoreMockRecorder) GetTestRuns

func (mr *MockStoreMockRecorder) GetTestRuns(whereConditions, orderBy, limit any) *gomock.Call

GetTestRuns indicates an expected call of GetTestRuns.

func (*MockStoreMockRecorder) SaveEntities

func (mr *MockStoreMockRecorder) SaveEntities(entities any) *gomock.Call

SaveEntities indicates an expected call of SaveEntities.

func (*MockStoreMockRecorder) SaveEvents

func (mr *MockStoreMockRecorder) SaveEvents(events any) *gomock.Call

SaveEvents indicates an expected call of SaveEvents.

func (*MockStoreMockRecorder) SaveNumberEntities

func (mr *MockStoreMockRecorder) SaveNumberEntities(nEntities any) *gomock.Call

SaveNumberEntities indicates an expected call of SaveNumberEntities.

func (*MockStoreMockRecorder) SaveResourceUsage

func (mr *MockStoreMockRecorder) SaveResourceUsage(resUsages any) *gomock.Call

SaveResourceUsage indicates an expected call of SaveResourceUsage.

func (*MockStoreMockRecorder) SaveTestCase

func (mr *MockStoreMockRecorder) SaveTestCase(ts any) *gomock.Call

SaveTestCase indicates an expected call of SaveTestCase.

func (*MockStoreMockRecorder) SaveTestRun

func (mr *MockStoreMockRecorder) SaveTestRun(tr any) *gomock.Call

SaveTestRun indicates an expected call of SaveTestRun.

func (*MockStoreMockRecorder) SuccessfulTestCase

func (mr *MockStoreMockRecorder) SuccessfulTestCase(ts, endTimestamp any) *gomock.Call

SuccessfulTestCase indicates an expected call of SuccessfulTestCase.

Jump to

Keyboard shortcuts

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