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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationConverter

type ApplicationConverter struct {
	mock.Mock
}

ApplicationConverter is an autogenerated mock type for the ApplicationConverter type

func NewApplicationConverter

func NewApplicationConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationConverter

NewApplicationConverter creates a new instance of ApplicationConverter. 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 (*ApplicationConverter) CreateInputFromGraphQL

CreateInputFromGraphQL provides a mock function with given fields: ctx, in

func (*ApplicationConverter) CreateRegisterInputJSONToGQL

func (_m *ApplicationConverter) CreateRegisterInputJSONToGQL(in string) (graphql.ApplicationRegisterInput, error)

CreateRegisterInputJSONToGQL provides a mock function with given fields: in

func (*ApplicationConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

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

func (_m *ApplicationService) CreateFromTemplate(ctx context.Context, in model.ApplicationRegisterInput, appTemplateID *string, systemFieldDiscoveryLabelIsTrue bool) (string, error)

CreateFromTemplate provides a mock function with given fields: ctx, in, appTemplateID, systemFieldDiscoveryLabelIsTrue

func (*ApplicationService) Delete

func (_m *ApplicationService) Delete(ctx context.Context, id string) error

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

func (*ApplicationService) ListAll

func (_m *ApplicationService) ListAll(ctx context.Context) ([]*model.Application, error)

ListAll provides a mock function with given fields: ctx

type ApplicationTemplateConverter

type ApplicationTemplateConverter struct {
	mock.Mock
}

ApplicationTemplateConverter is an autogenerated mock type for the ApplicationTemplateConverter type

func NewApplicationTemplateConverter

func NewApplicationTemplateConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationTemplateConverter

NewApplicationTemplateConverter creates a new instance of ApplicationTemplateConverter. 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 (*ApplicationTemplateConverter) ApplicationFromTemplateInputFromGraphQL

ApplicationFromTemplateInputFromGraphQL provides a mock function with given fields: appTemplate, in

type ApplicationTemplateService

type ApplicationTemplateService struct {
	mock.Mock
}

ApplicationTemplateService is an autogenerated mock type for the ApplicationTemplateService type

func NewApplicationTemplateService

func NewApplicationTemplateService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationTemplateService

NewApplicationTemplateService creates a new instance of ApplicationTemplateService. 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 (*ApplicationTemplateService) Exists

func (_m *ApplicationTemplateService) Exists(ctx context.Context, id string) (bool, error)

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

func (*ApplicationTemplateService) GetByFilters

GetByFilters provides a mock function with given fields: ctx, filter

func (*ApplicationTemplateService) GetLabel

func (_m *ApplicationTemplateService) GetLabel(ctx context.Context, appTemplateID string, key string) (*model.Label, error)

GetLabel provides a mock function with given fields: ctx, appTemplateID, key

func (*ApplicationTemplateService) PrepareApplicationCreateInputJSON

func (_m *ApplicationTemplateService) PrepareApplicationCreateInputJSON(appTemplate *model.ApplicationTemplate, values model.ApplicationFromTemplateInputValues) (string, error)

PrepareApplicationCreateInputJSON provides a mock function with given fields: appTemplate, values

type LabelService

type LabelService struct {
	mock.Mock
}

LabelService is an autogenerated mock type for the LabelService type

func NewLabelService

func NewLabelService(t interface {
	mock.TestingT
	Cleanup(func())
}) *LabelService

NewLabelService creates a new instance of LabelService. 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 (*LabelService) CreateLabel

func (_m *LabelService) CreateLabel(ctx context.Context, tenant string, id string, labelInput *model.LabelInput) error

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

func (*LabelService) GetByKey

func (_m *LabelService) GetByKey(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, key string) (*model.Label, error)

GetByKey provides a mock function with given fields: ctx, tenant, objectType, objectID, key

func (*LabelService) GetLabel

func (_m *LabelService) GetLabel(ctx context.Context, tenant string, labelInput *model.LabelInput) (*model.Label, error)

GetLabel provides a mock function with given fields: ctx, tenant, labelInput

func (*LabelService) UpdateLabel

func (_m *LabelService) UpdateLabel(ctx context.Context, tenant string, id string, labelInput *model.LabelInput) error

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

func (*LabelService) UpsertLabel

func (_m *LabelService) UpsertLabel(ctx context.Context, tenant string, labelInput *model.LabelInput) error

UpsertLabel provides a mock function with given fields: ctx, tenant, labelInput

type RuntimeCtxService

type RuntimeCtxService struct {
	mock.Mock
}

RuntimeCtxService is an autogenerated mock type for the RuntimeCtxService type

func NewRuntimeCtxService

func NewRuntimeCtxService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeCtxService

NewRuntimeCtxService creates a new instance of RuntimeCtxService. 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 (*RuntimeCtxService) Create

Create provides a mock function with given fields: ctx, in

func (*RuntimeCtxService) Delete

func (_m *RuntimeCtxService) Delete(ctx context.Context, id string) error

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

func (*RuntimeCtxService) ListByFilter

func (_m *RuntimeCtxService) ListByFilter(ctx context.Context, runtimeID string, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.RuntimeContextPage, error)

ListByFilter provides a mock function with given fields: ctx, runtimeID, filter, pageSize, cursor

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

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

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

func (*RuntimeService) GetByFiltersGlobal

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

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

type SubscriptionService

type SubscriptionService struct {
	mock.Mock
}

SubscriptionService is an autogenerated mock type for the SubscriptionService type

func NewSubscriptionService

func NewSubscriptionService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubscriptionService

NewSubscriptionService creates a new instance of SubscriptionService. 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 (*SubscriptionService) DetermineSubscriptionFlow

func (_m *SubscriptionService) DetermineSubscriptionFlow(ctx context.Context, providerID string, region string) (resource.Type, error)

DetermineSubscriptionFlow provides a mock function with given fields: ctx, providerID, region

func (*SubscriptionService) SubscribeTenantToApplication

func (_m *SubscriptionService) SubscribeTenantToApplication(ctx context.Context, providerID string, subaccountTenantID string, consumerTenantID string, providerSubaccountID string, region string, subscribedAppName string, subscriptionID string, subscriptionPayload string) (bool, string, string, error)

SubscribeTenantToApplication provides a mock function with given fields: ctx, providerID, subaccountTenantID, consumerTenantID, providerSubaccountID, region, subscribedAppName, subscriptionID, subscriptionPayload

func (*SubscriptionService) SubscribeTenantToRuntime

func (_m *SubscriptionService) SubscribeTenantToRuntime(ctx context.Context, providerID string, subaccountTenantID string, providerSubaccountID string, consumerTenantID string, region string, subscriptionAppName string, subscriptionID string) (bool, error)

SubscribeTenantToRuntime provides a mock function with given fields: ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region, subscriptionAppName, subscriptionID

func (*SubscriptionService) UnsubscribeTenantFromApplication

func (_m *SubscriptionService) UnsubscribeTenantFromApplication(ctx context.Context, providerID string, subaccountTenantID string, providerSubaccountID string, consumerTenantID string, region string, subscriptionID string) (bool, error)

UnsubscribeTenantFromApplication provides a mock function with given fields: ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region, subscriptionID

func (*SubscriptionService) UnsubscribeTenantFromRuntime

func (_m *SubscriptionService) UnsubscribeTenantFromRuntime(ctx context.Context, providerID string, subaccountTenantID string, providerSubaccountID string, consumerTenantID string, region string, subscriptionID string) (bool, error)

UnsubscribeTenantFromRuntime provides a mock function with given fields: ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region, subscriptionID

type SystemFieldDiscoveryEngine

type SystemFieldDiscoveryEngine struct {
	mock.Mock
}

SystemFieldDiscoveryEngine is an autogenerated mock type for the SystemFieldDiscoveryEngine type

func NewSystemFieldDiscoveryEngine

func NewSystemFieldDiscoveryEngine(t interface {
	mock.TestingT
	Cleanup(func())
}) *SystemFieldDiscoveryEngine

NewSystemFieldDiscoveryEngine creates a new instance of SystemFieldDiscoveryEngine. 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 (*SystemFieldDiscoveryEngine) CreateLabelForApplicationWebhook

func (_m *SystemFieldDiscoveryEngine) CreateLabelForApplicationWebhook(ctx context.Context, appID string) error

CreateLabelForApplicationWebhook provides a mock function with given fields: ctx, appID

func (*SystemFieldDiscoveryEngine) EnrichApplicationWebhookIfNeeded

func (_m *SystemFieldDiscoveryEngine) EnrichApplicationWebhookIfNeeded(ctx context.Context, appCreateInputModel model.ApplicationRegisterInput, systemFieldDiscovery bool, region string, subacountID string, appTemplateName string, appName string) ([]*model.WebhookInput, bool)

EnrichApplicationWebhookIfNeeded provides a mock function with given fields: ctx, appCreateInputModel, systemFieldDiscovery, region, subacountID, appTemplateName, appName

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

func (_m *TenantService) GetInternalTenant(ctx context.Context, externalTenant string) (string, error)

GetInternalTenant provides a mock function with given fields: ctx, externalTenant

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

type UidService

type UidService struct {
	mock.Mock
}

UidService is an autogenerated mock type for the uidService type

func NewUidService

func NewUidService(t interface {
	mock.TestingT
	Cleanup(func())
}) *UidService

NewUidService creates a new instance of UidService. 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 (*UidService) Generate

func (_m *UidService) Generate() string

Generate provides a mock function with given fields:

Jump to

Keyboard shortcuts

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