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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIProcessor

type APIProcessor struct {
	mock.Mock
}

APIProcessor is an autogenerated mock type for the APIProcessor type

func NewAPIProcessor

func NewAPIProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIProcessor

NewAPIProcessor creates a new instance of APIProcessor. 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 (*APIProcessor) Process

func (_m *APIProcessor) Process(ctx context.Context, resourceType resource.Type, resourceID string, bundlesFromDB []*model.Bundle, packagesFromDB []*model.Package, apis []*model.APIDefinitionInput, resourceHashes map[string]uint64) ([]*model.APIDefinition, []*processor.OrdFetchRequest, error)

Process provides a mock function with given fields: ctx, resourceType, resourceID, bundlesFromDB, packagesFromDB, apis, resourceHashes

type APIService

type APIService struct {
	mock.Mock
}

APIService is an autogenerated mock type for the APIService type

func NewAPIService

func NewAPIService(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIService

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

func (_m *APIService) Create(ctx context.Context, resourceType resource.Type, resourceID string, bundleID *string, packageID *string, in model.APIDefinitionInput, spec []*model.SpecInput, targetURLsPerBundle map[string]string, apiHash uint64, defaultBundleID string) (string, error)

Create provides a mock function with given fields: ctx, resourceType, resourceID, bundleID, packageID, in, spec, targetURLsPerBundle, apiHash, defaultBundleID

func (*APIService) Delete

func (_m *APIService) Delete(ctx context.Context, resourceType resource.Type, id string) error

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

func (*APIService) ListByApplicationID

func (_m *APIService) ListByApplicationID(ctx context.Context, appID string) ([]*model.APIDefinition, error)

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

func (*APIService) ListByApplicationTemplateVersionID

func (_m *APIService) ListByApplicationTemplateVersionID(ctx context.Context, appTemplateVersionID string) ([]*model.APIDefinition, error)

ListByApplicationTemplateVersionID provides a mock function with given fields: ctx, appTemplateVersionID

func (*APIService) UpdateInManyBundles

func (_m *APIService) UpdateInManyBundles(ctx context.Context, resourceType resource.Type, id string, packageID *string, in model.APIDefinitionInput, specIn *model.SpecInput, defaultTargetURLPerBundle map[string]string, defaultTargetURLPerBundleToBeCreated map[string]string, bundleIDsToBeDeleted []string, apiHash uint64, defaultBundleID string) error

UpdateInManyBundles provides a mock function with given fields: ctx, resourceType, id, packageID, in, specIn, defaultTargetURLPerBundle, defaultTargetURLPerBundleToBeCreated, bundleIDsToBeDeleted, apiHash, defaultBundleID

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

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

func (*ApplicationService) GetGlobalByID

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

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

func (*ApplicationService) ListAllByApplicationTemplateID

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

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

func (*ApplicationService) Update

Update provides a mock function with given fields: ctx, id, 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

type ApplicationTemplateVersionService

type ApplicationTemplateVersionService struct {
	mock.Mock
}

ApplicationTemplateVersionService is an autogenerated mock type for the ApplicationTemplateVersionService type

func NewApplicationTemplateVersionService

func NewApplicationTemplateVersionService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationTemplateVersionService

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

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

func (*ApplicationTemplateVersionService) GetByAppTemplateIDAndVersion

func (_m *ApplicationTemplateVersionService) GetByAppTemplateIDAndVersion(ctx context.Context, id string, version string) (*model.ApplicationTemplateVersion, error)

GetByAppTemplateIDAndVersion provides a mock function with given fields: ctx, id, version

func (*ApplicationTemplateVersionService) ListByAppTemplateID

func (_m *ApplicationTemplateVersionService) ListByAppTemplateID(ctx context.Context, appTemplateID string) ([]*model.ApplicationTemplateVersion, error)

ListByAppTemplateID provides a mock function with given fields: ctx, appTemplateID

func (*ApplicationTemplateVersionService) Update

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

type BundleReferenceService

type BundleReferenceService struct {
	mock.Mock
}

BundleReferenceService is an autogenerated mock type for the BundleReferenceService type

func NewBundleReferenceService

func NewBundleReferenceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleReferenceService

NewBundleReferenceService creates a new instance of BundleReferenceService. 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 (*BundleReferenceService) GetBundleIDsForObject

func (_m *BundleReferenceService) GetBundleIDsForObject(ctx context.Context, objectType model.BundleReferenceObjectType, objectID *string) ([]string, error)

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

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

func (_m *BundleService) CreateBundle(ctx context.Context, resourceType resource.Type, resourceID string, in model.BundleCreateInput, bndlHash uint64) (string, error)

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

func (*BundleService) Delete

func (_m *BundleService) Delete(ctx context.Context, resourceType resource.Type, id string) error

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

func (*BundleService) ListByApplicationIDNoPaging

func (_m *BundleService) ListByApplicationIDNoPaging(ctx context.Context, appID string) ([]*model.Bundle, error)

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

func (*BundleService) ListByApplicationTemplateVersionIDNoPaging

func (_m *BundleService) ListByApplicationTemplateVersionIDNoPaging(ctx context.Context, appTemplateVersionID string) ([]*model.Bundle, error)

ListByApplicationTemplateVersionIDNoPaging provides a mock function with given fields: ctx, appTemplateVersionID

func (*BundleService) UpdateBundle

func (_m *BundleService) UpdateBundle(ctx context.Context, resourceType resource.Type, id string, in model.BundleUpdateInput, bndlHash uint64) error

UpdateBundle provides a mock function with given fields: ctx, resourceType, id, in, bndlHash

type CapabilityProcessor

type CapabilityProcessor struct {
	mock.Mock
}

CapabilityProcessor is an autogenerated mock type for the CapabilityProcessor type

func NewCapabilityProcessor

func NewCapabilityProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *CapabilityProcessor

NewCapabilityProcessor creates a new instance of CapabilityProcessor. 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 (*CapabilityProcessor) Process

func (_m *CapabilityProcessor) Process(ctx context.Context, resourceType resource.Type, resourceID string, packagesFromDB []*model.Package, capabilities []*model.CapabilityInput, resourceHashes map[string]uint64) ([]*model.Capability, []*processor.OrdFetchRequest, error)

Process provides a mock function with given fields: ctx, resourceType, resourceID, packagesFromDB, capabilities, resourceHashes

type CapabilityService

type CapabilityService struct {
	mock.Mock
}

CapabilityService is an autogenerated mock type for the CapabilityService type

func NewCapabilityService

func NewCapabilityService(t interface {
	mock.TestingT
	Cleanup(func())
}) *CapabilityService

NewCapabilityService creates a new instance of CapabilityService. 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 (*CapabilityService) ListByApplicationID

func (_m *CapabilityService) ListByApplicationID(ctx context.Context, appID string) ([]*model.Capability, error)

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

func (*CapabilityService) ListByApplicationTemplateVersionID

func (_m *CapabilityService) ListByApplicationTemplateVersionID(ctx context.Context, appTemplateVersionID string) ([]*model.Capability, error)

ListByApplicationTemplateVersionID provides a mock function with given fields: ctx, appTemplateVersionID

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 (*Client) FetchOpenResourceDiscoveryDocuments

func (_m *Client) FetchOpenResourceDiscoveryDocuments(ctx context.Context, resource ord.Resource, _a2 *model.Webhook, ordWebhookMapping application.ORDWebhookMapping, appBaseURL webhook.OpenResourceDiscoveryWebhookRequestObject) (ord.Documents, []string, string, error)

FetchOpenResourceDiscoveryDocuments provides a mock function with given fields: ctx, resource, _a2, ordWebhookMapping, appBaseURL

type DataProductProcessor

type DataProductProcessor struct {
	mock.Mock
}

DataProductProcessor is an autogenerated mock type for the DataProductProcessor type

func NewDataProductProcessor

func NewDataProductProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *DataProductProcessor

NewDataProductProcessor creates a new instance of DataProductProcessor. 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 (*DataProductProcessor) Process

func (_m *DataProductProcessor) Process(ctx context.Context, resourceType resource.Type, resourceID string, packagesFromDB []*model.Package, dataProducts []*model.DataProductInput, resourceHashes map[string]uint64) ([]*model.DataProduct, error)

Process provides a mock function with given fields: ctx, resourceType, resourceID, packagesFromDB, dataProducts, resourceHashes

type DataProductService

type DataProductService struct {
	mock.Mock
}

DataProductService is an autogenerated mock type for the DataProductService type

func NewDataProductService

func NewDataProductService(t interface {
	mock.TestingT
	Cleanup(func())
}) *DataProductService

NewDataProductService creates a new instance of DataProductService. 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 (*DataProductService) ListByApplicationID

func (_m *DataProductService) ListByApplicationID(ctx context.Context, appID string) ([]*model.DataProduct, error)

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

func (*DataProductService) ListByApplicationTemplateVersionID

func (_m *DataProductService) ListByApplicationTemplateVersionID(ctx context.Context, appTemplateVersionID string) ([]*model.DataProduct, error)

ListByApplicationTemplateVersionID provides a mock function with given fields: ctx, appTemplateVersionID

type EntityTypeProcessor

type EntityTypeProcessor struct {
	mock.Mock
}

EntityTypeProcessor is an autogenerated mock type for the EntityTypeProcessor type

func NewEntityTypeProcessor

func NewEntityTypeProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntityTypeProcessor

NewEntityTypeProcessor creates a new instance of EntityTypeProcessor. 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 (*EntityTypeProcessor) Process

func (_m *EntityTypeProcessor) Process(ctx context.Context, resourceType resource.Type, resourceID string, entityTypes []*model.EntityTypeInput, packagesFromDB []*model.Package, resourceHashes map[string]uint64) ([]*model.EntityType, error)

Process provides a mock function with given fields: ctx, resourceType, resourceID, entityTypes, packagesFromDB, resourceHashes

type EntityTypeService

type EntityTypeService struct {
	mock.Mock
}

EntityTypeService is an autogenerated mock type for the EntityTypeService type

func NewEntityTypeService

func NewEntityTypeService(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntityTypeService

NewEntityTypeService creates a new instance of EntityTypeService. 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 (*EntityTypeService) ListByApplicationID

func (_m *EntityTypeService) ListByApplicationID(ctx context.Context, appID string) ([]*model.EntityType, error)

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

func (*EntityTypeService) ListByApplicationTemplateVersionID

func (_m *EntityTypeService) ListByApplicationTemplateVersionID(ctx context.Context, appTemplateVersionID string) ([]*model.EntityType, error)

ListByApplicationTemplateVersionID provides a mock function with given fields: ctx, appTemplateVersionID

type EventProcessor

type EventProcessor struct {
	mock.Mock
}

EventProcessor is an autogenerated mock type for the EventProcessor type

func NewEventProcessor

func NewEventProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventProcessor

NewEventProcessor creates a new instance of EventProcessor. 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 (*EventProcessor) Process

func (_m *EventProcessor) Process(ctx context.Context, resourceType resource.Type, resourceID string, bundlesFromDB []*model.Bundle, packagesFromDB []*model.Package, events []*model.EventDefinitionInput, resourceHashes map[string]uint64) ([]*model.EventDefinition, []*processor.OrdFetchRequest, error)

Process provides a mock function with given fields: ctx, resourceType, resourceID, bundlesFromDB, packagesFromDB, events, resourceHashes

type EventService

type EventService struct {
	mock.Mock
}

EventService is an autogenerated mock type for the EventService type

func NewEventService

func NewEventService(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventService

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

func (_m *EventService) Create(ctx context.Context, resourceType resource.Type, resourceID string, bundleID *string, packageID *string, in model.EventDefinitionInput, specs []*model.SpecInput, bundleIDs []string, eventHash uint64, defaultBundleID string) (string, error)

Create provides a mock function with given fields: ctx, resourceType, resourceID, bundleID, packageID, in, specs, bundleIDs, eventHash, defaultBundleID

func (*EventService) Delete

func (_m *EventService) Delete(ctx context.Context, resourceType resource.Type, id string) error

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

func (*EventService) ListByApplicationID

func (_m *EventService) ListByApplicationID(ctx context.Context, appID string) ([]*model.EventDefinition, error)

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

func (*EventService) ListByApplicationTemplateVersionID

func (_m *EventService) ListByApplicationTemplateVersionID(ctx context.Context, appTemplateVersionID string) ([]*model.EventDefinition, error)

ListByApplicationTemplateVersionID provides a mock function with given fields: ctx, appTemplateVersionID

func (*EventService) UpdateInManyBundles

func (_m *EventService) UpdateInManyBundles(ctx context.Context, resourceType resource.Type, id string, packageID *string, in model.EventDefinitionInput, specIn *model.SpecInput, bundleIDsFromBundleReference []string, bundleIDsForCreation []string, bundleIDsForDeletion []string, eventHash uint64, defaultBundleID string) error

UpdateInManyBundles provides a mock function with given fields: ctx, resourceType, id, packageID, in, specIn, bundleIDsFromBundleReference, bundleIDsForCreation, bundleIDsForDeletion, eventHash, defaultBundleID

type FetchRequestService

type FetchRequestService struct {
	mock.Mock
}

FetchRequestService is an autogenerated mock type for the FetchRequestService type

func NewFetchRequestService

func NewFetchRequestService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FetchRequestService

NewFetchRequestService creates a new instance of FetchRequestService. 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 (*FetchRequestService) FetchSpec

FetchSpec provides a mock function with given fields: ctx, fr, headers

func (*FetchRequestService) Update

Update provides a mock function with given fields: ctx, fr

func (*FetchRequestService) UpdateGlobal

func (_m *FetchRequestService) UpdateGlobal(ctx context.Context, fr *model.FetchRequest) error

UpdateGlobal provides a mock function with given fields: ctx, fr

type GlobalProductService

type GlobalProductService struct {
	mock.Mock
}

GlobalProductService is an autogenerated mock type for the GlobalProductService type

func NewGlobalProductService

func NewGlobalProductService(t interface {
	mock.TestingT
	Cleanup(func())
}) *GlobalProductService

NewGlobalProductService creates a new instance of GlobalProductService. 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 (*GlobalProductService) CreateGlobal

func (_m *GlobalProductService) CreateGlobal(ctx context.Context, in model.ProductInput) (string, error)

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

func (*GlobalProductService) DeleteGlobal

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

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

func (*GlobalProductService) ListGlobal

func (_m *GlobalProductService) ListGlobal(ctx context.Context) ([]*model.Product, error)

ListGlobal provides a mock function with given fields: ctx

func (*GlobalProductService) UpdateGlobal

func (_m *GlobalProductService) UpdateGlobal(ctx context.Context, id string, in model.ProductInput) error

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

type GlobalRegistryService

type GlobalRegistryService struct {
	mock.Mock
}

GlobalRegistryService is an autogenerated mock type for the GlobalRegistryService type

func NewGlobalRegistryService

func NewGlobalRegistryService(t interface {
	mock.TestingT
	Cleanup(func())
}) *GlobalRegistryService

NewGlobalRegistryService creates a new instance of GlobalRegistryService. 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 (*GlobalRegistryService) ListGlobalResources

func (_m *GlobalRegistryService) ListGlobalResources(ctx context.Context) (map[string]bool, error)

ListGlobalResources provides a mock function with given fields: ctx

func (*GlobalRegistryService) SyncGlobalResources

func (_m *GlobalRegistryService) SyncGlobalResources(ctx context.Context) (map[string]bool, error)

SyncGlobalResources provides a mock function with given fields: ctx

type GlobalVendorService

type GlobalVendorService struct {
	mock.Mock
}

GlobalVendorService is an autogenerated mock type for the GlobalVendorService type

func NewGlobalVendorService

func NewGlobalVendorService(t interface {
	mock.TestingT
	Cleanup(func())
}) *GlobalVendorService

NewGlobalVendorService creates a new instance of GlobalVendorService. 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 (*GlobalVendorService) CreateGlobal

func (_m *GlobalVendorService) CreateGlobal(ctx context.Context, in model.VendorInput) (string, error)

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

func (*GlobalVendorService) DeleteGlobal

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

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

func (*GlobalVendorService) ListGlobal

func (_m *GlobalVendorService) ListGlobal(ctx context.Context) ([]*model.Vendor, error)

ListGlobal provides a mock function with given fields: ctx

func (*GlobalVendorService) UpdateGlobal

func (_m *GlobalVendorService) UpdateGlobal(ctx context.Context, id string, in model.VendorInput) error

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

type IntegrationDependencyProcessor

type IntegrationDependencyProcessor struct {
	mock.Mock
}

IntegrationDependencyProcessor is an autogenerated mock type for the IntegrationDependencyProcessor type

func NewIntegrationDependencyProcessor

func NewIntegrationDependencyProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationDependencyProcessor

NewIntegrationDependencyProcessor creates a new instance of IntegrationDependencyProcessor. 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 (*IntegrationDependencyProcessor) Process

func (_m *IntegrationDependencyProcessor) Process(ctx context.Context, resourceType resource.Type, resourceID string, packagesFromDB []*model.Package, integrationDependencies []*model.IntegrationDependencyInput, resourceHashes map[string]uint64) ([]*model.IntegrationDependency, error)

Process provides a mock function with given fields: ctx, resourceType, resourceID, packagesFromDB, integrationDependencies, resourceHashes

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

func (_m *IntegrationDependencyService) ListByApplicationID(ctx context.Context, appID string) ([]*model.IntegrationDependency, error)

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

func (*IntegrationDependencyService) ListByApplicationTemplateVersionID

func (_m *IntegrationDependencyService) ListByApplicationTemplateVersionID(ctx context.Context, appTemplateVersionID string) ([]*model.IntegrationDependency, error)

ListByApplicationTemplateVersionID provides a mock function with given fields: ctx, appTemplateVersionID

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

type ORDService

type ORDService struct {
	mock.Mock
}

ORDService is an autogenerated mock type for the ORDService type

func NewORDService

func NewORDService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ORDService

NewORDService creates a new instance of ORDService. 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 (*ORDService) ProcessAppInAppTemplateContext

func (_m *ORDService) ProcessAppInAppTemplateContext(ctx context.Context, appTemplateID string, appID string) error

ProcessAppInAppTemplateContext provides a mock function with given fields: ctx, appTemplateID, appID

func (*ORDService) ProcessApplication

func (_m *ORDService) ProcessApplication(ctx context.Context, appID string) error

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

func (*ORDService) ProcessApplicationTemplate

func (_m *ORDService) ProcessApplicationTemplate(ctx context.Context, appTemplateID string) error

ProcessApplicationTemplate provides a mock function with given fields: ctx, appTemplateID

type OperationMaintainer

type OperationMaintainer struct {
	mock.Mock
}

OperationMaintainer is an autogenerated mock type for the OperationMaintainer type

func NewOperationMaintainer

func NewOperationMaintainer(t interface {
	mock.TestingT
	Cleanup(func())
}) *OperationMaintainer

NewOperationMaintainer creates a new instance of OperationMaintainer. 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 (*OperationMaintainer) Maintain

func (_m *OperationMaintainer) Maintain(ctx context.Context) error

Maintain provides a mock function with given fields: ctx

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

func (_m *OperationService) CreateMultiple(ctx context.Context, in []*model.OperationInput) error

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

func (*OperationService) DeleteMultiple

func (_m *OperationService) DeleteMultiple(ctx context.Context, ids []string) error

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

func (*OperationService) ListAllByType

func (_m *OperationService) ListAllByType(ctx context.Context, opType model.OperationType) ([]*model.Operation, error)

ListAllByType provides a mock function with given fields: ctx, opType

type OperationsManager

type OperationsManager struct {
	mock.Mock
}

OperationsManager is an autogenerated mock type for the OperationsManager type

func NewOperationsManager

func NewOperationsManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *OperationsManager

NewOperationsManager creates a new instance of OperationsManager. 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 (*OperationsManager) CreateOperation

func (_m *OperationsManager) CreateOperation(ctx context.Context, in *model.OperationInput) (string, error)

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

func (*OperationsManager) FindOperationByData

func (_m *OperationsManager) FindOperationByData(ctx context.Context, data interface{}) (*model.Operation, error)

FindOperationByData provides a mock function with given fields: ctx, data

func (*OperationsManager) RescheduleOperation

func (_m *OperationsManager) RescheduleOperation(ctx context.Context, operationID string) error

RescheduleOperation provides a mock function with given fields: ctx, operationID

type PackageProcessor

type PackageProcessor struct {
	mock.Mock
}

PackageProcessor is an autogenerated mock type for the PackageProcessor type

func NewPackageProcessor

func NewPackageProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *PackageProcessor

NewPackageProcessor creates a new instance of PackageProcessor. 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 (*PackageProcessor) Process

func (_m *PackageProcessor) Process(ctx context.Context, resourceType resource.Type, resourceID string, packages []*model.PackageInput, resourceHashes map[string]uint64) ([]*model.Package, error)

Process provides a mock function with given fields: ctx, resourceType, resourceID, packages, resourceHashes

type PackageService

type PackageService struct {
	mock.Mock
}

PackageService is an autogenerated mock type for the PackageService type

func NewPackageService

func NewPackageService(t interface {
	mock.TestingT
	Cleanup(func())
}) *PackageService

NewPackageService creates a new instance of PackageService. 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 (*PackageService) ListByApplicationID

func (_m *PackageService) ListByApplicationID(ctx context.Context, appID string) ([]*model.Package, error)

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

func (*PackageService) ListByApplicationTemplateVersionID

func (_m *PackageService) ListByApplicationTemplateVersionID(ctx context.Context, appTemplateVersionID string) ([]*model.Package, error)

ListByApplicationTemplateVersionID provides a mock function with given fields: ctx, appTemplateVersionID

type ProductProcessor

type ProductProcessor struct {
	mock.Mock
}

ProductProcessor is an autogenerated mock type for the ProductProcessor type

func NewProductProcessor

func NewProductProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProductProcessor

NewProductProcessor creates a new instance of ProductProcessor. 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 (*ProductProcessor) Process

func (_m *ProductProcessor) Process(ctx context.Context, resourceType resource.Type, resourceID string, products []*model.ProductInput) ([]*model.Product, error)

Process provides a mock function with given fields: ctx, resourceType, resourceID, products

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

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

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

func (*SpecService) CreateByReferenceObjectIDWithDelayedFetchRequest

func (_m *SpecService) CreateByReferenceObjectIDWithDelayedFetchRequest(ctx context.Context, in model.SpecInput, resourceType resource.Type, objectType model.SpecReferenceObjectType, objectID string) (string, *model.FetchRequest, error)

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

func (*SpecService) DeleteByReferenceObjectID

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

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

func (*SpecService) GetByID

func (_m *SpecService) GetByID(ctx context.Context, id string, objectType model.SpecReferenceObjectType) (*model.Spec, error)

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

func (*SpecService) GetByIDGlobal

func (_m *SpecService) GetByIDGlobal(ctx context.Context, id string) (*model.Spec, error)

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

func (*SpecService) ListFetchRequestsByReferenceObjectIDs

func (_m *SpecService) ListFetchRequestsByReferenceObjectIDs(ctx context.Context, tenant string, objectIDs []string, objectType model.SpecReferenceObjectType) ([]*model.FetchRequest, error)

ListFetchRequestsByReferenceObjectIDs provides a mock function with given fields: ctx, tenant, objectIDs, objectType

func (*SpecService) ListFetchRequestsByReferenceObjectIDsGlobal

func (_m *SpecService) ListFetchRequestsByReferenceObjectIDsGlobal(ctx context.Context, objectIDs []string, objectType model.SpecReferenceObjectType) ([]*model.FetchRequest, error)

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

func (*SpecService) ListIDByReferenceObjectID

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

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

func (*SpecService) UpdateSpecOnly

func (_m *SpecService) UpdateSpecOnly(ctx context.Context, spec model.Spec) error

UpdateSpecOnly provides a mock function with given fields: ctx, spec

func (*SpecService) UpdateSpecOnlyGlobal

func (_m *SpecService) UpdateSpecOnlyGlobal(ctx context.Context, spec model.Spec) error

UpdateSpecOnlyGlobal provides a mock function with given fields: ctx, spec

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 TombstoneProcessor

type TombstoneProcessor struct {
	mock.Mock
}

TombstoneProcessor is an autogenerated mock type for the TombstoneProcessor type

func NewTombstoneProcessor

func NewTombstoneProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *TombstoneProcessor

NewTombstoneProcessor creates a new instance of TombstoneProcessor. 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 (*TombstoneProcessor) Process

func (_m *TombstoneProcessor) Process(ctx context.Context, resourceType resource.Type, resourceID string, tombstones []*model.TombstoneInput) ([]*model.Tombstone, error)

Process provides a mock function with given fields: ctx, resourceType, resourceID, tombstones

type TombstonedResourcesDeleter

type TombstonedResourcesDeleter struct {
	mock.Mock
}

TombstonedResourcesDeleter is an autogenerated mock type for the TombstonedResourcesDeleter type

func NewTombstonedResourcesDeleter

func NewTombstonedResourcesDeleter(t interface {
	mock.TestingT
	Cleanup(func())
}) *TombstonedResourcesDeleter

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

func (_m *TombstonedResourcesDeleter) Delete(ctx context.Context, resourceType resource.Type, vendorsFromDB []*model.Vendor, productsFromDB []*model.Product, packagesFromDB []*model.Package, bundlesFromDB []*model.Bundle, apisFromDB []*model.APIDefinition, eventsFromDB []*model.EventDefinition, entityTypesFromDB []*model.EntityType, capabilitiesFromDB []*model.Capability, integrationDependenciesFromDB []*model.IntegrationDependency, dataProductsFromDB []*model.DataProduct, tombstonesFromDB []*model.Tombstone, fetchRequests []*processor.OrdFetchRequest) ([]*processor.OrdFetchRequest, error)

Delete provides a mock function with given fields: ctx, resourceType, vendorsFromDB, productsFromDB, packagesFromDB, bundlesFromDB, apisFromDB, eventsFromDB, entityTypesFromDB, capabilitiesFromDB, integrationDependenciesFromDB, dataProductsFromDB, tombstonesFromDB, fetchRequests

type Validator

type Validator struct {
	mock.Mock
}

Validator is an autogenerated mock type for the Validator type

func NewValidator

func NewValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Validator

NewValidator creates a new instance of Validator. 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 (*Validator) Validate

func (_m *Validator) Validate(ctx context.Context, documents []*ord.Document, baseURL string, globalResourcesOrdIDs map[string]bool, docsString []string, ruleset string) ([]*ord.ValidationError, error)

Validate provides a mock function with given fields: ctx, documents, baseURL, globalResourcesOrdIDs, docsString, ruleset

type ValidatorClient

type ValidatorClient struct {
	mock.Mock
}

ValidatorClient is an autogenerated mock type for the ValidatorClient type

func NewValidatorClient

func NewValidatorClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ValidatorClient

NewValidatorClient creates a new instance of ValidatorClient. 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 (*ValidatorClient) Validate

func (_m *ValidatorClient) Validate(ctx context.Context, ruleset string, requestBody string) ([]ord.ValidationResult, error)

Validate provides a mock function with given fields: ctx, ruleset, requestBody

type VendorProcessor

type VendorProcessor struct {
	mock.Mock
}

VendorProcessor is an autogenerated mock type for the VendorProcessor type

func NewVendorProcessor

func NewVendorProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *VendorProcessor

NewVendorProcessor creates a new instance of VendorProcessor. 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 (*VendorProcessor) Process

func (_m *VendorProcessor) Process(ctx context.Context, resourceType resource.Type, resourceID string, vendors []*model.VendorInput) ([]*model.Vendor, error)

Process provides a mock function with given fields: ctx, resourceType, resourceID, vendors

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

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

func (_m *WebhookService) Create(ctx context.Context, owningResourceID string, in model.WebhookInput, objectType model.WebhookReferenceObjectType) (string, error)

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

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

func (_m *WebhookService) EnrichWebhooksWithTenantMappingWebhooks(in []*graphql.WebhookInput) ([]*graphql.WebhookInput, error)

EnrichWebhooksWithTenantMappingWebhooks provides a mock function with given fields: in

func (*WebhookService) GetByIDAndWebhookTypeGlobal

func (_m *WebhookService) GetByIDAndWebhookTypeGlobal(ctx context.Context, objectID string, objectType model.WebhookReferenceObjectType, webhookType model.WebhookType) (*model.Webhook, error)

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

func (*WebhookService) ListByWebhookType

func (_m *WebhookService) ListByWebhookType(ctx context.Context, webhookType model.WebhookType) ([]*model.Webhook, error)

ListByWebhookType provides a mock function with given fields: ctx, webhookType

func (*WebhookService) ListForApplication

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

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

func (*WebhookService) ListForApplicationGlobal

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

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

func (*WebhookService) ListForApplicationTemplate

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

ListForApplicationTemplate 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