Documentation ¶
Index ¶
- type BundleReferenceService
- func (_m *BundleReferenceService) CreateByReferenceObjectID(ctx context.Context, in model.BundleReferenceInput, ...) error
- func (_m *BundleReferenceService) DeleteByReferenceObjectID(ctx context.Context, objectType model.BundleReferenceObjectType, ...) error
- func (_m *BundleReferenceService) GetForBundle(ctx context.Context, objectType model.BundleReferenceObjectType, ...) (*model.BundleReference, error)
- func (_m *BundleReferenceService) ListByBundleIDs(ctx context.Context, objectType model.BundleReferenceObjectType, ...) ([]*model.BundleReference, map[string]int, error)
- func (_m *BundleReferenceService) UpdateByReferenceObjectID(ctx context.Context, in model.BundleReferenceInput, ...) error
- type BundleService
- type EventAPIDefinitionConverter
- type EventAPIRepository
- func (_m *EventAPIRepository) Create(ctx context.Context, tenant string, item *model.EventDefinition) error
- func (_m *EventAPIRepository) CreateGlobal(ctx context.Context, item *model.EventDefinition) error
- func (_m *EventAPIRepository) Delete(ctx context.Context, tenantID string, id string) error
- func (_m *EventAPIRepository) DeleteAllByBundleID(ctx context.Context, tenantID string, bundleID string) error
- func (_m *EventAPIRepository) DeleteGlobal(ctx context.Context, id string) error
- func (_m *EventAPIRepository) GetByApplicationID(ctx context.Context, tenantID string, id string, appID string) (*model.EventDefinition, error)
- func (_m *EventAPIRepository) GetByID(ctx context.Context, tenantID string, id string) (*model.EventDefinition, error)
- func (_m *EventAPIRepository) GetByIDGlobal(ctx context.Context, id string) (*model.EventDefinition, error)
- func (_m *EventAPIRepository) GetForBundle(ctx context.Context, tenant string, id string, bundleID string) (*model.EventDefinition, error)
- func (_m *EventAPIRepository) ListByApplicationIDPage(ctx context.Context, tenantID string, appID string, pageSize int, ...) (*model.EventDefinitionPage, error)
- func (_m *EventAPIRepository) ListByBundleIDs(ctx context.Context, tenantID string, bundleIDs []string, ...) ([]*model.EventDefinitionPage, error)
- func (_m *EventAPIRepository) ListByResourceID(ctx context.Context, tenantID string, resourceID string, ...) ([]*model.EventDefinition, error)
- func (_m *EventAPIRepository) Update(ctx context.Context, tenant string, item *model.EventDefinition) error
- func (_m *EventAPIRepository) UpdateGlobal(ctx context.Context, item *model.EventDefinition) error
- type EventDefConverter
- type EventDefService
- func (_m *EventDefService) CreateInApplication(ctx context.Context, appID string, in model.EventDefinitionInput, ...) (string, error)
- func (_m *EventDefService) CreateInBundle(ctx context.Context, resourceType resource.Type, resourceID string, ...) (string, error)
- func (_m *EventDefService) Delete(ctx context.Context, resourceType resource.Type, id string) error
- func (_m *EventDefService) Get(ctx context.Context, id string) (*model.EventDefinition, error)
- func (_m *EventDefService) ListByApplicationIDPage(ctx context.Context, appID string, pageSize int, cursor string) (*model.EventDefinitionPage, error)
- func (_m *EventDefService) ListFetchRequests(ctx context.Context, eventDefIDs []string) ([]*model.FetchRequest, error)
- func (_m *EventDefService) Update(ctx context.Context, resourceType resource.Type, id string, ...) error
- func (_m *EventDefService) UpdateForApplication(ctx context.Context, id string, in model.EventDefinitionInput, ...) error
- type FetchRequestConverter
- type SpecConverter
- type SpecService
- func (_m *SpecService) CreateByReferenceObjectID(ctx context.Context, in model.SpecInput, resourceType resource.Type, ...) (string, error)
- func (_m *SpecService) GetByReferenceObjectID(ctx context.Context, resourceType resource.Type, ...) (*model.Spec, error)
- func (_m *SpecService) ListFetchRequestsByReferenceObjectIDs(ctx context.Context, tenant string, objectIDs []string, ...) ([]*model.FetchRequest, error)
- func (_m *SpecService) RefetchSpec(ctx context.Context, id string, objectType model.SpecReferenceObjectType) (*model.Spec, error)
- func (_m *SpecService) UpdateByReferenceObjectID(ctx context.Context, id string, in model.SpecInput, resourceType resource.Type, ...) error
- type UIDService
- type VersionConverter
- func (_m *VersionConverter) FromEntity(_a0 version.Version) *model.Version
- func (_m *VersionConverter) InputFromGraphQL(in *graphql.VersionInput) *model.VersionInput
- func (_m *VersionConverter) ToEntity(_a0 model.Version) version.Version
- func (_m *VersionConverter) ToGraphQL(in *model.Version) *graphql.Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleReferenceService ¶
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) CreateByReferenceObjectID ¶
func (_m *BundleReferenceService) CreateByReferenceObjectID(ctx context.Context, in model.BundleReferenceInput, objectType model.BundleReferenceObjectType, objectID *string, bundleID *string) error
CreateByReferenceObjectID provides a mock function with given fields: ctx, in, objectType, objectID, bundleID
func (*BundleReferenceService) DeleteByReferenceObjectID ¶
func (_m *BundleReferenceService) DeleteByReferenceObjectID(ctx context.Context, objectType model.BundleReferenceObjectType, objectID *string, bundleID *string) error
DeleteByReferenceObjectID provides a mock function with given fields: ctx, objectType, objectID, bundleID
func (*BundleReferenceService) GetForBundle ¶
func (_m *BundleReferenceService) GetForBundle(ctx context.Context, objectType model.BundleReferenceObjectType, objectID *string, bundleID *string) (*model.BundleReference, error)
GetForBundle provides a mock function with given fields: ctx, objectType, objectID, bundleID
func (*BundleReferenceService) ListByBundleIDs ¶
func (_m *BundleReferenceService) ListByBundleIDs(ctx context.Context, objectType model.BundleReferenceObjectType, bundleIDs []string, pageSize int, cursor string) ([]*model.BundleReference, map[string]int, error)
ListByBundleIDs provides a mock function with given fields: ctx, objectType, bundleIDs, pageSize, cursor
func (*BundleReferenceService) UpdateByReferenceObjectID ¶
func (_m *BundleReferenceService) UpdateByReferenceObjectID(ctx context.Context, in model.BundleReferenceInput, objectType model.BundleReferenceObjectType, objectID *string, bundleID *string) error
UpdateByReferenceObjectID provides a mock function with given fields: ctx, in, objectType, objectID, bundleID
type BundleService ¶
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.
type EventAPIDefinitionConverter ¶
EventAPIDefinitionConverter is an autogenerated mock type for the EventAPIDefinitionConverter type
func NewEventAPIDefinitionConverter ¶
func NewEventAPIDefinitionConverter(t interface { mock.TestingT Cleanup(func()) }) *EventAPIDefinitionConverter
NewEventAPIDefinitionConverter creates a new instance of EventAPIDefinitionConverter. 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 (*EventAPIDefinitionConverter) FromEntity ¶
func (_m *EventAPIDefinitionConverter) FromEntity(entity *eventdef.Entity) *model.EventDefinition
FromEntity provides a mock function with given fields: entity
func (*EventAPIDefinitionConverter) ToEntity ¶
func (_m *EventAPIDefinitionConverter) ToEntity(apiModel *model.EventDefinition) *eventdef.Entity
ToEntity provides a mock function with given fields: apiModel
type EventAPIRepository ¶
EventAPIRepository is an autogenerated mock type for the EventAPIRepository type
func NewEventAPIRepository ¶
func NewEventAPIRepository(t interface { mock.TestingT Cleanup(func()) }) *EventAPIRepository
NewEventAPIRepository creates a new instance of EventAPIRepository. 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 (*EventAPIRepository) Create ¶
func (_m *EventAPIRepository) Create(ctx context.Context, tenant string, item *model.EventDefinition) error
Create provides a mock function with given fields: ctx, tenant, item
func (*EventAPIRepository) CreateGlobal ¶
func (_m *EventAPIRepository) CreateGlobal(ctx context.Context, item *model.EventDefinition) error
CreateGlobal provides a mock function with given fields: ctx, item
func (*EventAPIRepository) Delete ¶
Delete provides a mock function with given fields: ctx, tenantID, id
func (*EventAPIRepository) DeleteAllByBundleID ¶
func (_m *EventAPIRepository) DeleteAllByBundleID(ctx context.Context, tenantID string, bundleID string) error
DeleteAllByBundleID provides a mock function with given fields: ctx, tenantID, bundleID
func (*EventAPIRepository) DeleteGlobal ¶
func (_m *EventAPIRepository) DeleteGlobal(ctx context.Context, id string) error
DeleteGlobal provides a mock function with given fields: ctx, id
func (*EventAPIRepository) GetByApplicationID ¶
func (_m *EventAPIRepository) GetByApplicationID(ctx context.Context, tenantID string, id string, appID string) (*model.EventDefinition, error)
GetByApplicationID provides a mock function with given fields: ctx, tenantID, id, appID
func (*EventAPIRepository) GetByID ¶
func (_m *EventAPIRepository) GetByID(ctx context.Context, tenantID string, id string) (*model.EventDefinition, error)
GetByID provides a mock function with given fields: ctx, tenantID, id
func (*EventAPIRepository) GetByIDGlobal ¶
func (_m *EventAPIRepository) GetByIDGlobal(ctx context.Context, id string) (*model.EventDefinition, error)
GetByIDGlobal provides a mock function with given fields: ctx, id
func (*EventAPIRepository) GetForBundle ¶
func (_m *EventAPIRepository) GetForBundle(ctx context.Context, tenant string, id string, bundleID string) (*model.EventDefinition, error)
GetForBundle provides a mock function with given fields: ctx, tenant, id, bundleID
func (*EventAPIRepository) ListByApplicationIDPage ¶
func (_m *EventAPIRepository) ListByApplicationIDPage(ctx context.Context, tenantID string, appID string, pageSize int, cursor string) (*model.EventDefinitionPage, error)
ListByApplicationIDPage provides a mock function with given fields: ctx, tenantID, appID, pageSize, cursor
func (*EventAPIRepository) ListByBundleIDs ¶
func (_m *EventAPIRepository) ListByBundleIDs(ctx context.Context, tenantID string, bundleIDs []string, bundleRefs []*model.BundleReference, totalCounts map[string]int, pageSize int, cursor string) ([]*model.EventDefinitionPage, error)
ListByBundleIDs provides a mock function with given fields: ctx, tenantID, bundleIDs, bundleRefs, totalCounts, pageSize, cursor
func (*EventAPIRepository) ListByResourceID ¶
func (_m *EventAPIRepository) ListByResourceID(ctx context.Context, tenantID string, resourceID string, resourceType resource.Type) ([]*model.EventDefinition, error)
ListByResourceID provides a mock function with given fields: ctx, tenantID, resourceID, resourceType
func (*EventAPIRepository) Update ¶
func (_m *EventAPIRepository) Update(ctx context.Context, tenant string, item *model.EventDefinition) error
Update provides a mock function with given fields: ctx, tenant, item
func (*EventAPIRepository) UpdateGlobal ¶
func (_m *EventAPIRepository) UpdateGlobal(ctx context.Context, item *model.EventDefinition) error
UpdateGlobal provides a mock function with given fields: ctx, item
type EventDefConverter ¶
EventDefConverter is an autogenerated mock type for the EventDefConverter type
func NewEventDefConverter ¶
func NewEventDefConverter(t interface { mock.TestingT Cleanup(func()) }) *EventDefConverter
NewEventDefConverter creates a new instance of EventDefConverter. 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 (*EventDefConverter) InputFromGraphQL ¶
func (_m *EventDefConverter) InputFromGraphQL(in *graphql.EventDefinitionInput) (*model.EventDefinitionInput, *model.SpecInput, error)
InputFromGraphQL provides a mock function with given fields: in
func (*EventDefConverter) ToGraphQL ¶
func (_m *EventDefConverter) ToGraphQL(in *model.EventDefinition, spec *model.Spec, bundleReference *model.BundleReference) (*graphql.EventDefinition, error)
ToGraphQL provides a mock function with given fields: in, spec, bundleReference
type EventDefService ¶
EventDefService is an autogenerated mock type for the EventDefService type
func NewEventDefService ¶
func NewEventDefService(t interface { mock.TestingT Cleanup(func()) }) *EventDefService
NewEventDefService creates a new instance of EventDefService. 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 (*EventDefService) CreateInApplication ¶
func (_m *EventDefService) CreateInApplication(ctx context.Context, appID string, in model.EventDefinitionInput, spec *model.SpecInput) (string, error)
CreateInApplication provides a mock function with given fields: ctx, appID, in, spec
func (*EventDefService) CreateInBundle ¶
func (_m *EventDefService) CreateInBundle(ctx context.Context, resourceType resource.Type, resourceID string, bundleID string, in model.EventDefinitionInput, spec *model.SpecInput) (string, error)
CreateInBundle provides a mock function with given fields: ctx, resourceType, resourceID, bundleID, in, spec
func (*EventDefService) Delete ¶
Delete provides a mock function with given fields: ctx, resourceType, id
func (*EventDefService) Get ¶
func (_m *EventDefService) Get(ctx context.Context, id string) (*model.EventDefinition, error)
Get provides a mock function with given fields: ctx, id
func (*EventDefService) ListByApplicationIDPage ¶
func (_m *EventDefService) ListByApplicationIDPage(ctx context.Context, appID string, pageSize int, cursor string) (*model.EventDefinitionPage, error)
ListByApplicationIDPage provides a mock function with given fields: ctx, appID, pageSize, cursor
func (*EventDefService) ListFetchRequests ¶
func (_m *EventDefService) ListFetchRequests(ctx context.Context, eventDefIDs []string) ([]*model.FetchRequest, error)
ListFetchRequests provides a mock function with given fields: ctx, eventDefIDs
func (*EventDefService) Update ¶
func (_m *EventDefService) Update(ctx context.Context, resourceType resource.Type, id string, in model.EventDefinitionInput, spec *model.SpecInput) error
Update provides a mock function with given fields: ctx, resourceType, id, in, spec
func (*EventDefService) UpdateForApplication ¶
func (_m *EventDefService) UpdateForApplication(ctx context.Context, id string, in model.EventDefinitionInput, specIn *model.SpecInput) error
UpdateForApplication provides a mock function with given fields: ctx, id, in, specIn
type FetchRequestConverter ¶
FetchRequestConverter is an autogenerated mock type for the FetchRequestConverter type
func NewFetchRequestConverter ¶
func NewFetchRequestConverter(t interface { mock.TestingT Cleanup(func()) }) *FetchRequestConverter
NewFetchRequestConverter creates a new instance of FetchRequestConverter. 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 (*FetchRequestConverter) ToGraphQL ¶
func (_m *FetchRequestConverter) ToGraphQL(in *model.FetchRequest) (*graphql.FetchRequest, error)
ToGraphQL provides a mock function with given fields: in
type SpecConverter ¶
SpecConverter is an autogenerated mock type for the SpecConverter type
func NewSpecConverter ¶
func NewSpecConverter(t interface { mock.TestingT Cleanup(func()) }) *SpecConverter
NewSpecConverter creates a new instance of SpecConverter. 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 (*SpecConverter) InputFromGraphQLEventSpec ¶
func (_m *SpecConverter) InputFromGraphQLEventSpec(in *graphql.EventSpecInput) (*model.SpecInput, error)
InputFromGraphQLEventSpec provides a mock function with given fields: in
func (*SpecConverter) ToGraphQLEventSpec ¶
ToGraphQLEventSpec provides a mock function with given fields: in
type SpecService ¶
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) 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
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) RefetchSpec ¶
func (_m *SpecService) RefetchSpec(ctx context.Context, id string, objectType model.SpecReferenceObjectType) (*model.Spec, error)
RefetchSpec provides a mock function with given fields: ctx, id, objectType
func (*SpecService) UpdateByReferenceObjectID ¶
func (_m *SpecService) UpdateByReferenceObjectID(ctx context.Context, id string, in model.SpecInput, resourceType resource.Type, objectType model.SpecReferenceObjectType, objectID string) error
UpdateByReferenceObjectID provides a mock function with given fields: ctx, id, in, resourceType, objectType, objectID
type UIDService ¶
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 VersionConverter ¶
VersionConverter is an autogenerated mock type for the VersionConverter type
func NewVersionConverter ¶
func NewVersionConverter(t interface { mock.TestingT Cleanup(func()) }) *VersionConverter
NewVersionConverter creates a new instance of VersionConverter. 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 (*VersionConverter) FromEntity ¶
func (_m *VersionConverter) FromEntity(_a0 version.Version) *model.Version
FromEntity provides a mock function with given fields: _a0
func (*VersionConverter) InputFromGraphQL ¶
func (_m *VersionConverter) InputFromGraphQL(in *graphql.VersionInput) *model.VersionInput
InputFromGraphQL provides a mock function with given fields: in