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 ApplicationService

type ApplicationService struct {
	mock.Mock
}

ApplicationService is an autogenerated mock type for the ApplicationService type

func NewApplicationService

func NewApplicationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationService

NewApplicationService creates a new instance of ApplicationService. 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 (*ApplicationService) UpdateBaseURLAndReadyState

func (_m *ApplicationService) UpdateBaseURLAndReadyState(ctx context.Context, appID string, baseURL string, ready bool) error

UpdateBaseURLAndReadyState provides a mock function with given fields: ctx, appID, baseURL, ready

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) ExistsTenantByExternalID

func (_m *DirectorGraphQLClient) ExistsTenantByExternalID(ctx context.Context, tenantID string) (bool, error)

ExistsTenantByExternalID provides a mock function with given fields: ctx, tenantID

func (*DirectorGraphQLClient) SubscribeTenant

func (_m *DirectorGraphQLClient) SubscribeTenant(ctx context.Context, providerID string, subaccountID string, providerSubaccountID string, consumerTenantID string, region string, subscriptionProviderAppName string, subscriptionPayload string) error

SubscribeTenant provides a mock function with given fields: ctx, providerID, subaccountID, providerSubaccountID, consumerTenantID, region, subscriptionProviderAppName, subscriptionPayload

func (*DirectorGraphQLClient) UnsubscribeTenant

func (_m *DirectorGraphQLClient) UnsubscribeTenant(ctx context.Context, providerID string, subaccountID string, providerSubaccountID string, consumerTenantID string, region string, subscriptionPayload string) error

UnsubscribeTenant provides a mock function with given fields: ctx, providerID, subaccountID, providerSubaccountID, consumerTenantID, region, subscriptionPayload

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 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 TenantFetcher

type TenantFetcher struct {
	mock.Mock
}

TenantFetcher is an autogenerated mock type for the TenantFetcher type

func NewTenantFetcher

func NewTenantFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantFetcher

NewTenantFetcher creates a new instance of TenantFetcher. 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 (*TenantFetcher) SynchronizeTenant

func (_m *TenantFetcher) SynchronizeTenant(ctx context.Context, parentTenantID string, tenantID string) error

SynchronizeTenant provides a mock function with given fields: ctx, parentTenantID, tenantID

type TenantProvisioner

type TenantProvisioner struct {
	mock.Mock
}

TenantProvisioner is an autogenerated mock type for the TenantProvisioner type

func NewTenantProvisioner

func NewTenantProvisioner(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantProvisioner

NewTenantProvisioner creates a new instance of TenantProvisioner. 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 (*TenantProvisioner) ProvisionMissingTenants

func (_m *TenantProvisioner) ProvisionMissingTenants(ctx context.Context, request *tenantfetchersvc.TenantSubscriptionRequest) error

ProvisionMissingTenants provides a mock function with given fields: ctx, request

type TenantService

type TenantService struct {
	mock.Mock
}

TenantService is an autogenerated mock type for the TenantService type

func NewTenantService

func NewTenantService(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantService

NewTenantService creates a new instance of TenantService. 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 (*TenantService) GetLowestOwnerForResource

func (_m *TenantService) GetLowestOwnerForResource(ctx context.Context, resourceType resource.Type, objectID string) (string, error)

GetLowestOwnerForResource provides a mock function with given fields: ctx, resourceType, objectID

func (*TenantService) GetTenantByID

func (_m *TenantService) GetTenantByID(ctx context.Context, id string) (*model.BusinessTenantMapping, error)

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

type TenantSubscriber

type TenantSubscriber struct {
	mock.Mock
}

TenantSubscriber is an autogenerated mock type for the TenantSubscriber type

func NewTenantSubscriber

func NewTenantSubscriber(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantSubscriber

NewTenantSubscriber creates a new instance of TenantSubscriber. 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 (*TenantSubscriber) Subscribe

func (_m *TenantSubscriber) Subscribe(ctx context.Context, tenantSubscriptionRequest *tenantfetchersvc.TenantSubscriptionRequest) error

Subscribe provides a mock function with given fields: ctx, tenantSubscriptionRequest

func (*TenantSubscriber) Unsubscribe

func (_m *TenantSubscriber) Unsubscribe(ctx context.Context, tenantSubscriptionRequest *tenantfetchersvc.TenantSubscriptionRequest) error

Unsubscribe provides a mock function with given fields: ctx, tenantSubscriptionRequest

type WebhookService

type WebhookService struct {
	mock.Mock
}

WebhookService is an autogenerated mock type for the WebhookService type

func NewWebhookService

func NewWebhookService(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebhookService

NewWebhookService creates a new instance of WebhookService. 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 (*WebhookService) Delete

func (_m *WebhookService) Delete(ctx context.Context, id string, objectType model.WebhookReferenceObjectType) error

Delete provides a mock function with given fields: ctx, id, objectType

func (*WebhookService) ListByTypeAndLabelFilter

func (_m *WebhookService) ListByTypeAndLabelFilter(ctx context.Context, webhookType model.WebhookType, filter *labelfilter.LabelFilter) ([]*model.Webhook, error)

ListByTypeAndLabelFilter provides a mock function with given fields: ctx, webhookType, filter

Jump to

Keyboard shortcuts

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