Documentation ¶
Index ¶
- type APIConverter
- func (_m *APIConverter) MultipleInputFromGraphQL(in []*graphql.APIDefinitionInput) ([]*model.APIDefinitionInput, []*model.SpecInput, error)
- func (_m *APIConverter) MultipleToGraphQL(in []*model.APIDefinition, specs []*model.Spec, ...) ([]*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, appID string, bundleID 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 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
- 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, item *model.Bundle) error
- func (_m *BundleRepository) Delete(ctx context.Context, tenant string, 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) GetForApplication(ctx context.Context, tenant string, id string, applicationID string) (*model.Bundle, error)
- func (_m *BundleRepository) ListByApplicationIDNoPaging(ctx context.Context, tenantID string, appID string) ([]*model.Bundle, error)
- func (_m *BundleRepository) ListByApplicationIDs(ctx context.Context, tenantID string, applicationIDs []string, pageSize int, ...) ([]*model.BundlePage, error)
- func (_m *BundleRepository) Update(ctx context.Context, item *model.Bundle) error
- type BundleService
- func (_m *BundleService) Create(ctx context.Context, applicationID string, in model.BundleCreateInput) (string, error)
- func (_m *BundleService) Delete(ctx context.Context, id string) error
- func (_m *BundleService) Get(ctx context.Context, id string) (*model.Bundle, error)
- func (_m *BundleService) Update(ctx context.Context, id string, in model.BundleUpdateInput) error
- type DocumentConverter
- type DocumentService
- func (_m *DocumentService) CreateInBundle(ctx context.Context, bundleID string, in model.DocumentInput) (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, specs []*model.Spec, ...) ([]*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, appID string, bundleID 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
- func (_m *SpecService) CreateByReferenceObjectID(ctx context.Context, in model.SpecInput, ...) (string, error)
- func (_m *SpecService) GetByReferenceObjectID(ctx context.Context, objectType model.SpecReferenceObjectType, objectID string) (*model.Spec, error)
- func (_m *SpecService) ListByReferenceObjectIDs(ctx context.Context, objectType model.SpecReferenceObjectType, ...) ([]*model.Spec, error)
- func (_m *SpecService) RefetchSpec(ctx context.Context, id string) (*model.Spec, error)
- func (_m *SpecService) UpdateByReferenceObjectID(ctx context.Context, id string, in model.SpecInput, ...) error
- 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 (*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, specs []*model.Spec, bundleRefs []*model.BundleReference) ([]*graphql.APIDefinition, error)
MultipleToGraphQL provides a mock function with given fields: in, specs, 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 (*APIService) CreateInBundle ¶
func (_m *APIService) CreateInBundle(ctx context.Context, appID string, bundleID string, in model.APIDefinitionInput, spec *model.SpecInput) (string, error)
CreateInBundle provides a mock function with given fields: ctx, appID, 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 AuthConverter ¶
AuthConverter is an autogenerated mock type for the AuthConverter type
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 (*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 (*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 (*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
type BundleReferenceService ¶
BundleReferenceService is an autogenerated mock type for the BundleReferenceService type
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 (*BundleRepository) Delete ¶
Delete provides a mock function with given fields: ctx, tenant, 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) 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) ListByApplicationIDNoPaging ¶
func (_m *BundleRepository) ListByApplicationIDNoPaging(ctx context.Context, tenantID string, appID string) ([]*model.Bundle, error)
ListByApplicationIDNoPaging provides a mock function with given fields: ctx, tenantID, appID
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
type BundleService ¶
BundleService is an autogenerated mock type for the BundleService type
func (*BundleService) Create ¶
func (_m *BundleService) Create(ctx context.Context, applicationID string, in model.BundleCreateInput) (string, error)
Create provides a mock function with given fields: ctx, applicationID, in
func (*BundleService) Delete ¶
func (_m *BundleService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*BundleService) Update ¶
func (_m *BundleService) Update(ctx context.Context, id string, in model.BundleUpdateInput) error
Update provides a mock function with given fields: ctx, id, in
type DocumentConverter ¶
DocumentConverter is an autogenerated mock type for the DocumentConverter type
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 (*DocumentService) CreateInBundle ¶
func (_m *DocumentService) CreateInBundle(ctx context.Context, bundleID string, in model.DocumentInput) (string, error)
CreateInBundle provides a mock function with given fields: ctx, 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 (*EntityConverter) FromEntity ¶
FromEntity provides a mock function with given fields: entity
type EventConverter ¶
EventConverter is an autogenerated mock type for the EventConverter type
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, specs []*model.Spec, bundleRefs []*model.BundleReference) ([]*graphql.EventDefinition, error)
MultipleToGraphQL provides a mock function with given fields: in, specs, 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 (*EventService) CreateInBundle ¶
func (_m *EventService) CreateInBundle(ctx context.Context, appID string, bundleID string, in model.EventDefinitionInput, spec *model.SpecInput) (string, error)
CreateInBundle provides a mock function with given fields: ctx, appID, 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 (*SpecService) CreateByReferenceObjectID ¶
func (_m *SpecService) CreateByReferenceObjectID(ctx context.Context, in model.SpecInput, objectType model.SpecReferenceObjectType, objectID string) (string, error)
CreateByReferenceObjectID provides a mock function with given fields: ctx, in, objectType, objectID
func (*SpecService) GetByReferenceObjectID ¶
func (_m *SpecService) GetByReferenceObjectID(ctx context.Context, objectType model.SpecReferenceObjectType, objectID string) (*model.Spec, error)
GetByReferenceObjectID provides a mock function with given fields: ctx, 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
func (*SpecService) RefetchSpec ¶
RefetchSpec provides a mock function with given fields: ctx, id
func (*SpecService) UpdateByReferenceObjectID ¶
func (_m *SpecService) UpdateByReferenceObjectID(ctx context.Context, id string, in model.SpecInput, objectType model.SpecReferenceObjectType, objectID string) error
UpdateByReferenceObjectID provides a mock function with given fields: ctx, id, in, objectType, objectID
type UIDService ¶
UIDService is an autogenerated mock type for the UIDService type
func (*UIDService) Generate ¶
func (_m *UIDService) Generate() string
Generate provides a mock function with given fields:
Source Files ¶
- api_converter.go
- api_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