mocks

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAccessControlRuleProvider added in v0.5.2

type IAccessControlRuleProvider struct {
	mock.Mock
}

IAccessControlRuleProvider is an autogenerated mock type for the IAccessControlRuleProvider type

func NewIAccessControlRuleProvider added in v0.8.4

func NewIAccessControlRuleProvider(t mockConstructorTestingTNewIAccessControlRuleProvider) *IAccessControlRuleProvider

NewIAccessControlRuleProvider creates a new instance of IAccessControlRuleProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IAccessControlRuleProvider) ReadOnlyRoleRules added in v0.5.2

func (_m *IAccessControlRuleProvider) ReadOnlyRoleRules() []v1.PolicyRule

ReadOnlyRoleRules provides a mock function with given fields:

func (*IAccessControlRuleProvider) ReadWriteRoleRules added in v0.5.2

func (_m *IAccessControlRuleProvider) ReadWriteRoleRules() []v1.PolicyRule

ReadWriteRoleRules provides a mock function with given fields:

func (*IAccessControlRuleProvider) WorkerClusterRoleRules added in v0.5.2

func (_m *IAccessControlRuleProvider) WorkerClusterRoleRules() []v1.PolicyRule

WorkerClusterRoleRules provides a mock function with given fields:

type IAccessControlService

type IAccessControlService struct {
	mock.Mock
}

IAccessControlService is an autogenerated mock type for the IAccessControlService type

func NewIAccessControlService added in v0.8.4

func NewIAccessControlService(t mockConstructorTestingTNewIAccessControlService) *IAccessControlService

NewIAccessControlService creates a new instance of IAccessControlService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewIClusterService added in v0.8.4

func NewIClusterService(t mockConstructorTestingTNewIClusterService) *IClusterService

NewIClusterService creates a new instance of IClusterService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewIJobService added in v0.8.4

func NewIJobService(t mockConstructorTestingTNewIJobService) *IJobService

NewIJobService creates a new instance of IJobService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewINamespaceService added in v0.8.4

func NewINamespaceService(t mockConstructorTestingTNewINamespaceService) *INamespaceService

NewINamespaceService creates a new instance of INamespaceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewIProjectService added in v0.8.4

func NewIProjectService(t mockConstructorTestingTNewIProjectService) *IProjectService

NewIProjectService creates a new instance of IProjectService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewISecretService added in v0.8.4

func NewISecretService(t mockConstructorTestingTNewISecretService) *ISecretService

NewISecretService creates a new instance of ISecretService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewIServiceExportConfigService added in v0.8.4

func NewIServiceExportConfigService(t mockConstructorTestingTNewIServiceExportConfigService) *IServiceExportConfigService

NewIServiceExportConfigService creates a new instance of IServiceExportConfigService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewISliceConfigService added in v0.8.4

func NewISliceConfigService(t mockConstructorTestingTNewISliceConfigService) *ISliceConfigService

NewISliceConfigService creates a new instance of ISliceConfigService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 ISliceQoSConfigService added in v0.5.2

type ISliceQoSConfigService struct {
	mock.Mock
}

ISliceQoSConfigService is an autogenerated mock type for the ISliceQoSConfigService type

func NewISliceQoSConfigService added in v0.8.4

func NewISliceQoSConfigService(t mockConstructorTestingTNewISliceQoSConfigService) *ISliceQoSConfigService

NewISliceQoSConfigService creates a new instance of ISliceQoSConfigService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ISliceQoSConfigService) DeleteSliceQoSConfig added in v0.11.0

func (_m *ISliceQoSConfigService) DeleteSliceQoSConfig(ctx context.Context, namespace string) (reconcile.Result, error)

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

func (*ISliceQoSConfigService) ReconcileSliceQoSConfig added in v0.5.2

func (_m *ISliceQoSConfigService) ReconcileSliceQoSConfig(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

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

type IVpnKeyRotationService added in v1.0.1

type IVpnKeyRotationService struct {
	mock.Mock
}

IVpnKeyRotationService is an autogenerated mock type for the IVpnKeyRotationService type

func NewIVpnKeyRotationService added in v1.0.1

func NewIVpnKeyRotationService(t mockConstructorTestingTNewIVpnKeyRotationService) *IVpnKeyRotationService

NewIVpnKeyRotationService creates a new instance of IVpnKeyRotationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IVpnKeyRotationService) CreateMinimalVpnKeyRotationConfig added in v1.0.1

func (_m *IVpnKeyRotationService) CreateMinimalVpnKeyRotationConfig(ctx context.Context, sliceName string, namespace string, r int) error

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

func (*IVpnKeyRotationService) ReconcileClusters added in v1.0.1

func (_m *IVpnKeyRotationService) ReconcileClusters(ctx context.Context, sliceName string, namespace string, clusters []string) (*v1alpha1.VpnKeyRotation, error)

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

func (*IVpnKeyRotationService) ReconcileVpnKeyRotation added in v1.0.1

func (_m *IVpnKeyRotationService) ReconcileVpnKeyRotation(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

ReconcileVpnKeyRotation 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 NewIWorkerServiceImportService added in v0.8.4

func NewIWorkerServiceImportService(t mockConstructorTestingTNewIWorkerServiceImportService) *IWorkerServiceImportService

NewIWorkerServiceImportService creates a new instance of IWorkerServiceImportService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IWorkerServiceImportService) CreateMinimalWorkerServiceImport

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

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

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 NewIWorkerSliceConfigService added in v0.8.4

func NewIWorkerSliceConfigService(t mockConstructorTestingTNewIWorkerSliceConfigService) *IWorkerSliceConfigService

NewIWorkerSliceConfigService creates a new instance of IWorkerSliceConfigService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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, clusterCidr string) (map[string]int, error)

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

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 IWorkerSliceGatewayRecyclerService added in v0.6.8

type IWorkerSliceGatewayRecyclerService struct {
	mock.Mock
}

IWorkerSliceGatewayRecyclerService is an autogenerated mock type for the IWorkerSliceGatewayRecyclerService type

func NewIWorkerSliceGatewayRecyclerService added in v0.8.4

func NewIWorkerSliceGatewayRecyclerService(t mockConstructorTestingTNewIWorkerSliceGatewayRecyclerService) *IWorkerSliceGatewayRecyclerService

NewIWorkerSliceGatewayRecyclerService creates a new instance of IWorkerSliceGatewayRecyclerService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IWorkerSliceGatewayRecyclerService) DeleteWorkerSliceGatewayRecyclersByLabel added in v0.6.8

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

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

func (*IWorkerSliceGatewayRecyclerService) ListWorkerSliceGatewayRecyclers added in v0.6.8

func (_m *IWorkerSliceGatewayRecyclerService) ListWorkerSliceGatewayRecyclers(ctx context.Context, ownerLabel map[string]string, namespace string) ([]v1alpha1.WorkerSliceGwRecycler, error)

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

type IWorkerSliceGatewayService

type IWorkerSliceGatewayService struct {
	mock.Mock
}

IWorkerSliceGatewayService is an autogenerated mock type for the IWorkerSliceGatewayService type

func NewIWorkerSliceGatewayService added in v0.8.4

func NewIWorkerSliceGatewayService(t mockConstructorTestingTNewIWorkerSliceGatewayService) *IWorkerSliceGatewayService

NewIWorkerSliceGatewayService creates a new instance of IWorkerSliceGatewayService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IWorkerSliceGatewayService) BuildNetworkAddresses added in v1.0.1

func (_m *IWorkerSliceGatewayService) BuildNetworkAddresses(sliceSubnet string, sourceClusterName string, destinationClusterName string, clusterMap map[string]int, clusterCidr string) util.WorkerSliceGatewayNetworkAddresses

BuildNetworkAddresses provides a mock function with given fields: sliceSubnet, sourceClusterName, destinationClusterName, clusterMap, clusterCidr

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, clusterCidr string) (reconcile.Result, error)

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

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) GenerateCerts added in v1.0.1

func (_m *IWorkerSliceGatewayService) GenerateCerts(ctx context.Context, sliceName string, namespace string, serverGateway *v1alpha1.WorkerSliceGateway, clientGateway *v1alpha1.WorkerSliceGateway, gatewayAddresses util.WorkerSliceGatewayNetworkAddresses) error

GenerateCerts provides a mock function with given fields: ctx, sliceName, namespace, serverGateway, clientGateway, gatewayAddresses

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