automock

package
v0.0.0-...-6d13c91 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregationFailurePusher

type AggregationFailurePusher struct {
	mock.Mock
}

AggregationFailurePusher is an autogenerated mock type for the AggregationFailurePusher type

func NewAggregationFailurePusher

func NewAggregationFailurePusher(t interface {
	mock.TestingT
	Cleanup(func())
}) *AggregationFailurePusher

NewAggregationFailurePusher creates a new instance of AggregationFailurePusher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AggregationFailurePusher) ReportAggregationFailure

func (_m *AggregationFailurePusher) ReportAggregationFailure(ctx context.Context, err error)

ReportAggregationFailure provides a mock function with given fields: ctx, err

type DirectorGraphQLClient

type DirectorGraphQLClient struct {
	mock.Mock
}

DirectorGraphQLClient is an autogenerated mock type for the DirectorGraphQLClient type

func NewDirectorGraphQLClient

func NewDirectorGraphQLClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *DirectorGraphQLClient

NewDirectorGraphQLClient creates a new instance of DirectorGraphQLClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DirectorGraphQLClient) DeleteTenants

DeleteTenants provides a mock function with given fields: ctx, tenants

func (*DirectorGraphQLClient) UpdateTenant

UpdateTenant provides a mock function with given fields: ctx, id, tenant

func (*DirectorGraphQLClient) WriteTenants

WriteTenants provides a mock function with given fields: _a0, _a1

type EventAPIClient

type EventAPIClient struct {
	mock.Mock
}

EventAPIClient is an autogenerated mock type for the EventAPIClient type

func NewEventAPIClient

func NewEventAPIClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventAPIClient

NewEventAPIClient creates a new instance of EventAPIClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EventAPIClient) FetchTenantEventsPage

func (_m *EventAPIClient) FetchTenantEventsPage(ctx context.Context, eventsType resync.EventsType, additionalQueryParams resync.QueryParams) (*resync.EventsPage, error)

FetchTenantEventsPage provides a mock function with given fields: ctx, eventsType, additionalQueryParams

type KubeClient

type KubeClient struct {
	mock.Mock
}

KubeClient is an autogenerated mock type for the KubeClient type

func NewKubeClient

func NewKubeClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *KubeClient

NewKubeClient creates a new instance of KubeClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*KubeClient) GetTenantFetcherConfigMapData

func (_m *KubeClient) GetTenantFetcherConfigMapData(ctx context.Context) (string, string, error)

GetTenantFetcherConfigMapData provides a mock function with given fields: ctx

func (*KubeClient) UpdateTenantFetcherConfigMapData

func (_m *KubeClient) UpdateTenantFetcherConfigMapData(ctx context.Context, lastRunTimestamp string, lastResyncTimestamp string) error

UpdateTenantFetcherConfigMapData provides a mock function with given fields: ctx, lastRunTimestamp, lastResyncTimestamp

type LabelRepo

type LabelRepo struct {
	mock.Mock
}

LabelRepo is an autogenerated mock type for the LabelRepo type

func NewLabelRepo

func NewLabelRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *LabelRepo

NewLabelRepo creates a new instance of LabelRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LabelRepo) GetScenarioLabelsForRuntimes

func (_m *LabelRepo) GetScenarioLabelsForRuntimes(ctx context.Context, tenantID string, runtimesIDs []string) ([]model.Label, error)

GetScenarioLabelsForRuntimes provides a mock function with given fields: ctx, tenantID, runtimesIDs

type RuntimeService

type RuntimeService struct {
	mock.Mock
}

RuntimeService is an autogenerated mock type for the RuntimeService type

func NewRuntimeService

func NewRuntimeService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeService

NewRuntimeService creates a new instance of RuntimeService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RuntimeService) ListByFilters

func (_m *RuntimeService) ListByFilters(ctx context.Context, filters []*labelfilter.LabelFilter) ([]*model.Runtime, error)

ListByFilters provides a mock function with given fields: ctx, filters

type TenantConverter

type TenantConverter struct {
	mock.Mock
}

TenantConverter is an autogenerated mock type for the TenantConverter type

func NewTenantConverter

func NewTenantConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantConverter

NewTenantConverter creates a new instance of TenantConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TenantConverter) MultipleInputToGraphQLInput

func (_m *TenantConverter) MultipleInputToGraphQLInput(_a0 []model.BusinessTenantMappingInput) []graphql.BusinessTenantMappingInput

MultipleInputToGraphQLInput provides a mock function with given fields: _a0

func (*TenantConverter) ToGraphQLInput

ToGraphQLInput provides a mock function with given fields: _a0

type TenantCreator

type TenantCreator struct {
	mock.Mock
}

TenantCreator is an autogenerated mock type for the TenantCreator type

func NewTenantCreator

func NewTenantCreator(t mockConstructorTestingTNewTenantCreator) *TenantCreator

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

func (*TenantCreator) CreateTenants

func (_m *TenantCreator) CreateTenants(ctx context.Context, eventsTenants []model.BusinessTenantMappingInput) error

CreateTenants provides a mock function with given fields: ctx, eventsTenants

func (*TenantCreator) FetchTenants

func (_m *TenantCreator) FetchTenants(ctx context.Context, externalTenantID string) ([]model.BusinessTenantMappingInput, error)

FetchTenants provides a mock function with given fields: ctx, externalTenantID

func (*TenantCreator) TenantsToCreate

func (_m *TenantCreator) TenantsToCreate(ctx context.Context, region string, fromTimestamp string) ([]model.BusinessTenantMappingInput, error)

TenantsToCreate provides a mock function with given fields: ctx, region, fromTimestamp

type TenantDeleter

type TenantDeleter struct {
	mock.Mock
}

TenantDeleter is an autogenerated mock type for the TenantDeleter type

func NewTenantDeleter

func NewTenantDeleter(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantDeleter

NewTenantDeleter creates a new instance of TenantDeleter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TenantDeleter) DeleteTenants

func (_m *TenantDeleter) DeleteTenants(ctx context.Context, eventsTenants []model.BusinessTenantMappingInput) error

DeleteTenants provides a mock function with given fields: ctx, eventsTenants

func (*TenantDeleter) TenantsToDelete

func (_m *TenantDeleter) TenantsToDelete(ctx context.Context, region string, fromTimestamp string) ([]model.BusinessTenantMappingInput, error)

TenantsToDelete provides a mock function with given fields: ctx, region, fromTimestamp

type TenantMover

type TenantMover struct {
	mock.Mock
}

TenantMover is an autogenerated mock type for the TenantMover type

func NewTenantMover

func NewTenantMover(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantMover

NewTenantMover creates a new instance of TenantMover. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TenantMover) MoveTenants

func (_m *TenantMover) MoveTenants(ctx context.Context, movedSubaccountMappings []model.MovedSubaccountMappingInput) error

MoveTenants provides a mock function with given fields: ctx, movedSubaccountMappings

func (*TenantMover) TenantsToMove

func (_m *TenantMover) TenantsToMove(ctx context.Context, region string, fromTimestamp string) ([]model.MovedSubaccountMappingInput, error)

TenantsToMove provides a mock function with given fields: ctx, region, fromTimestamp

type TenantStorageService

type TenantStorageService struct {
	mock.Mock
}

TenantStorageService is an autogenerated mock type for the TenantStorageService type

func NewTenantStorageService

func NewTenantStorageService(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantStorageService

NewTenantStorageService creates a new instance of TenantStorageService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TenantStorageService) GetTenantByExternalID

func (_m *TenantStorageService) GetTenantByExternalID(ctx context.Context, id string) (*model.BusinessTenantMapping, error)

GetTenantByExternalID provides a mock function with given fields: ctx, id

func (*TenantStorageService) List

List provides a mock function with given fields: ctx

func (*TenantStorageService) ListByIDs

ListByIDs provides a mock function with given fields: ctx, ids

func (*TenantStorageService) ListByIDsAndType

func (_m *TenantStorageService) ListByIDsAndType(ctx context.Context, ids []string, tenantType tenant.Type) ([]*model.BusinessTenantMapping, error)

ListByIDsAndType provides a mock function with given fields: ctx, ids, tenantType

func (*TenantStorageService) ListsByExternalIDs

func (_m *TenantStorageService) ListsByExternalIDs(ctx context.Context, ids []string) ([]*model.BusinessTenantMapping, error)

ListsByExternalIDs provides a mock function with given fields: ctx, ids

Jump to

Keyboard shortcuts

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