automock

package
v0.0.0-...-92e9cf4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIDefinitionConverter

type APIDefinitionConverter struct {
	mock.Mock
}

APIDefinitionConverter is an autogenerated mock type for the APIDefinitionConverter type

func NewAPIDefinitionConverter

func NewAPIDefinitionConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIDefinitionConverter

NewAPIDefinitionConverter creates a new instance of APIDefinitionConverter. 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 (*APIDefinitionConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in, spec, bundleRef

type APIDefinitionService

type APIDefinitionService struct {
	mock.Mock
}

APIDefinitionService is an autogenerated mock type for the APIDefinitionService type

func NewAPIDefinitionService

func NewAPIDefinitionService(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIDefinitionService

NewAPIDefinitionService creates a new instance of APIDefinitionService. 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 (*APIDefinitionService) GetForApplication

func (_m *APIDefinitionService) GetForApplication(ctx context.Context, id string, appID string) (*model.APIDefinition, error)

GetForApplication provides a mock function with given fields: ctx, id, appID

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

func (_m *ApplicationConverter) GraphQLToModel(obj *graphql.Application, tenantID string) *model.Application

GraphQLToModel provides a mock function with given fields: obj, tenantID

func (*ApplicationConverter) MultipleToGraphQL

func (_m *ApplicationConverter) MultipleToGraphQL(in []*model.Application) []*graphql.Application

MultipleToGraphQL provides a mock function with given fields: in

func (*ApplicationConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

func (*ApplicationConverter) UpdateInputFromGraphQL

UpdateInputFromGraphQL provides a mock function with given fields: in

type ApplicationHideCfgProvider

type ApplicationHideCfgProvider struct {
	mock.Mock
}

ApplicationHideCfgProvider is an autogenerated mock type for the ApplicationHideCfgProvider type

func NewApplicationHideCfgProvider

func NewApplicationHideCfgProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationHideCfgProvider

NewApplicationHideCfgProvider creates a new instance of ApplicationHideCfgProvider. 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 (*ApplicationHideCfgProvider) GetApplicationHideSelectors

func (_m *ApplicationHideCfgProvider) GetApplicationHideSelectors() (map[string][]string, error)

GetApplicationHideSelectors provides a mock function with given fields:

type ApplicationRepository

type ApplicationRepository struct {
	mock.Mock
}

ApplicationRepository is an autogenerated mock type for the ApplicationRepository type

func NewApplicationRepository

func NewApplicationRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationRepository

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

func (_m *ApplicationRepository) Create(ctx context.Context, tenant string, item *model.Application) error

Create provides a mock function with given fields: ctx, tenant, item

func (*ApplicationRepository) Delete

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

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

func (*ApplicationRepository) DeleteGlobal

func (_m *ApplicationRepository) DeleteGlobal(ctx context.Context, id string) error

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

func (*ApplicationRepository) Exists

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

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

func (*ApplicationRepository) GetByFilter

func (_m *ApplicationRepository) GetByFilter(ctx context.Context, tenant string, filter []*labelfilter.LabelFilter) (*model.Application, error)

GetByFilter provides a mock function with given fields: ctx, tenant, filter

func (*ApplicationRepository) GetByID

func (_m *ApplicationRepository) GetByID(ctx context.Context, tenant string, id string) (*model.Application, error)

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

func (*ApplicationRepository) GetByIDForUpdate

func (_m *ApplicationRepository) GetByIDForUpdate(ctx context.Context, tenant string, id string) (*model.Application, error)

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

func (*ApplicationRepository) GetByLocalTenantIDAndAppTemplateID

func (_m *ApplicationRepository) GetByLocalTenantIDAndAppTemplateID(ctx context.Context, tenant string, localTenantID string, appTemplateID string) (*model.Application, error)

GetByLocalTenantIDAndAppTemplateID provides a mock function with given fields: ctx, tenant, localTenantID, appTemplateID

func (*ApplicationRepository) GetBySystemNumber

func (_m *ApplicationRepository) GetBySystemNumber(ctx context.Context, tenant string, systemNumber string) (*model.Application, error)

GetBySystemNumber provides a mock function with given fields: ctx, tenant, systemNumber

func (*ApplicationRepository) GetGlobalByID

func (_m *ApplicationRepository) GetGlobalByID(ctx context.Context, id string) (*model.Application, error)

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

func (*ApplicationRepository) List

func (_m *ApplicationRepository) List(ctx context.Context, tenant string, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.ApplicationPage, error)

List provides a mock function with given fields: ctx, tenant, filter, pageSize, cursor

func (*ApplicationRepository) ListAll

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

ListAll provides a mock function with given fields: ctx, tenant

func (*ApplicationRepository) ListAllByApplicationTemplateID

func (_m *ApplicationRepository) ListAllByApplicationTemplateID(ctx context.Context, applicationTemplateID string) ([]*model.Application, error)

ListAllByApplicationTemplateID provides a mock function with given fields: ctx, applicationTemplateID

func (*ApplicationRepository) ListAllByFilter

func (_m *ApplicationRepository) ListAllByFilter(ctx context.Context, tenant string, filter []*labelfilter.LabelFilter) ([]*model.Application, error)

ListAllByFilter provides a mock function with given fields: ctx, tenant, filter

func (*ApplicationRepository) ListAllByIDs

func (_m *ApplicationRepository) ListAllByIDs(ctx context.Context, tenantID string, ids []string) ([]*model.Application, error)

ListAllByIDs provides a mock function with given fields: ctx, tenantID, ids

func (*ApplicationRepository) ListAllGlobalByFilter

func (_m *ApplicationRepository) ListAllGlobalByFilter(ctx context.Context, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.ApplicationWithTenantsPage, error)

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

func (*ApplicationRepository) ListByLocalTenantID

func (_m *ApplicationRepository) ListByLocalTenantID(ctx context.Context, tenant string, localTenantID string, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.ApplicationPage, error)

ListByLocalTenantID provides a mock function with given fields: ctx, tenant, localTenantID, filter, pageSize, cursor

func (*ApplicationRepository) ListByScenarios

func (_m *ApplicationRepository) ListByScenarios(ctx context.Context, tenantID uuid.UUID, scenarios []string, pageSize int, cursor string, hidingSelectors map[string][]string) (*model.ApplicationPage, error)

ListByScenarios provides a mock function with given fields: ctx, tenantID, scenarios, pageSize, cursor, hidingSelectors

func (*ApplicationRepository) ListByScenariosAndIDs

func (_m *ApplicationRepository) ListByScenariosAndIDs(ctx context.Context, tenant string, scenarios []string, ids []string) ([]*model.Application, error)

ListByScenariosAndIDs provides a mock function with given fields: ctx, tenant, scenarios, ids

func (*ApplicationRepository) ListByScenariosNoPaging

func (_m *ApplicationRepository) ListByScenariosNoPaging(ctx context.Context, tenant string, scenarios []string) ([]*model.Application, error)

ListByScenariosNoPaging provides a mock function with given fields: ctx, tenant, scenarios

func (*ApplicationRepository) ListGlobal

func (_m *ApplicationRepository) ListGlobal(ctx context.Context, pageSize int, cursor string) (*model.ApplicationPage, error)

ListGlobal provides a mock function with given fields: ctx, pageSize, cursor

func (*ApplicationRepository) ListListeningApplications

func (_m *ApplicationRepository) ListListeningApplications(ctx context.Context, tenant string, whType model.WebhookType) ([]*model.Application, error)

ListListeningApplications provides a mock function with given fields: ctx, tenant, whType

func (*ApplicationRepository) OwnerExists

func (_m *ApplicationRepository) OwnerExists(ctx context.Context, tenant string, id string) (bool, error)

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

func (*ApplicationRepository) TechnicalUpdate

func (_m *ApplicationRepository) TechnicalUpdate(ctx context.Context, item *model.Application) error

TechnicalUpdate provides a mock function with given fields: ctx, item

func (*ApplicationRepository) TrustedUpsert

func (_m *ApplicationRepository) TrustedUpsert(ctx context.Context, tenant string, _a2 *model.Application) (string, error)

TrustedUpsert provides a mock function with given fields: ctx, tenant, _a2

func (*ApplicationRepository) Update

func (_m *ApplicationRepository) Update(ctx context.Context, tenant string, item *model.Application) error

Update provides a mock function with given fields: ctx, tenant, item

func (*ApplicationRepository) Upsert

func (_m *ApplicationRepository) Upsert(ctx context.Context, tenant string, _a2 *model.Application) (string, error)

Upsert provides a mock function with given fields: ctx, tenant, _a2

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

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

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

func (_m *ApplicationService) DeleteLabel(ctx context.Context, applicationID string, key string) error

DeleteLabel provides a mock function with given fields: ctx, applicationID, key

func (*ApplicationService) Get

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

func (*ApplicationService) GetByLocalTenantIDAndAppTemplateID

func (_m *ApplicationService) GetByLocalTenantIDAndAppTemplateID(ctx context.Context, localTenantID string, appTemplateID string) (*model.Application, error)

GetByLocalTenantIDAndAppTemplateID provides a mock function with given fields: ctx, localTenantID, appTemplateID

func (*ApplicationService) GetBySystemNumber

func (_m *ApplicationService) GetBySystemNumber(ctx context.Context, systemNumber string) (*model.Application, error)

GetBySystemNumber provides a mock function with given fields: ctx, systemNumber

func (*ApplicationService) GetLabel

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

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

func (*ApplicationService) List

func (_m *ApplicationService) List(ctx context.Context, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.ApplicationPage, error)

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

func (*ApplicationService) ListAll

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

ListAll provides a mock function with given fields: ctx

func (*ApplicationService) ListAllGlobalByFilter

func (_m *ApplicationService) ListAllGlobalByFilter(ctx context.Context, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.ApplicationWithTenantsPage, error)

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

func (*ApplicationService) ListByLocalTenantID

func (_m *ApplicationService) ListByLocalTenantID(ctx context.Context, localTenantID string, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.ApplicationPage, error)

ListByLocalTenantID provides a mock function with given fields: ctx, localTenantID, filter, pageSize, cursor

func (*ApplicationService) ListByRuntimeID

func (_m *ApplicationService) ListByRuntimeID(ctx context.Context, runtimeUUID uuid.UUID, pageSize int, cursor string) (*model.ApplicationPage, error)

ListByRuntimeID provides a mock function with given fields: ctx, runtimeUUID, pageSize, cursor

func (*ApplicationService) ListLabels

func (_m *ApplicationService) ListLabels(ctx context.Context, applicationID string) (map[string]*model.Label, error)

ListLabels provides a mock function with given fields: ctx, applicationID

func (*ApplicationService) Merge

func (_m *ApplicationService) Merge(ctx context.Context, destID string, sourceID string) (*model.Application, error)

Merge provides a mock function with given fields: ctx, destID, sourceID

func (*ApplicationService) SetLabel

func (_m *ApplicationService) SetLabel(ctx context.Context, label *model.LabelInput) error

SetLabel provides a mock function with given fields: ctx, label

func (*ApplicationService) Unpair

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

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

func (*ApplicationService) Update

Update provides a mock function with given fields: ctx, id, in

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

ToGraphQL provides a mock function with given fields: 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) Get

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

func (*ApplicationTemplateService) GetByFilters

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

type ApplicationWithTenantsConverter

type ApplicationWithTenantsConverter struct {
	mock.Mock
}

ApplicationWithTenantsConverter is an autogenerated mock type for the ApplicationWithTenantsConverter type

func NewApplicationWithTenantsConverter

func NewApplicationWithTenantsConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationWithTenantsConverter

NewApplicationWithTenantsConverter creates a new instance of ApplicationWithTenantsConverter. 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 (*ApplicationWithTenantsConverter) MultipleToGraphQL

MultipleToGraphQL provides a mock function with given fields: in

type AspectEventResourceService

type AspectEventResourceService struct {
	mock.Mock
}

AspectEventResourceService is an autogenerated mock type for the AspectEventResourceService type

func NewAspectEventResourceService

func NewAspectEventResourceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AspectEventResourceService

NewAspectEventResourceService creates a new instance of AspectEventResourceService. 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 (*AspectEventResourceService) ListByApplicationIDs

func (_m *AspectEventResourceService) ListByApplicationIDs(ctx context.Context, applicationIDs []string, pageSize int, cursor string) ([]*model.AspectEventResource, map[string]int, error)

ListByApplicationIDs provides a mock function with given fields: ctx, applicationIDs, pageSize, cursor

type AspectService

type AspectService struct {
	mock.Mock
}

AspectService is an autogenerated mock type for the AspectService type

func NewAspectService

func NewAspectService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AspectService

NewAspectService creates a new instance of AspectService. 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 (*AspectService) ListByApplicationIDs

func (_m *AspectService) ListByApplicationIDs(ctx context.Context, applicationIDs []string, pageSize int, cursor string) ([]*model.Aspect, map[string]int, error)

ListByApplicationIDs provides a mock function with given fields: ctx, applicationIDs, pageSize, cursor

type BundleConverter

type BundleConverter struct {
	mock.Mock
}

BundleConverter is an autogenerated mock type for the BundleConverter type

func NewBundleConverter

func NewBundleConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleConverter

NewBundleConverter creates a new instance of BundleConverter. 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 (*BundleConverter) MultipleCreateInputFromGraphQL

func (_m *BundleConverter) MultipleCreateInputFromGraphQL(in []*graphql.BundleCreateInput) ([]*model.BundleCreateInput, error)

MultipleCreateInputFromGraphQL provides a mock function with given fields: in

func (*BundleConverter) MultipleToGraphQL

func (_m *BundleConverter) MultipleToGraphQL(in []*model.Bundle) ([]*graphql.Bundle, error)

MultipleToGraphQL provides a mock function with given fields: in

func (*BundleConverter) ToGraphQL

func (_m *BundleConverter) ToGraphQL(in *model.Bundle) (*graphql.Bundle, error)

ToGraphQL provides a mock function with given fields: in

type BundleService

type BundleService struct {
	mock.Mock
}

BundleService is an autogenerated mock type for the BundleService type

func NewBundleService

func NewBundleService(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleService

NewBundleService creates a new instance of BundleService. 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 (*BundleService) CreateMultiple

func (_m *BundleService) CreateMultiple(ctx context.Context, resourceType resource.Type, resourceID string, in []*model.BundleCreateInput) error

CreateMultiple provides a mock function with given fields: ctx, resourceType, resourceID, in

func (*BundleService) GetForApplication

func (_m *BundleService) GetForApplication(ctx context.Context, id string, applicationID string) (*model.Bundle, error)

GetForApplication provides a mock function with given fields: ctx, id, applicationID

func (*BundleService) ListByApplicationIDs

func (_m *BundleService) ListByApplicationIDs(ctx context.Context, applicationIDs []string, pageSize int, cursor string) ([]*model.BundlePage, error)

ListByApplicationIDs provides a mock function with given fields: ctx, applicationIDs, pageSize, cursor

type EntityConverter

type EntityConverter struct {
	mock.Mock
}

EntityConverter is an autogenerated mock type for the EntityConverter type

func NewEntityConverter

func NewEntityConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntityConverter

NewEntityConverter creates a new instance of EntityConverter. 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 (*EntityConverter) FromEntity

func (_m *EntityConverter) FromEntity(entity *application.Entity) *model.Application

FromEntity provides a mock function with given fields: entity

func (*EntityConverter) ToEntity

func (_m *EntityConverter) ToEntity(in *model.Application) (*application.Entity, error)

ToEntity provides a mock function with given fields: in

type EventDefinitionConverter

type EventDefinitionConverter struct {
	mock.Mock
}

EventDefinitionConverter is an autogenerated mock type for the EventDefinitionConverter type

func NewEventDefinitionConverter

func NewEventDefinitionConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventDefinitionConverter

NewEventDefinitionConverter creates a new instance of EventDefinitionConverter. 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 (*EventDefinitionConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in, spec, bundleRef

type EventDefinitionService

type EventDefinitionService struct {
	mock.Mock
}

EventDefinitionService is an autogenerated mock type for the EventDefinitionService type

func NewEventDefinitionService

func NewEventDefinitionService(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventDefinitionService

NewEventDefinitionService creates a new instance of EventDefinitionService. 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 (*EventDefinitionService) GetForApplication

func (_m *EventDefinitionService) GetForApplication(ctx context.Context, id string, appID string) (*model.EventDefinition, error)

GetForApplication provides a mock function with given fields: ctx, id, appID

type EventingService

type EventingService struct {
	mock.Mock
}

EventingService is an autogenerated mock type for the EventingService type

func NewEventingService

func NewEventingService(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventingService

NewEventingService creates a new instance of EventingService. 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 (*EventingService) CleanupAfterUnregisteringApplication

func (_m *EventingService) CleanupAfterUnregisteringApplication(ctx context.Context, appID uuid.UUID) (*model.ApplicationEventingConfiguration, error)

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

func (*EventingService) GetForApplication

GetForApplication provides a mock function with given fields: ctx, app

type FormationService

type FormationService struct {
	mock.Mock
}

FormationService is an autogenerated mock type for the FormationService type

func NewFormationService

func NewFormationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationService

NewFormationService creates a new instance of FormationService. 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 (*FormationService) AssignFormation

func (_m *FormationService) AssignFormation(ctx context.Context, tnt string, objectID string, objectType graphql.FormationObjectType, formation model.Formation) (*model.Formation, error)

AssignFormation provides a mock function with given fields: ctx, tnt, objectID, objectType, formation

func (*FormationService) UnassignFormation

func (_m *FormationService) UnassignFormation(ctx context.Context, tnt string, objectID string, objectType graphql.FormationObjectType, formation model.Formation) (*model.Formation, error)

UnassignFormation provides a mock function with given fields: ctx, tnt, objectID, objectType, formation

type IntegrationDependencyConverter

type IntegrationDependencyConverter struct {
	mock.Mock
}

IntegrationDependencyConverter is an autogenerated mock type for the IntegrationDependencyConverter type

func NewIntegrationDependencyConverter

func NewIntegrationDependencyConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationDependencyConverter

NewIntegrationDependencyConverter creates a new instance of IntegrationDependencyConverter. 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 (*IntegrationDependencyConverter) ToGraphQL

func (_m *IntegrationDependencyConverter) ToGraphQL(in *model.IntegrationDependency, aspects []*model.Aspect, aspectEventResourcesByAspectID map[string][]*model.AspectEventResource) (*graphql.IntegrationDependency, error)

ToGraphQL provides a mock function with given fields: in, aspects, aspectEventResourcesByAspectID

type IntegrationDependencyService

type IntegrationDependencyService struct {
	mock.Mock
}

IntegrationDependencyService is an autogenerated mock type for the IntegrationDependencyService type

func NewIntegrationDependencyService

func NewIntegrationDependencyService(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationDependencyService

NewIntegrationDependencyService creates a new instance of IntegrationDependencyService. 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 (*IntegrationDependencyService) ListByApplicationIDs

func (_m *IntegrationDependencyService) ListByApplicationIDs(ctx context.Context, applicationIDs []string, pageSize int, cursor string) ([]*model.IntegrationDependencyPage, error)

ListByApplicationIDs provides a mock function with given fields: ctx, applicationIDs, pageSize, cursor

type IntegrationSystemRepository

type IntegrationSystemRepository struct {
	mock.Mock
}

IntegrationSystemRepository is an autogenerated mock type for the IntegrationSystemRepository type

func NewIntegrationSystemRepository

func NewIntegrationSystemRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationSystemRepository

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

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

type LabelRepository

type LabelRepository struct {
	mock.Mock
}

LabelRepository is an autogenerated mock type for the LabelRepository type

func NewLabelRepository

func NewLabelRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *LabelRepository

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

func (_m *LabelRepository) Delete(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, key string) error

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

func (*LabelRepository) DeleteAll

func (_m *LabelRepository) DeleteAll(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string) error

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

func (*LabelRepository) GetByKey

func (_m *LabelRepository) 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 (*LabelRepository) ListForObject

func (_m *LabelRepository) ListForObject(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string) (map[string]*model.Label, error)

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

func (*LabelRepository) ListGlobalByKey

func (_m *LabelRepository) ListGlobalByKey(ctx context.Context, key string) ([]*model.Label, error)

ListGlobalByKey provides a mock function with given fields: ctx, key

func (*LabelRepository) ListGlobalByKeyAndObjects

func (_m *LabelRepository) ListGlobalByKeyAndObjects(ctx context.Context, objectType model.LabelableObject, objectIDs []string, key string) ([]*model.Label, error)

ListGlobalByKeyAndObjects provides a mock function with given fields: ctx, objectType, objectIDs, key

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

func (*LabelService) UpsertMultipleLabels

func (_m *LabelService) UpsertMultipleLabels(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, labels map[string]interface{}) error

UpsertMultipleLabels provides a mock function with given fields: ctx, tenant, objectType, objectID, labels

type OAuth20Service

type OAuth20Service struct {
	mock.Mock
}

OAuth20Service is an autogenerated mock type for the OAuth20Service type

func NewOAuth20Service

func NewOAuth20Service(t interface {
	mock.TestingT
	Cleanup(func())
}) *OAuth20Service

NewOAuth20Service creates a new instance of OAuth20Service. 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 (*OAuth20Service) DeleteMultipleClientCredentials

func (_m *OAuth20Service) DeleteMultipleClientCredentials(ctx context.Context, auths []model.SystemAuth) error

DeleteMultipleClientCredentials provides a mock function with given fields: ctx, auths

type OneTimeTokenService

type OneTimeTokenService struct {
	mock.Mock
}

OneTimeTokenService is an autogenerated mock type for the OneTimeTokenService type

func NewOneTimeTokenService

func NewOneTimeTokenService(t interface {
	mock.TestingT
	Cleanup(func())
}) *OneTimeTokenService

NewOneTimeTokenService creates a new instance of OneTimeTokenService. 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 (*OneTimeTokenService) IsTokenValid

func (_m *OneTimeTokenService) IsTokenValid(systemAuth *model.SystemAuth) (bool, error)

IsTokenValid provides a mock function with given fields: systemAuth

type OperationConverter

type OperationConverter struct {
	mock.Mock
}

OperationConverter is an autogenerated mock type for the OperationConverter type

func NewOperationConverter

func NewOperationConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *OperationConverter

NewOperationConverter creates a new instance of OperationConverter. 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 (*OperationConverter) MultipleToGraphQL

func (_m *OperationConverter) MultipleToGraphQL(in []*model.Operation) ([]*graphql.Operation, error)

MultipleToGraphQL provides a mock function with given fields: in

type OperationService

type OperationService struct {
	mock.Mock
}

OperationService is an autogenerated mock type for the OperationService type

func NewOperationService

func NewOperationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *OperationService

NewOperationService creates a new instance of OperationService. 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 (*OperationService) GetByDataAndType

func (_m *OperationService) GetByDataAndType(ctx context.Context, data interface{}, opType model.OperationType) (*model.Operation, error)

GetByDataAndType provides a mock function with given fields: ctx, data, opType

type RuntimeRepository

type RuntimeRepository struct {
	mock.Mock
}

RuntimeRepository is an autogenerated mock type for the RuntimeRepository type

func NewRuntimeRepository

func NewRuntimeRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeRepository

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

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

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

func (*RuntimeRepository) ListAll

func (_m *RuntimeRepository) ListAll(ctx context.Context, tenantID string, filter []*labelfilter.LabelFilter) ([]*model.Runtime, error)

ListAll provides a mock function with given fields: ctx, tenantID, filter

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

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

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

func (*RuntimeService) List

func (_m *RuntimeService) List(ctx context.Context, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.RuntimePage, error)

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

type SpecService

type SpecService struct {
	mock.Mock
}

SpecService is an autogenerated mock type for the SpecService type

func NewSpecService

func NewSpecService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SpecService

NewSpecService creates a new instance of SpecService. 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 (*SpecService) GetByReferenceObjectID

func (_m *SpecService) GetByReferenceObjectID(ctx context.Context, resourceType resource.Type, objectType model.SpecReferenceObjectType, objectID string) (*model.Spec, error)

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

type SystemAuthConverter

type SystemAuthConverter struct {
	mock.Mock
}

SystemAuthConverter is an autogenerated mock type for the SystemAuthConverter type

func NewSystemAuthConverter

func NewSystemAuthConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *SystemAuthConverter

NewSystemAuthConverter creates a new instance of SystemAuthConverter. 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 (*SystemAuthConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type SystemAuthService

type SystemAuthService struct {
	mock.Mock
}

SystemAuthService is an autogenerated mock type for the SystemAuthService type

func NewSystemAuthService

func NewSystemAuthService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SystemAuthService

NewSystemAuthService creates a new instance of SystemAuthService. 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 (*SystemAuthService) DeleteMultipleByIDForObject

func (_m *SystemAuthService) DeleteMultipleByIDForObject(ctx context.Context, systemAuths []model.SystemAuth) error

DeleteMultipleByIDForObject provides a mock function with given fields: ctx, systemAuths

func (*SystemAuthService) ListForObject

func (_m *SystemAuthService) ListForObject(ctx context.Context, objectType model.SystemAuthReferenceObjectType, objectID string) ([]model.SystemAuth, error)

ListForObject provides a mock function with given fields: ctx, objectType, objectID

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

FromEntity provides a mock function with given fields: in

func (*TenantConverter) MultipleToGraphQL

func (_m *TenantConverter) MultipleToGraphQL(in []*model.BusinessTenantMapping) []*graphql.Tenant

MultipleToGraphQL provides a mock function with given fields: in

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:

type WebhookConverter

type WebhookConverter struct {
	mock.Mock
}

WebhookConverter is an autogenerated mock type for the WebhookConverter type

func NewWebhookConverter

func NewWebhookConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebhookConverter

NewWebhookConverter creates a new instance of WebhookConverter. 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 (*WebhookConverter) InputFromGraphQL

func (_m *WebhookConverter) InputFromGraphQL(in *graphql.WebhookInput) (*model.WebhookInput, error)

InputFromGraphQL provides a mock function with given fields: in

func (*WebhookConverter) MultipleInputFromGraphQL

func (_m *WebhookConverter) MultipleInputFromGraphQL(in []*graphql.WebhookInput) ([]*model.WebhookInput, error)

MultipleInputFromGraphQL provides a mock function with given fields: in

func (*WebhookConverter) MultipleToGraphQL

func (_m *WebhookConverter) MultipleToGraphQL(in []*model.Webhook) ([]*graphql.Webhook, error)

MultipleToGraphQL provides a mock function with given fields: in

func (*WebhookConverter) ToGraphQL

func (_m *WebhookConverter) ToGraphQL(in *model.Webhook) (*graphql.Webhook, error)

ToGraphQL provides a mock function with given fields: in

type WebhookRepository

type WebhookRepository struct {
	mock.Mock
}

WebhookRepository is an autogenerated mock type for the WebhookRepository type

func NewWebhookRepository

func NewWebhookRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebhookRepository

NewWebhookRepository creates a new instance of WebhookRepository. 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 (*WebhookRepository) CreateMany

func (_m *WebhookRepository) CreateMany(ctx context.Context, tenant string, items []*model.Webhook) error

CreateMany provides a mock function with given fields: ctx, tenant, items

func (*WebhookRepository) ListByReferenceObjectID

func (_m *WebhookRepository) ListByReferenceObjectID(ctx context.Context, tenant string, objID string, objType model.WebhookReferenceObjectType) ([]*model.Webhook, error)

ListByReferenceObjectID provides a mock function with given fields: ctx, tenant, objID, objType

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

func (_m *WebhookService) ListAllApplicationWebhooks(ctx context.Context, applicationTemplateID string) ([]*model.Webhook, error)

ListAllApplicationWebhooks provides a mock function with given fields: ctx, applicationTemplateID

Jump to

Keyboard shortcuts

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