Documentation ¶
Index ¶
- type APIConverter
- func (_m *APIConverter) MultipleInputFromGraphQL(in []*graphql.APIDefinitionInput) ([]*model.APIDefinitionInput, []*model.SpecInput, error)
- func (_m *APIConverter) MultipleToGraphQL(in []*model.APIDefinition, bundleRefs []*model.BundleReference) ([]*graphql.APIDefinition, error)
- func (_m *APIConverter) ToGraphQL(in *model.APIDefinition, spec *model.Spec, bundleRef *model.BundleReference) (*graphql.APIDefinition, error)
- type APIService
- func (_m *APIService) CreateInBundle(ctx context.Context, resourceType resource.Type, resourceID string, ...) (string, error)
- func (_m *APIService) DeleteAllByBundleID(ctx context.Context, bundleID string) error
- func (_m *APIService) GetForBundle(ctx context.Context, id string, bundleID string) (*model.APIDefinition, error)
- func (_m *APIService) ListByBundleIDs(ctx context.Context, bundleIDs []string, pageSize int, cursor string) ([]*model.APIDefinitionPage, error)
- type ApplicationService
- type AuthConverter
- type BundleConverter
- func (_m *BundleConverter) CreateInputFromGraphQL(in graphql.BundleCreateInput) (model.BundleCreateInput, error)
- func (_m *BundleConverter) ToGraphQL(in *model.Bundle) (*graphql.Bundle, error)
- func (_m *BundleConverter) UpdateInputFromGraphQL(in graphql.BundleUpdateInput) (*model.BundleUpdateInput, error)
- type BundleInstanceAuthConverter
- type BundleInstanceAuthService
- func (_m *BundleInstanceAuthService) GetForBundle(ctx context.Context, id string, bundleID string) (*model.BundleInstanceAuth, error)
- func (_m *BundleInstanceAuthService) List(ctx context.Context, id string) ([]*model.BundleInstanceAuth, error)
- func (_m *BundleInstanceAuthService) ListByRuntimeID(ctx context.Context, runtimeID string) ([]*model.BundleInstanceAuth, error)
- type BundleReferenceService
- 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)
- type BundleRepository
- func (_m *BundleRepository) Create(ctx context.Context, tenant string, item *model.Bundle) error
- func (_m *BundleRepository) CreateGlobal(ctx context.Context, _a1 *model.Bundle) error
- func (_m *BundleRepository) Delete(ctx context.Context, tenant string, id string) error
- func (_m *BundleRepository) DeleteGlobal(ctx context.Context, id string) error
- func (_m *BundleRepository) Exists(ctx context.Context, tenant string, id string) (bool, error)
- func (_m *BundleRepository) GetByID(ctx context.Context, tenant string, id string) (*model.Bundle, error)
- func (_m *BundleRepository) GetByIDGlobal(ctx context.Context, id string) (*model.Bundle, error)
- func (_m *BundleRepository) GetForApplication(ctx context.Context, tenant string, id string, applicationID string) (*model.Bundle, error)
- func (_m *BundleRepository) ListByApplicationIDs(ctx context.Context, tenantID string, applicationIDs []string, pageSize int, ...) ([]*model.BundlePage, error)
- func (_m *BundleRepository) ListByResourceIDNoPaging(ctx context.Context, tenantID string, appID string, resourceType resource.Type) ([]*model.Bundle, error)
- func (_m *BundleRepository) Update(ctx context.Context, tenant string, item *model.Bundle) error
- func (_m *BundleRepository) UpdateGlobal(ctx context.Context, _a1 *model.Bundle) error
- type BundleService
- func (_m *BundleService) Create(ctx context.Context, resourceType resource.Type, resourceID string, ...) (string, error)
- func (_m *BundleService) Delete(ctx context.Context, resourceType resource.Type, id string) error
- func (_m *BundleService) Get(ctx context.Context, id string) (*model.Bundle, error)
- func (_m *BundleService) Update(ctx context.Context, resourceType resource.Type, id string, ...) error
- type DocumentConverter
- type DocumentService
- func (_m *DocumentService) CreateInBundle(ctx context.Context, resourceType resource.Type, resourceID string, ...) (string, error)
- func (_m *DocumentService) GetForBundle(ctx context.Context, id string, bundleID string) (*model.Document, error)
- func (_m *DocumentService) ListByBundleIDs(ctx context.Context, bundleIDs []string, pageSize int, cursor string) ([]*model.DocumentPage, error)
- type EntityConverter
- type EventConverter
- func (_m *EventConverter) MultipleInputFromGraphQL(in []*graphql.EventDefinitionInput) ([]*model.EventDefinitionInput, []*model.SpecInput, error)
- func (_m *EventConverter) MultipleToGraphQL(in []*model.EventDefinition, bundleRefs []*model.BundleReference) ([]*graphql.EventDefinition, error)
- func (_m *EventConverter) ToGraphQL(in *model.EventDefinition, spec *model.Spec, ...) (*graphql.EventDefinition, error)
- type EventService
- func (_m *EventService) CreateInBundle(ctx context.Context, resourceType resource.Type, resourceID string, ...) (string, error)
- func (_m *EventService) DeleteAllByBundleID(ctx context.Context, bundleID string) error
- func (_m *EventService) GetForBundle(ctx context.Context, id string, bundleID string) (*model.EventDefinition, error)
- func (_m *EventService) ListByBundleIDs(ctx context.Context, bundleIDs []string, pageSize int, cursor string) ([]*model.EventDefinitionPage, error)
- type SpecService
- type UIDService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConverter ¶
APIConverter is an autogenerated mock type for the APIConverter type
func NewAPIConverter ¶
func NewAPIConverter(t interface { mock.TestingT Cleanup(func()) }) *APIConverter
NewAPIConverter creates a new instance of APIConverter. 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 (*APIConverter) MultipleInputFromGraphQL ¶
func (_m *APIConverter) MultipleInputFromGraphQL(in []*graphql.APIDefinitionInput) ([]*model.APIDefinitionInput, []*model.SpecInput, error)
MultipleInputFromGraphQL provides a mock function with given fields: in
func (*APIConverter) MultipleToGraphQL ¶
func (_m *APIConverter) MultipleToGraphQL(in []*model.APIDefinition, bundleRefs []*model.BundleReference) ([]*graphql.APIDefinition, error)
MultipleToGraphQL provides a mock function with given fields: in, bundleRefs
func (*APIConverter) ToGraphQL ¶
func (_m *APIConverter) ToGraphQL(in *model.APIDefinition, spec *model.Spec, bundleRef *model.BundleReference) (*graphql.APIDefinition, error)
ToGraphQL provides a mock function with given fields: in, spec, bundleRef
type APIService ¶
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) CreateInBundle ¶
func (_m *APIService) CreateInBundle(ctx context.Context, resourceType resource.Type, resourceID string, bundleID string, in model.APIDefinitionInput, spec *model.SpecInput) (string, error)
CreateInBundle provides a mock function with given fields: ctx, resourceType, resourceID, bundleID, in, spec
func (*APIService) DeleteAllByBundleID ¶
func (_m *APIService) DeleteAllByBundleID(ctx context.Context, bundleID string) error
DeleteAllByBundleID provides a mock function with given fields: ctx, bundleID
func (*APIService) GetForBundle ¶
func (_m *APIService) GetForBundle(ctx context.Context, id string, bundleID string) (*model.APIDefinition, error)
GetForBundle provides a mock function with given fields: ctx, id, bundleID
func (*APIService) ListByBundleIDs ¶
func (_m *APIService) ListByBundleIDs(ctx context.Context, bundleIDs []string, pageSize int, cursor string) ([]*model.APIDefinitionPage, error)
ListByBundleIDs provides a mock function with given fields: ctx, bundleIDs, pageSize, cursor
type ApplicationService ¶
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) UpdateBaseURL ¶
func (_m *ApplicationService) UpdateBaseURL(ctx context.Context, appID string, targetURL string) error
UpdateBaseURL provides a mock function with given fields: ctx, appID, targetURL
type AuthConverter ¶
AuthConverter is an autogenerated mock type for the AuthConverter type
func NewAuthConverter ¶
func NewAuthConverter(t interface { mock.TestingT Cleanup(func()) }) *AuthConverter
NewAuthConverter creates a new instance of AuthConverter. 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 (*AuthConverter) InputFromGraphQL ¶
InputFromGraphQL provides a mock function with given fields: in
type BundleConverter ¶
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) CreateInputFromGraphQL ¶
func (_m *BundleConverter) CreateInputFromGraphQL(in graphql.BundleCreateInput) (model.BundleCreateInput, error)
CreateInputFromGraphQL provides a mock function with given fields: in
func (*BundleConverter) UpdateInputFromGraphQL ¶
func (_m *BundleConverter) UpdateInputFromGraphQL(in graphql.BundleUpdateInput) (*model.BundleUpdateInput, error)
UpdateInputFromGraphQL provides a mock function with given fields: in
type BundleInstanceAuthConverter ¶
BundleInstanceAuthConverter is an autogenerated mock type for the BundleInstanceAuthConverter type
func NewBundleInstanceAuthConverter ¶
func NewBundleInstanceAuthConverter(t interface { mock.TestingT Cleanup(func()) }) *BundleInstanceAuthConverter
NewBundleInstanceAuthConverter creates a new instance of BundleInstanceAuthConverter. 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 (*BundleInstanceAuthConverter) MultipleToGraphQL ¶
func (_m *BundleInstanceAuthConverter) MultipleToGraphQL(in []*model.BundleInstanceAuth) ([]*graphql.BundleInstanceAuth, error)
MultipleToGraphQL provides a mock function with given fields: in
func (*BundleInstanceAuthConverter) ToGraphQL ¶
func (_m *BundleInstanceAuthConverter) ToGraphQL(in *model.BundleInstanceAuth) (*graphql.BundleInstanceAuth, error)
ToGraphQL provides a mock function with given fields: in
type BundleInstanceAuthService ¶
BundleInstanceAuthService is an autogenerated mock type for the BundleInstanceAuthService type
func NewBundleInstanceAuthService ¶
func NewBundleInstanceAuthService(t interface { mock.TestingT Cleanup(func()) }) *BundleInstanceAuthService
NewBundleInstanceAuthService creates a new instance of BundleInstanceAuthService. 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 (*BundleInstanceAuthService) GetForBundle ¶
func (_m *BundleInstanceAuthService) GetForBundle(ctx context.Context, id string, bundleID string) (*model.BundleInstanceAuth, error)
GetForBundle provides a mock function with given fields: ctx, id, bundleID
func (*BundleInstanceAuthService) List ¶
func (_m *BundleInstanceAuthService) List(ctx context.Context, id string) ([]*model.BundleInstanceAuth, error)
List provides a mock function with given fields: ctx, id
func (*BundleInstanceAuthService) ListByRuntimeID ¶
func (_m *BundleInstanceAuthService) ListByRuntimeID(ctx context.Context, runtimeID string) ([]*model.BundleInstanceAuth, error)
ListByRuntimeID provides a mock function with given fields: ctx, runtimeID
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) 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
type BundleRepository ¶
BundleRepository is an autogenerated mock type for the BundleRepository type
func NewBundleRepository ¶
func NewBundleRepository(t interface { mock.TestingT Cleanup(func()) }) *BundleRepository
NewBundleRepository creates a new instance of BundleRepository. 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 (*BundleRepository) Create ¶
Create provides a mock function with given fields: ctx, tenant, item
func (*BundleRepository) CreateGlobal ¶
CreateGlobal provides a mock function with given fields: ctx, _a1
func (*BundleRepository) Delete ¶
Delete provides a mock function with given fields: ctx, tenant, id
func (*BundleRepository) DeleteGlobal ¶
func (_m *BundleRepository) DeleteGlobal(ctx context.Context, id string) error
DeleteGlobal provides a mock function with given fields: ctx, id
func (*BundleRepository) Exists ¶
Exists provides a mock function with given fields: ctx, tenant, id
func (*BundleRepository) GetByID ¶
func (_m *BundleRepository) GetByID(ctx context.Context, tenant string, id string) (*model.Bundle, error)
GetByID provides a mock function with given fields: ctx, tenant, id
func (*BundleRepository) GetByIDGlobal ¶
GetByIDGlobal provides a mock function with given fields: ctx, id
func (*BundleRepository) GetForApplication ¶
func (_m *BundleRepository) GetForApplication(ctx context.Context, tenant string, id string, applicationID string) (*model.Bundle, error)
GetForApplication provides a mock function with given fields: ctx, tenant, id, applicationID
func (*BundleRepository) ListByApplicationIDs ¶
func (_m *BundleRepository) ListByApplicationIDs(ctx context.Context, tenantID string, applicationIDs []string, pageSize int, cursor string) ([]*model.BundlePage, error)
ListByApplicationIDs provides a mock function with given fields: ctx, tenantID, applicationIDs, pageSize, cursor
func (*BundleRepository) ListByResourceIDNoPaging ¶
func (_m *BundleRepository) ListByResourceIDNoPaging(ctx context.Context, tenantID string, appID string, resourceType resource.Type) ([]*model.Bundle, error)
ListByResourceIDNoPaging provides a mock function with given fields: ctx, tenantID, appID, resourceType
func (*BundleRepository) Update ¶
Update provides a mock function with given fields: ctx, tenant, item
func (*BundleRepository) UpdateGlobal ¶
UpdateGlobal provides a mock function with given fields: ctx, _a1
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.
func (*BundleService) Create ¶
func (_m *BundleService) Create(ctx context.Context, resourceType resource.Type, resourceID string, in model.BundleCreateInput) (string, error)
Create provides a mock function with given fields: ctx, resourceType, resourceID, in
func (*BundleService) Delete ¶
Delete provides a mock function with given fields: ctx, resourceType, id
type DocumentConverter ¶
DocumentConverter is an autogenerated mock type for the DocumentConverter type
func NewDocumentConverter ¶
func NewDocumentConverter(t interface { mock.TestingT Cleanup(func()) }) *DocumentConverter
NewDocumentConverter creates a new instance of DocumentConverter. 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 (*DocumentConverter) MultipleInputFromGraphQL ¶
func (_m *DocumentConverter) MultipleInputFromGraphQL(in []*graphql.DocumentInput) ([]*model.DocumentInput, error)
MultipleInputFromGraphQL provides a mock function with given fields: in
func (*DocumentConverter) MultipleToGraphQL ¶
func (_m *DocumentConverter) MultipleToGraphQL(in []*model.Document) []*graphql.Document
MultipleToGraphQL provides a mock function with given fields: in
type DocumentService ¶
DocumentService is an autogenerated mock type for the DocumentService type
func NewDocumentService ¶
func NewDocumentService(t interface { mock.TestingT Cleanup(func()) }) *DocumentService
NewDocumentService creates a new instance of DocumentService. 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 (*DocumentService) CreateInBundle ¶
func (_m *DocumentService) CreateInBundle(ctx context.Context, resourceType resource.Type, resourceID string, bundleID string, in model.DocumentInput) (string, error)
CreateInBundle provides a mock function with given fields: ctx, resourceType, resourceID, bundleID, in
func (*DocumentService) GetForBundle ¶
func (_m *DocumentService) GetForBundle(ctx context.Context, id string, bundleID string) (*model.Document, error)
GetForBundle provides a mock function with given fields: ctx, id, bundleID
func (*DocumentService) ListByBundleIDs ¶
func (_m *DocumentService) ListByBundleIDs(ctx context.Context, bundleIDs []string, pageSize int, cursor string) ([]*model.DocumentPage, error)
ListByBundleIDs provides a mock function with given fields: ctx, bundleIDs, pageSize, cursor
type EntityConverter ¶
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 ¶
FromEntity provides a mock function with given fields: entity
type EventConverter ¶
EventConverter is an autogenerated mock type for the EventConverter type
func NewEventConverter ¶
func NewEventConverter(t interface { mock.TestingT Cleanup(func()) }) *EventConverter
NewEventConverter creates a new instance of EventConverter. 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 (*EventConverter) MultipleInputFromGraphQL ¶
func (_m *EventConverter) MultipleInputFromGraphQL(in []*graphql.EventDefinitionInput) ([]*model.EventDefinitionInput, []*model.SpecInput, error)
MultipleInputFromGraphQL provides a mock function with given fields: in
func (*EventConverter) MultipleToGraphQL ¶
func (_m *EventConverter) MultipleToGraphQL(in []*model.EventDefinition, bundleRefs []*model.BundleReference) ([]*graphql.EventDefinition, error)
MultipleToGraphQL provides a mock function with given fields: in, bundleRefs
func (*EventConverter) ToGraphQL ¶
func (_m *EventConverter) 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 EventService ¶
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) CreateInBundle ¶
func (_m *EventService) 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 (*EventService) DeleteAllByBundleID ¶
func (_m *EventService) DeleteAllByBundleID(ctx context.Context, bundleID string) error
DeleteAllByBundleID provides a mock function with given fields: ctx, bundleID
func (*EventService) GetForBundle ¶
func (_m *EventService) GetForBundle(ctx context.Context, id string, bundleID string) (*model.EventDefinition, error)
GetForBundle provides a mock function with given fields: ctx, id, bundleID
func (*EventService) ListByBundleIDs ¶
func (_m *EventService) ListByBundleIDs(ctx context.Context, bundleIDs []string, pageSize int, cursor string) ([]*model.EventDefinitionPage, error)
ListByBundleIDs provides a mock function with given fields: ctx, bundleIDs, pageSize, cursor
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) 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) ListByReferenceObjectIDs ¶
func (_m *SpecService) ListByReferenceObjectIDs(ctx context.Context, objectType model.SpecReferenceObjectType, objectIDs []string) ([]*model.Spec, error)
ListByReferenceObjectIDs provides a mock function with given fields: ctx, objectType, objectIDs
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:
Source Files ¶
- api_converter.go
- api_service.go
- application_service.go
- auth_converter.go
- bundle_converter.go
- bundle_instance_auth_converter.go
- bundle_instance_auth_service.go
- bundle_reference_service.go
- bundle_repository.go
- bundle_service.go
- document_converter.go
- document_service.go
- entity_converter.go
- event_converter.go
- event_service.go
- spec_service.go
- uid_service.go