mocks

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAccessControlService

type IAccessControlService struct {
	mock.Mock
}

IAccessControlService is an autogenerated mock type for the IAccessControlService type

func (*IAccessControlService) ReconcileReadOnlyRole

func (_m *IAccessControlService) ReconcileReadOnlyRole(ctx context.Context, namespace string, owner client.Object) (reconcile.Result, error)

ReconcileReadOnlyRole provides a mock function with given fields: ctx, namespace, owner

func (*IAccessControlService) ReconcileReadOnlyUserServiceAccountAndRoleBindings

func (_m *IAccessControlService) ReconcileReadOnlyUserServiceAccountAndRoleBindings(ctx context.Context, namespace string, names []string, owner client.Object) (reconcile.Result, error)

ReconcileReadOnlyUserServiceAccountAndRoleBindings provides a mock function with given fields: ctx, namespace, names, owner

func (*IAccessControlService) ReconcileReadWriteRole

func (_m *IAccessControlService) ReconcileReadWriteRole(ctx context.Context, namespace string, owner client.Object) (reconcile.Result, error)

ReconcileReadWriteRole provides a mock function with given fields: ctx, namespace, owner

func (*IAccessControlService) ReconcileReadWriteUserServiceAccountAndRoleBindings

func (_m *IAccessControlService) ReconcileReadWriteUserServiceAccountAndRoleBindings(ctx context.Context, namespace string, names []string, owner client.Object) (reconcile.Result, error)

ReconcileReadWriteUserServiceAccountAndRoleBindings provides a mock function with given fields: ctx, namespace, names, owner

func (*IAccessControlService) ReconcileWorkerClusterRole

func (_m *IAccessControlService) ReconcileWorkerClusterRole(ctx context.Context, namespace string, owner client.Object) (reconcile.Result, error)

ReconcileWorkerClusterRole provides a mock function with given fields: ctx, namespace, owner

func (*IAccessControlService) ReconcileWorkerClusterServiceAccountAndRoleBindings

func (_m *IAccessControlService) ReconcileWorkerClusterServiceAccountAndRoleBindings(ctx context.Context, clusterName string, namespace string, owner client.Object) (reconcile.Result, error)

ReconcileWorkerClusterServiceAccountAndRoleBindings provides a mock function with given fields: ctx, clusterName, namespace, owner

func (*IAccessControlService) RemoveWorkerClusterServiceAccountAndRoleBindings

func (_m *IAccessControlService) RemoveWorkerClusterServiceAccountAndRoleBindings(ctx context.Context, clusterName string, namespace string, owner client.Object) (reconcile.Result, error)

RemoveWorkerClusterServiceAccountAndRoleBindings provides a mock function with given fields: ctx, clusterName, namespace, owner

type IClusterService

type IClusterService struct {
	mock.Mock
}

IClusterService is an autogenerated mock type for the IClusterService type

func (*IClusterService) DeleteClusters

func (_m *IClusterService) DeleteClusters(ctx context.Context, namespace string) (reconcile.Result, error)

DeleteClusters provides a mock function with given fields: ctx, namespace

func (*IClusterService) ReconcileCluster

func (_m *IClusterService) ReconcileCluster(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

ReconcileCluster provides a mock function with given fields: ctx, req

type IJobService

type IJobService struct {
	mock.Mock
}

IJobService is an autogenerated mock type for the IJobService type

func (*IJobService) CreateJob

func (_m *IJobService) CreateJob(ctx context.Context, namespace string, jobImage string, environment map[string]string) (reconcile.Result, error)

CreateJob provides a mock function with given fields: ctx, namespace, jobImage, environment

type INamespaceService

type INamespaceService struct {
	mock.Mock
}

INamespaceService is an autogenerated mock type for the INamespaceService type

func (*INamespaceService) DeleteNamespace

func (_m *INamespaceService) DeleteNamespace(ctx context.Context, namespace string) (reconcile.Result, error)

DeleteNamespace provides a mock function with given fields: ctx, namespace

func (*INamespaceService) ReconcileProjectNamespace

func (_m *INamespaceService) ReconcileProjectNamespace(ctx context.Context, namespace string, owner client.Object) (reconcile.Result, error)

ReconcileProjectNamespace provides a mock function with given fields: ctx, namespace, owner

type IProjectService

type IProjectService struct {
	mock.Mock
}

IProjectService is an autogenerated mock type for the IProjectService type

func (*IProjectService) ReconcileProject

func (_m *IProjectService) ReconcileProject(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

ReconcileProject provides a mock function with given fields: ctx, req

type ISecretService

type ISecretService struct {
	mock.Mock
}

ISecretService is an autogenerated mock type for the ISecretService type

func (*ISecretService) DeleteSecret

func (_m *ISecretService) DeleteSecret(ctx context.Context, namespace string, secretName string) (reconcile.Result, error)

DeleteSecret provides a mock function with given fields: ctx, namespace, secretName

type IServiceExportConfigService

type IServiceExportConfigService struct {
	mock.Mock
}

IServiceExportConfigService is an autogenerated mock type for the IServiceExportConfigService type

func (*IServiceExportConfigService) DeleteServiceExportConfigByParticipatingSliceConfig

func (_m *IServiceExportConfigService) DeleteServiceExportConfigByParticipatingSliceConfig(ctx context.Context, sliceName string, namespace string) error

DeleteServiceExportConfigByParticipatingSliceConfig provides a mock function with given fields: ctx, sliceName, namespace

func (*IServiceExportConfigService) DeleteServiceExportConfigs

func (_m *IServiceExportConfigService) DeleteServiceExportConfigs(ctx context.Context, namespace string) (reconcile.Result, error)

DeleteServiceExportConfigs provides a mock function with given fields: ctx, namespace

func (*IServiceExportConfigService) ReconcileServiceExportConfig

func (_m *IServiceExportConfigService) ReconcileServiceExportConfig(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

ReconcileServiceExportConfig provides a mock function with given fields: ctx, req

type ISliceConfigService

type ISliceConfigService struct {
	mock.Mock
}

ISliceConfigService is an autogenerated mock type for the ISliceConfigService type

func (*ISliceConfigService) DeleteSliceConfigs

func (_m *ISliceConfigService) DeleteSliceConfigs(ctx context.Context, namespace string) (reconcile.Result, error)

DeleteSliceConfigs provides a mock function with given fields: ctx, namespace

func (*ISliceConfigService) ReconcileSliceConfig

func (_m *ISliceConfigService) ReconcileSliceConfig(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

ReconcileSliceConfig provides a mock function with given fields: ctx, req

type IWorkerServiceImportService

type IWorkerServiceImportService struct {
	mock.Mock
}

IWorkerServiceImportService is an autogenerated mock type for the IWorkerServiceImportService type

func (*IWorkerServiceImportService) CreateMinimalWorkerServiceImport

func (_m *IWorkerServiceImportService) CreateMinimalWorkerServiceImport(ctx context.Context, clusters []string, namespace string, label map[string]string, serviceName string, serviceNamespace string, sliceName string) error

CreateMinimalWorkerServiceImport provides a mock function with given fields: ctx, clusters, namespace, label, serviceName, serviceNamespace, sliceName

func (*IWorkerServiceImportService) DeleteWorkerServiceImportByLabel

func (_m *IWorkerServiceImportService) DeleteWorkerServiceImportByLabel(ctx context.Context, label map[string]string, namespace string) error

DeleteWorkerServiceImportByLabel provides a mock function with given fields: ctx, label, namespace

func (*IWorkerServiceImportService) ForceReconciliation

func (_m *IWorkerServiceImportService) ForceReconciliation(ctx context.Context, list []v1alpha1.WorkerServiceImport) error

ForceReconciliation provides a mock function with given fields: ctx, list

func (*IWorkerServiceImportService) ListWorkerServiceImport

func (_m *IWorkerServiceImportService) ListWorkerServiceImport(ctx context.Context, ownerLabel map[string]string, namespace string) ([]v1alpha1.WorkerServiceImport, error)

ListWorkerServiceImport provides a mock function with given fields: ctx, ownerLabel, namespace

func (*IWorkerServiceImportService) LookupServiceExportForService

func (_m *IWorkerServiceImportService) LookupServiceExportForService(ctx context.Context, serviceExportList *controllerv1alpha1.ServiceExportConfigList, namespace string, serviceName string, serviceNamespace string, sliceName string) error

LookupServiceExportForService provides a mock function with given fields: ctx, serviceExportList, namespace, serviceName, serviceNamespace, sliceName

func (*IWorkerServiceImportService) ReconcileWorkerServiceImport

func (_m *IWorkerServiceImportService) ReconcileWorkerServiceImport(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

ReconcileWorkerServiceImport provides a mock function with given fields: ctx, req

type IWorkerSliceConfigService

type IWorkerSliceConfigService struct {
	mock.Mock
}

IWorkerSliceConfigService is an autogenerated mock type for the IWorkerSliceConfigService type

func (*IWorkerSliceConfigService) ComputeClusterMap

func (_m *IWorkerSliceConfigService) ComputeClusterMap(clusterNames []string, workerSliceConfigs []v1alpha1.WorkerSliceConfig) map[string]int

ComputeClusterMap provides a mock function with given fields: clusterNames, workerSliceConfigs

func (*IWorkerSliceConfigService) CreateMinimalWorkerSliceConfig

func (_m *IWorkerSliceConfigService) CreateMinimalWorkerSliceConfig(ctx context.Context, clusters []string, namespace string, label map[string]string, name string, sliceSubnet string) (map[string]int, error)

CreateMinimalWorkerSliceConfig provides a mock function with given fields: ctx, clusters, namespace, label, name, sliceSubnet

func (*IWorkerSliceConfigService) DeleteWorkerSliceConfigByLabel

func (_m *IWorkerSliceConfigService) DeleteWorkerSliceConfigByLabel(ctx context.Context, label map[string]string, namespace string) error

DeleteWorkerSliceConfigByLabel provides a mock function with given fields: ctx, label, namespace

func (*IWorkerSliceConfigService) ListWorkerSliceConfigs

func (_m *IWorkerSliceConfigService) ListWorkerSliceConfigs(ctx context.Context, ownerLabel map[string]string, namespace string) ([]v1alpha1.WorkerSliceConfig, error)

ListWorkerSliceConfigs provides a mock function with given fields: ctx, ownerLabel, namespace

func (*IWorkerSliceConfigService) ReconcileWorkerSliceConfig

func (_m *IWorkerSliceConfigService) ReconcileWorkerSliceConfig(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

ReconcileWorkerSliceConfig provides a mock function with given fields: ctx, req

type IWorkerSliceGatewayService

type IWorkerSliceGatewayService struct {
	mock.Mock
}

IWorkerSliceGatewayService is an autogenerated mock type for the IWorkerSliceGatewayService type

func (*IWorkerSliceGatewayService) CreateMinimumWorkerSliceGateways

func (_m *IWorkerSliceGatewayService) CreateMinimumWorkerSliceGateways(ctx context.Context, sliceName string, clusterNames []string, namespace string, label map[string]string, clusterMap map[string]int, sliceSubnet string) (reconcile.Result, error)

CreateMinimumWorkerSliceGateways provides a mock function with given fields: ctx, sliceName, clusterNames, namespace, label, clusterMap, sliceSubnet

func (*IWorkerSliceGatewayService) DeleteWorkerSliceGatewaysByLabel

func (_m *IWorkerSliceGatewayService) DeleteWorkerSliceGatewaysByLabel(ctx context.Context, label map[string]string, namespace string) error

DeleteWorkerSliceGatewaysByLabel provides a mock function with given fields: ctx, label, namespace

func (*IWorkerSliceGatewayService) ListWorkerSliceGateways

func (_m *IWorkerSliceGatewayService) ListWorkerSliceGateways(ctx context.Context, ownerLabel map[string]string, namespace string) ([]v1alpha1.WorkerSliceGateway, error)

ListWorkerSliceGateways provides a mock function with given fields: ctx, ownerLabel, namespace

func (*IWorkerSliceGatewayService) NodeIpReconciliationOfWorkerSliceGateways

func (_m *IWorkerSliceGatewayService) NodeIpReconciliationOfWorkerSliceGateways(ctx context.Context, cluster *controllerv1alpha1.Cluster, namespace string) error

NodeIpReconciliationOfWorkerSliceGateways provides a mock function with given fields: ctx, cluster, namespace

func (*IWorkerSliceGatewayService) ReconcileWorkerSliceGateways

func (_m *IWorkerSliceGatewayService) ReconcileWorkerSliceGateways(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

ReconcileWorkerSliceGateways provides a mock function with given fields: ctx, req

Jump to

Keyboard shortcuts

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