Documentation ¶
Index ¶
- type ApplicationConverter
- type ApplicationRepo
- type ApplicationRepository
- type AssignmentOperationConverter
- type AssignmentOperationService
- func (_m *AssignmentOperationService) Create(ctx context.Context, in *model.AssignmentOperationInput) (string, error)
- func (_m *AssignmentOperationService) DeleteByIDs(ctx context.Context, ids []string) error
- func (_m *AssignmentOperationService) Finish(ctx context.Context, assignmentID string, formationID string) error
- func (_m *AssignmentOperationService) ListByFormationAssignmentIDs(ctx context.Context, formationAssignmentIDs []string, pageSize int, ...) ([]*model.AssignmentOperationPage, error)
- func (_m *AssignmentOperationService) Update(ctx context.Context, assignmentID string, formationID string, ...) error
- type ConstraintEngine
- type EntityConverter
- type FaNotificationService
- func (_m *FaNotificationService) GenerateFormationAssignmentNotificationExt(ctx context.Context, ...) (*webhookclient.FormationAssignmentNotificationRequestExt, error)
- func (_m *FaNotificationService) PrepareDetailsForNotificationStatusReturned(ctx context.Context, tenantID string, fa *model.FormationAssignment, ...) (*formationconstraint.NotificationStatusReturnedOperationDetails, error)
- type FormationAssignmentRepository
- func (_m *FormationAssignmentRepository) Create(ctx context.Context, item *model.FormationAssignment) error
- func (_m *FormationAssignmentRepository) Delete(ctx context.Context, id string, tenantID string) error
- func (_m *FormationAssignmentRepository) DeleteAssignmentsForObjectID(ctx context.Context, tnt string, formationID string, objectID string) error
- func (_m *FormationAssignmentRepository) Exists(ctx context.Context, id string, tenantID string) (bool, error)
- func (_m *FormationAssignmentRepository) Get(ctx context.Context, id string, tenantID string) (*model.FormationAssignment, error)
- func (_m *FormationAssignmentRepository) GetAssignmentsForFormation(ctx context.Context, tenantID string, formationID string) ([]*model.FormationAssignment, error)
- func (_m *FormationAssignmentRepository) GetAssignmentsForFormationWithStates(ctx context.Context, tenantID string, formationID string, states []string) ([]*model.FormationAssignment, error)
- func (_m *FormationAssignmentRepository) GetByTargetAndSource(ctx context.Context, target string, source string, tenantID string, ...) (*model.FormationAssignment, error)
- func (_m *FormationAssignmentRepository) GetForFormation(ctx context.Context, tenantID string, id string, formationID string) (*model.FormationAssignment, error)
- func (_m *FormationAssignmentRepository) GetGlobalByID(ctx context.Context, id string) (*model.FormationAssignment, error)
- func (_m *FormationAssignmentRepository) GetGlobalByIDAndFormationID(ctx context.Context, id string, formationID string) (*model.FormationAssignment, error)
- func (_m *FormationAssignmentRepository) GetReverseBySourceAndTarget(ctx context.Context, tenantID string, formationID string, sourceID string, ...) (*model.FormationAssignment, error)
- func (_m *FormationAssignmentRepository) List(ctx context.Context, pageSize int, cursor string, tenantID string) (*model.FormationAssignmentPage, error)
- func (_m *FormationAssignmentRepository) ListAllForObject(ctx context.Context, tenant string, formationID string, objectID string) ([]*model.FormationAssignment, error)
- func (_m *FormationAssignmentRepository) ListAllForObjectGlobal(ctx context.Context, objectID string) ([]*model.FormationAssignment, error)
- func (_m *FormationAssignmentRepository) ListAllForObjectIDs(ctx context.Context, tenant string, formationID string, objectIDs []string) ([]*model.FormationAssignment, error)
- func (_m *FormationAssignmentRepository) ListByFormationIDs(ctx context.Context, tenantID string, formationIDs []string, pageSize int, ...) ([]*model.FormationAssignmentPage, error)
- func (_m *FormationAssignmentRepository) ListByFormationIDsNoPaging(ctx context.Context, tenantID string, formationIDs []string) ([][]*model.FormationAssignment, error)
- func (_m *FormationAssignmentRepository) ListForIDs(ctx context.Context, tenant string, ids []string) ([]*model.FormationAssignment, error)
- func (_m *FormationAssignmentRepository) Update(ctx context.Context, _a1 *model.FormationAssignment) error
- type FormationRepository
- type LabelService
- type NotificationBuilder
- func (_m *NotificationBuilder) BuildFormationAssignmentNotificationRequest(ctx context.Context, ...) (*webhookclient.FormationAssignmentNotificationRequest, error)
- func (_m *NotificationBuilder) PrepareDetailsForApplicationTenantMappingNotificationGeneration(operation model.FormationOperation, formationTemplateID string, ...) (*formationconstraint.GenerateFormationAssignmentNotificationOperationDetails, ...)
- func (_m *NotificationBuilder) PrepareDetailsForConfigurationChangeNotificationGeneration(operation model.FormationOperation, formationTemplateID string, ...) (*formationconstraint.GenerateFormationAssignmentNotificationOperationDetails, ...)
- type NotificationService
- type RuntimeContextConverter
- type RuntimeContextRepo
- type RuntimeContextRepository
- type RuntimeConverter
- type RuntimeRepo
- type RuntimeRepository
- type StatusService
- type TemplateInput
- func (_m *TemplateInput) Clone() webhook.FormationAssignmentTemplateInput
- func (_m *TemplateInput) GetAssignment() *model.FormationAssignment
- func (_m *TemplateInput) GetParticipantsIDs() []string
- func (_m *TemplateInput) GetReverseAssignment() *model.FormationAssignment
- func (_m *TemplateInput) ParseHeadersTemplate(tmpl *string) (http.Header, error)
- func (_m *TemplateInput) ParseInputTemplate(tmpl *string) ([]byte, error)
- func (_m *TemplateInput) ParseURLTemplate(tmpl *string) (*webhook.URL, error)
- func (_m *TemplateInput) SetAssignment(_a0 *model.FormationAssignment)
- func (_m *TemplateInput) SetReverseAssignment(_a0 *model.FormationAssignment)
- type TenantRepository
- type UIDService
- type WebhookConverter
- type WebhookRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationConverter ¶
ApplicationConverter is an autogenerated mock type for the applicationConverter type
func NewApplicationConverter ¶
func NewApplicationConverter(t interface { mock.TestingT Cleanup(func()) }) *ApplicationConverter
NewApplicationConverter creates a new instance of ApplicationConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ApplicationConverter) ToGraphQL ¶
func (_m *ApplicationConverter) ToGraphQL(in *model.Application) *graphql.Application
ToGraphQL provides a mock function with given fields: in
type ApplicationRepo ¶
ApplicationRepo is an autogenerated mock type for the applicationRepo type
func NewApplicationRepo ¶
func NewApplicationRepo(t interface { mock.TestingT Cleanup(func()) }) *ApplicationRepo
NewApplicationRepo creates a new instance of ApplicationRepo. 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 (*ApplicationRepo) ListAllByIDs ¶
func (_m *ApplicationRepo) ListAllByIDs(ctx context.Context, tenantID string, ids []string) ([]*model.Application, error)
ListAllByIDs provides a mock function with given fields: ctx, tenantID, ids
type ApplicationRepository ¶
ApplicationRepository is an autogenerated mock type for the applicationRepository type
func NewApplicationRepository ¶
func NewApplicationRepository(t interface { mock.TestingT Cleanup(func()) }) *ApplicationRepository
NewApplicationRepository creates a new instance of ApplicationRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ApplicationRepository) ListByScenariosNoPaging ¶
func (_m *ApplicationRepository) ListByScenariosNoPaging(ctx context.Context, tenant string, scenarios []string) ([]*model.Application, error)
ListByScenariosNoPaging provides a mock function with given fields: ctx, tenant, scenarios
type AssignmentOperationConverter ¶
AssignmentOperationConverter is an autogenerated mock type for the assignmentOperationConverter type
func NewAssignmentOperationConverter ¶
func NewAssignmentOperationConverter(t interface { mock.TestingT Cleanup(func()) }) *AssignmentOperationConverter
NewAssignmentOperationConverter creates a new instance of AssignmentOperationConverter. 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 (*AssignmentOperationConverter) MultipleToGraphQL ¶
func (_m *AssignmentOperationConverter) MultipleToGraphQL(in []*model.AssignmentOperation) []*graphql.AssignmentOperation
MultipleToGraphQL provides a mock function with given fields: in
type AssignmentOperationService ¶
AssignmentOperationService is an autogenerated mock type for the assignmentOperationService type
func NewAssignmentOperationService ¶
func NewAssignmentOperationService(t interface { mock.TestingT Cleanup(func()) }) *AssignmentOperationService
NewAssignmentOperationService creates a new instance of AssignmentOperationService. 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 (*AssignmentOperationService) Create ¶
func (_m *AssignmentOperationService) Create(ctx context.Context, in *model.AssignmentOperationInput) (string, error)
Create provides a mock function with given fields: ctx, in
func (*AssignmentOperationService) DeleteByIDs ¶
func (_m *AssignmentOperationService) DeleteByIDs(ctx context.Context, ids []string) error
DeleteByIDs provides a mock function with given fields: ctx, ids
func (*AssignmentOperationService) Finish ¶
func (_m *AssignmentOperationService) Finish(ctx context.Context, assignmentID string, formationID string) error
Finish provides a mock function with given fields: ctx, assignmentID, formationID
func (*AssignmentOperationService) ListByFormationAssignmentIDs ¶
func (_m *AssignmentOperationService) ListByFormationAssignmentIDs(ctx context.Context, formationAssignmentIDs []string, pageSize int, cursor string) ([]*model.AssignmentOperationPage, error)
ListByFormationAssignmentIDs provides a mock function with given fields: ctx, formationAssignmentIDs, pageSize, cursor
func (*AssignmentOperationService) Update ¶
func (_m *AssignmentOperationService) Update(ctx context.Context, assignmentID string, formationID string, newTrigger model.OperationTrigger) error
Update provides a mock function with given fields: ctx, assignmentID, formationID, newTrigger
type ConstraintEngine ¶
ConstraintEngine is an autogenerated mock type for the constraintEngine type
func NewConstraintEngine ¶
func NewConstraintEngine(t interface { mock.TestingT Cleanup(func()) }) *ConstraintEngine
NewConstraintEngine creates a new instance of ConstraintEngine. 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 (*ConstraintEngine) EnforceConstraints ¶
func (_m *ConstraintEngine) EnforceConstraints(ctx context.Context, location formationconstraint.JoinPointLocation, details formationconstraint.JoinPointDetails, formationTemplateID string) error
EnforceConstraints provides a mock function with given fields: ctx, location, details, formationTemplateID
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 ¶
func (_m *EntityConverter) FromEntity(entity *formationassignment.Entity) *model.FormationAssignment
FromEntity provides a mock function with given fields: entity
func (*EntityConverter) ToEntity ¶
func (_m *EntityConverter) ToEntity(in *model.FormationAssignment) *formationassignment.Entity
ToEntity provides a mock function with given fields: in
type FaNotificationService ¶
FaNotificationService is an autogenerated mock type for the faNotificationService type
func NewFaNotificationService ¶
func NewFaNotificationService(t interface { mock.TestingT Cleanup(func()) }) *FaNotificationService
NewFaNotificationService creates a new instance of FaNotificationService. 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 (*FaNotificationService) GenerateFormationAssignmentNotificationExt ¶
func (_m *FaNotificationService) GenerateFormationAssignmentNotificationExt(ctx context.Context, faRequestMapping *formationassignment.FormationAssignmentRequestMapping, reverseFaRequestMapping *formationassignment.FormationAssignmentRequestMapping, operation model.FormationOperation) (*webhookclient.FormationAssignmentNotificationRequestExt, error)
GenerateFormationAssignmentNotificationExt provides a mock function with given fields: ctx, faRequestMapping, reverseFaRequestMapping, operation
func (*FaNotificationService) PrepareDetailsForNotificationStatusReturned ¶
func (_m *FaNotificationService) PrepareDetailsForNotificationStatusReturned(ctx context.Context, tenantID string, fa *model.FormationAssignment, operation model.FormationOperation, notificationStatusReport *statusreport.NotificationStatusReport) (*formationconstraint.NotificationStatusReturnedOperationDetails, error)
PrepareDetailsForNotificationStatusReturned provides a mock function with given fields: ctx, tenantID, fa, operation, notificationStatusReport
type FormationAssignmentRepository ¶
FormationAssignmentRepository is an autogenerated mock type for the FormationAssignmentRepository type
func NewFormationAssignmentRepository ¶
func NewFormationAssignmentRepository(t interface { mock.TestingT Cleanup(func()) }) *FormationAssignmentRepository
NewFormationAssignmentRepository creates a new instance of FormationAssignmentRepository. 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 (*FormationAssignmentRepository) Create ¶
func (_m *FormationAssignmentRepository) Create(ctx context.Context, item *model.FormationAssignment) error
Create provides a mock function with given fields: ctx, item
func (*FormationAssignmentRepository) Delete ¶
func (_m *FormationAssignmentRepository) Delete(ctx context.Context, id string, tenantID string) error
Delete provides a mock function with given fields: ctx, id, tenantID
func (*FormationAssignmentRepository) DeleteAssignmentsForObjectID ¶
func (_m *FormationAssignmentRepository) DeleteAssignmentsForObjectID(ctx context.Context, tnt string, formationID string, objectID string) error
DeleteAssignmentsForObjectID provides a mock function with given fields: ctx, tnt, formationID, objectID
func (*FormationAssignmentRepository) Exists ¶
func (_m *FormationAssignmentRepository) Exists(ctx context.Context, id string, tenantID string) (bool, error)
Exists provides a mock function with given fields: ctx, id, tenantID
func (*FormationAssignmentRepository) Get ¶
func (_m *FormationAssignmentRepository) Get(ctx context.Context, id string, tenantID string) (*model.FormationAssignment, error)
Get provides a mock function with given fields: ctx, id, tenantID
func (*FormationAssignmentRepository) GetAssignmentsForFormation ¶
func (_m *FormationAssignmentRepository) GetAssignmentsForFormation(ctx context.Context, tenantID string, formationID string) ([]*model.FormationAssignment, error)
GetAssignmentsForFormation provides a mock function with given fields: ctx, tenantID, formationID
func (*FormationAssignmentRepository) GetAssignmentsForFormationWithStates ¶
func (_m *FormationAssignmentRepository) GetAssignmentsForFormationWithStates(ctx context.Context, tenantID string, formationID string, states []string) ([]*model.FormationAssignment, error)
GetAssignmentsForFormationWithStates provides a mock function with given fields: ctx, tenantID, formationID, states
func (*FormationAssignmentRepository) GetByTargetAndSource ¶
func (_m *FormationAssignmentRepository) GetByTargetAndSource(ctx context.Context, target string, source string, tenantID string, formationID string) (*model.FormationAssignment, error)
GetByTargetAndSource provides a mock function with given fields: ctx, target, source, tenantID, formationID
func (*FormationAssignmentRepository) GetForFormation ¶
func (_m *FormationAssignmentRepository) GetForFormation(ctx context.Context, tenantID string, id string, formationID string) (*model.FormationAssignment, error)
GetForFormation provides a mock function with given fields: ctx, tenantID, id, formationID
func (*FormationAssignmentRepository) GetGlobalByID ¶
func (_m *FormationAssignmentRepository) GetGlobalByID(ctx context.Context, id string) (*model.FormationAssignment, error)
GetGlobalByID provides a mock function with given fields: ctx, id
func (*FormationAssignmentRepository) GetGlobalByIDAndFormationID ¶
func (_m *FormationAssignmentRepository) GetGlobalByIDAndFormationID(ctx context.Context, id string, formationID string) (*model.FormationAssignment, error)
GetGlobalByIDAndFormationID provides a mock function with given fields: ctx, id, formationID
func (*FormationAssignmentRepository) GetReverseBySourceAndTarget ¶
func (_m *FormationAssignmentRepository) GetReverseBySourceAndTarget(ctx context.Context, tenantID string, formationID string, sourceID string, targetID string) (*model.FormationAssignment, error)
GetReverseBySourceAndTarget provides a mock function with given fields: ctx, tenantID, formationID, sourceID, targetID
func (*FormationAssignmentRepository) List ¶
func (_m *FormationAssignmentRepository) List(ctx context.Context, pageSize int, cursor string, tenantID string) (*model.FormationAssignmentPage, error)
List provides a mock function with given fields: ctx, pageSize, cursor, tenantID
func (*FormationAssignmentRepository) ListAllForObject ¶
func (_m *FormationAssignmentRepository) ListAllForObject(ctx context.Context, tenant string, formationID string, objectID string) ([]*model.FormationAssignment, error)
ListAllForObject provides a mock function with given fields: ctx, tenant, formationID, objectID
func (*FormationAssignmentRepository) ListAllForObjectGlobal ¶
func (_m *FormationAssignmentRepository) ListAllForObjectGlobal(ctx context.Context, objectID string) ([]*model.FormationAssignment, error)
ListAllForObjectGlobal provides a mock function with given fields: ctx, objectID
func (*FormationAssignmentRepository) ListAllForObjectIDs ¶
func (_m *FormationAssignmentRepository) ListAllForObjectIDs(ctx context.Context, tenant string, formationID string, objectIDs []string) ([]*model.FormationAssignment, error)
ListAllForObjectIDs provides a mock function with given fields: ctx, tenant, formationID, objectIDs
func (*FormationAssignmentRepository) ListByFormationIDs ¶
func (_m *FormationAssignmentRepository) ListByFormationIDs(ctx context.Context, tenantID string, formationIDs []string, pageSize int, cursor string) ([]*model.FormationAssignmentPage, error)
ListByFormationIDs provides a mock function with given fields: ctx, tenantID, formationIDs, pageSize, cursor
func (*FormationAssignmentRepository) ListByFormationIDsNoPaging ¶
func (_m *FormationAssignmentRepository) ListByFormationIDsNoPaging(ctx context.Context, tenantID string, formationIDs []string) ([][]*model.FormationAssignment, error)
ListByFormationIDsNoPaging provides a mock function with given fields: ctx, tenantID, formationIDs
func (*FormationAssignmentRepository) ListForIDs ¶
func (_m *FormationAssignmentRepository) ListForIDs(ctx context.Context, tenant string, ids []string) ([]*model.FormationAssignment, error)
ListForIDs provides a mock function with given fields: ctx, tenant, ids
func (*FormationAssignmentRepository) Update ¶
func (_m *FormationAssignmentRepository) Update(ctx context.Context, _a1 *model.FormationAssignment) error
Update provides a mock function with given fields: ctx, _a1
type FormationRepository ¶
FormationRepository is an autogenerated mock type for the formationRepository type
func NewFormationRepository ¶
func NewFormationRepository(t interface { mock.TestingT Cleanup(func()) }) *FormationRepository
NewFormationRepository creates a new instance of FormationRepository. 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 LabelService ¶
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.
type NotificationBuilder ¶
NotificationBuilder is an autogenerated mock type for the notificationBuilder type
func NewNotificationBuilder ¶
func NewNotificationBuilder(t interface { mock.TestingT Cleanup(func()) }) *NotificationBuilder
NewNotificationBuilder creates a new instance of NotificationBuilder. 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 (*NotificationBuilder) BuildFormationAssignmentNotificationRequest ¶
func (_m *NotificationBuilder) BuildFormationAssignmentNotificationRequest(ctx context.Context, joinPointDetails *formationconstraint.GenerateFormationAssignmentNotificationOperationDetails, _a2 *model.Webhook) (*webhookclient.FormationAssignmentNotificationRequest, error)
BuildFormationAssignmentNotificationRequest provides a mock function with given fields: ctx, joinPointDetails, _a2
func (*NotificationBuilder) PrepareDetailsForApplicationTenantMappingNotificationGeneration ¶
func (_m *NotificationBuilder) PrepareDetailsForApplicationTenantMappingNotificationGeneration(operation model.FormationOperation, formationTemplateID string, formation *model.Formation, sourceApplicationTemplate *webhook.ApplicationTemplateWithLabels, sourceApplication *webhook.ApplicationWithLabels, targetApplicationTemplate *webhook.ApplicationTemplateWithLabels, targetApplication *webhook.ApplicationWithLabels, assignment *webhook.FormationAssignment, reverseAssignment *webhook.FormationAssignment, tenantContext *webhook.CustomerTenantContext, tenantID string) (*formationconstraint.GenerateFormationAssignmentNotificationOperationDetails, error)
PrepareDetailsForApplicationTenantMappingNotificationGeneration provides a mock function with given fields: operation, formationTemplateID, formation, sourceApplicationTemplate, sourceApplication, targetApplicationTemplate, targetApplication, assignment, reverseAssignment, tenantContext, tenantID
func (*NotificationBuilder) PrepareDetailsForConfigurationChangeNotificationGeneration ¶
func (_m *NotificationBuilder) PrepareDetailsForConfigurationChangeNotificationGeneration(operation model.FormationOperation, formationTemplateID string, formation *model.Formation, applicationTemplate *webhook.ApplicationTemplateWithLabels, application *webhook.ApplicationWithLabels, runtime *webhook.RuntimeWithLabels, runtimeContext *webhook.RuntimeContextWithLabels, assignment *webhook.FormationAssignment, reverseAssignment *webhook.FormationAssignment, targetType model.ResourceType, tenantContext *webhook.CustomerTenantContext, tenantID string) (*formationconstraint.GenerateFormationAssignmentNotificationOperationDetails, error)
PrepareDetailsForConfigurationChangeNotificationGeneration provides a mock function with given fields: operation, formationTemplateID, formation, applicationTemplate, application, runtime, runtimeContext, assignment, reverseAssignment, targetType, tenantContext, tenantID
type NotificationService ¶
NotificationService is an autogenerated mock type for the notificationService type
func NewNotificationService ¶
func NewNotificationService(t interface { mock.TestingT Cleanup(func()) }) *NotificationService
NewNotificationService creates a new instance of NotificationService. 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 (*NotificationService) SendNotification ¶
func (_m *NotificationService) SendNotification(ctx context.Context, webhookNotificationReq webhookclient.WebhookExtRequest) (*webhook.Response, error)
SendNotification provides a mock function with given fields: ctx, webhookNotificationReq
type RuntimeContextConverter ¶
RuntimeContextConverter is an autogenerated mock type for the runtimeContextConverter type
func NewRuntimeContextConverter ¶
func NewRuntimeContextConverter(t interface { mock.TestingT Cleanup(func()) }) *RuntimeContextConverter
NewRuntimeContextConverter creates a new instance of RuntimeContextConverter. 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 (*RuntimeContextConverter) ToGraphQL ¶
func (_m *RuntimeContextConverter) ToGraphQL(in *model.RuntimeContext) *graphql.RuntimeContext
ToGraphQL provides a mock function with given fields: in
type RuntimeContextRepo ¶
RuntimeContextRepo is an autogenerated mock type for the runtimeContextRepo type
func NewRuntimeContextRepo ¶
func NewRuntimeContextRepo(t interface { mock.TestingT Cleanup(func()) }) *RuntimeContextRepo
NewRuntimeContextRepo creates a new instance of RuntimeContextRepo. 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 (*RuntimeContextRepo) ListByIDs ¶
func (_m *RuntimeContextRepo) ListByIDs(ctx context.Context, tenant string, ids []string) ([]*model.RuntimeContext, error)
ListByIDs provides a mock function with given fields: ctx, tenant, ids
type RuntimeContextRepository ¶
RuntimeContextRepository is an autogenerated mock type for the runtimeContextRepository type
func NewRuntimeContextRepository ¶
func NewRuntimeContextRepository(t interface { mock.TestingT Cleanup(func()) }) *RuntimeContextRepository
NewRuntimeContextRepository creates a new instance of RuntimeContextRepository. 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 (*RuntimeContextRepository) GetByID ¶
func (_m *RuntimeContextRepository) GetByID(ctx context.Context, tenant string, id string) (*model.RuntimeContext, error)
GetByID provides a mock function with given fields: ctx, tenant, id
func (*RuntimeContextRepository) ListByScenarios ¶
func (_m *RuntimeContextRepository) ListByScenarios(ctx context.Context, tenant string, scenarios []string) ([]*model.RuntimeContext, error)
ListByScenarios provides a mock function with given fields: ctx, tenant, scenarios
type RuntimeConverter ¶
RuntimeConverter is an autogenerated mock type for the runtimeConverter type
func NewRuntimeConverter ¶
func NewRuntimeConverter(t interface { mock.TestingT Cleanup(func()) }) *RuntimeConverter
NewRuntimeConverter creates a new instance of RuntimeConverter. 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 RuntimeRepo ¶
RuntimeRepo is an autogenerated mock type for the runtimeRepo type
func NewRuntimeRepo ¶
func NewRuntimeRepo(t interface { mock.TestingT Cleanup(func()) }) *RuntimeRepo
NewRuntimeRepo creates a new instance of RuntimeRepo. 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 RuntimeRepository ¶
RuntimeRepository is an autogenerated mock type for the runtimeRepository type
func NewRuntimeRepository ¶
func NewRuntimeRepository(t interface { mock.TestingT Cleanup(func()) }) *RuntimeRepository
NewRuntimeRepository creates a new instance of RuntimeRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RuntimeRepository) ListByScenarios ¶
func (_m *RuntimeRepository) ListByScenarios(ctx context.Context, tenant string, scenarios []string) ([]*model.Runtime, error)
ListByScenarios provides a mock function with given fields: ctx, tenant, scenarios
type StatusService ¶
StatusService is an autogenerated mock type for the statusService type
func NewStatusService ¶
func NewStatusService(t interface { mock.TestingT Cleanup(func()) }) *StatusService
NewStatusService creates a new instance of StatusService. 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 (*StatusService) DeleteWithConstraints ¶
func (_m *StatusService) DeleteWithConstraints(ctx context.Context, id string, notificationStatusReport *statusreport.NotificationStatusReport) error
DeleteWithConstraints provides a mock function with given fields: ctx, id, notificationStatusReport
func (*StatusService) UpdateWithConstraints ¶
func (_m *StatusService) UpdateWithConstraints(ctx context.Context, notificationStatusReport *statusreport.NotificationStatusReport, fa *model.FormationAssignment, operation model.FormationOperation) error
UpdateWithConstraints provides a mock function with given fields: ctx, notificationStatusReport, fa, operation
type TemplateInput ¶
TemplateInput is an autogenerated mock type for the templateInput type
func NewTemplateInput ¶
func NewTemplateInput(t interface { mock.TestingT Cleanup(func()) }) *TemplateInput
NewTemplateInput creates a new instance of TemplateInput. 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 (*TemplateInput) Clone ¶
func (_m *TemplateInput) Clone() webhook.FormationAssignmentTemplateInput
Clone provides a mock function with given fields:
func (*TemplateInput) GetAssignment ¶
func (_m *TemplateInput) GetAssignment() *model.FormationAssignment
GetAssignment provides a mock function with given fields:
func (*TemplateInput) GetParticipantsIDs ¶
func (_m *TemplateInput) GetParticipantsIDs() []string
GetParticipantsIDs provides a mock function with given fields:
func (*TemplateInput) GetReverseAssignment ¶
func (_m *TemplateInput) GetReverseAssignment() *model.FormationAssignment
GetReverseAssignment provides a mock function with given fields:
func (*TemplateInput) ParseHeadersTemplate ¶
func (_m *TemplateInput) ParseHeadersTemplate(tmpl *string) (http.Header, error)
ParseHeadersTemplate provides a mock function with given fields: tmpl
func (*TemplateInput) ParseInputTemplate ¶
func (_m *TemplateInput) ParseInputTemplate(tmpl *string) ([]byte, error)
ParseInputTemplate provides a mock function with given fields: tmpl
func (*TemplateInput) ParseURLTemplate ¶
func (_m *TemplateInput) ParseURLTemplate(tmpl *string) (*webhook.URL, error)
ParseURLTemplate provides a mock function with given fields: tmpl
func (*TemplateInput) SetAssignment ¶
func (_m *TemplateInput) SetAssignment(_a0 *model.FormationAssignment)
SetAssignment provides a mock function with given fields: _a0
func (*TemplateInput) SetReverseAssignment ¶
func (_m *TemplateInput) SetReverseAssignment(_a0 *model.FormationAssignment)
SetReverseAssignment provides a mock function with given fields: _a0
type TenantRepository ¶
TenantRepository is an autogenerated mock type for the tenantRepository type
func NewTenantRepository ¶
func NewTenantRepository(t interface { mock.TestingT Cleanup(func()) }) *TenantRepository
NewTenantRepository creates a new instance of TenantRepository. 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 (*TenantRepository) Get ¶
func (_m *TenantRepository) Get(ctx context.Context, id string) (*model.BusinessTenantMapping, error)
Get provides a mock function with given fields: ctx, id
func (*TenantRepository) GetParentsRecursivelyByExternalTenant ¶
func (_m *TenantRepository) GetParentsRecursivelyByExternalTenant(ctx context.Context, externalTenant string) ([]*model.BusinessTenantMapping, error)
GetParentsRecursivelyByExternalTenant provides a mock function with given fields: ctx, externalTenant
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 WebhookConverter ¶
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.
type WebhookRepository ¶
WebhookRepository is an autogenerated mock type for the webhookRepository type
func NewWebhookRepository ¶
func NewWebhookRepository(t interface { mock.TestingT Cleanup(func()) }) *WebhookRepository
NewWebhookRepository creates a new instance of WebhookRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*WebhookRepository) GetByIDAndWebhookType ¶
func (_m *WebhookRepository) GetByIDAndWebhookType(ctx context.Context, tenant string, objectID string, objectType model.WebhookReferenceObjectType, webhookType model.WebhookType) (*model.Webhook, error)
GetByIDAndWebhookType provides a mock function with given fields: ctx, tenant, objectID, objectType, webhookType
Source Files ¶
- application_converter.go
- application_repo.go
- application_repository.go
- assignment_operation_converter.go
- assignment_operation_service.go
- constraint_engine.go
- entity_converter.go
- fa_notification_service.go
- formation_assignment_repository.go
- formation_repository.go
- label_service.go
- notification_builder.go
- notification_service.go
- runtime_context_converter.go
- runtime_context_repo.go
- runtime_context_repository.go
- runtime_converter.go
- runtime_repo.go
- runtime_repository.go
- status_service.go
- template_input.go
- tenant_repository.go
- uid_service.go
- webhook_converter.go
- webhook_repository.go