Documentation
¶
Index ¶
- type AggregationFailurePusher
- type DirectorGraphQLClient
- func (_m *DirectorGraphQLClient) DeleteTenants(ctx context.Context, tenants []graphql.BusinessTenantMappingInput) error
- func (_m *DirectorGraphQLClient) UpdateTenant(ctx context.Context, id string, tenant graphql.BusinessTenantMappingInput) error
- func (_m *DirectorGraphQLClient) WriteTenants(_a0 context.Context, _a1 []graphql.BusinessTenantMappingInput) error
- type EventAPIClient
- type KubeClient
- type LabelRepo
- type RuntimeService
- type TenantConverter
- type TenantCreator
- func (_m *TenantCreator) CreateTenants(ctx context.Context, eventsTenants []model.BusinessTenantMappingInput) error
- func (_m *TenantCreator) FetchTenants(ctx context.Context, externalTenantID string) ([]model.BusinessTenantMappingInput, error)
- func (_m *TenantCreator) TenantsToCreate(ctx context.Context, region string, fromTimestamp string) ([]model.BusinessTenantMappingInput, error)
- type TenantDeleter
- type TenantMover
- type TenantStorageService
- func (_m *TenantStorageService) GetTenantByExternalID(ctx context.Context, id string) (*model.BusinessTenantMapping, error)
- func (_m *TenantStorageService) List(ctx context.Context) ([]*model.BusinessTenantMapping, error)
- func (_m *TenantStorageService) ListByIDs(ctx context.Context, ids []string) ([]*model.BusinessTenantMapping, error)
- func (_m *TenantStorageService) ListByIDsAndType(ctx context.Context, ids []string, tenantType tenant.Type) ([]*model.BusinessTenantMapping, error)
- func (_m *TenantStorageService) ListsByExternalIDs(ctx context.Context, ids []string) ([]*model.BusinessTenantMapping, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregationFailurePusher ¶
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 ¶
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 ¶
func (_m *DirectorGraphQLClient) DeleteTenants(ctx context.Context, tenants []graphql.BusinessTenantMappingInput) error
DeleteTenants provides a mock function with given fields: ctx, tenants
func (*DirectorGraphQLClient) UpdateTenant ¶
func (_m *DirectorGraphQLClient) UpdateTenant(ctx context.Context, id string, tenant graphql.BusinessTenantMappingInput) error
UpdateTenant provides a mock function with given fields: ctx, id, tenant
func (*DirectorGraphQLClient) WriteTenants ¶
func (_m *DirectorGraphQLClient) WriteTenants(_a0 context.Context, _a1 []graphql.BusinessTenantMappingInput) error
WriteTenants provides a mock function with given fields: _a0, _a1
type EventAPIClient ¶
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 ¶
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 ¶
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 ¶
LabelRepo is an autogenerated mock type for the LabelRepo type
func NewLabelRepo ¶
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.
type RuntimeService ¶
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 ¶
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 ¶
func (_m *TenantConverter) ToGraphQLInput(_a0 model.BusinessTenantMappingInput) graphql.BusinessTenantMappingInput
ToGraphQLInput provides a mock function with given fields: _a0
type TenantCreator ¶
TenantCreator is an autogenerated mock type for the TenantCreator type
func NewTenantCreator ¶
func NewTenantCreator(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 ¶
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 ¶
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 ¶
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 ¶
func (_m *TenantStorageService) List(ctx context.Context) ([]*model.BusinessTenantMapping, error)
List provides a mock function with given fields: ctx
func (*TenantStorageService) ListByIDs ¶
func (_m *TenantStorageService) ListByIDs(ctx context.Context, ids []string) ([]*model.BusinessTenantMapping, error)
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