Documentation ¶
Index ¶
- type EntityConverter
- type FormationConstraintConverter
- type FormationConstraintService
- type FormationTemplateConverter
- func (_m *FormationTemplateConverter) FromInputGraphQL(in *graphql.FormationTemplateInput) (*model.FormationTemplateInput, error)
- func (_m *FormationTemplateConverter) FromModelInputToModel(in *model.FormationTemplateInput, id string, tenantID string) *model.FormationTemplate
- func (_m *FormationTemplateConverter) MultipleToGraphQL(in []*model.FormationTemplate) ([]*graphql.FormationTemplate, error)
- func (_m *FormationTemplateConverter) ToGraphQL(in *model.FormationTemplate) (*graphql.FormationTemplate, error)
- type FormationTemplateRepository
- func (_m *FormationTemplateRepository) Create(ctx context.Context, item *model.FormationTemplate) error
- func (_m *FormationTemplateRepository) Delete(ctx context.Context, id string, tenantID string) error
- func (_m *FormationTemplateRepository) Exists(ctx context.Context, id string) (bool, error)
- func (_m *FormationTemplateRepository) Get(ctx context.Context, id string) (*model.FormationTemplate, error)
- func (_m *FormationTemplateRepository) List(ctx context.Context, name *string, tenantID string, pageSize int, ...) (*model.FormationTemplatePage, error)
- func (_m *FormationTemplateRepository) Update(ctx context.Context, _a1 *model.FormationTemplate) error
- type FormationTemplateService
- func (_m *FormationTemplateService) Create(ctx context.Context, in *model.FormationTemplateInput) (string, error)
- func (_m *FormationTemplateService) Delete(ctx context.Context, id string) error
- func (_m *FormationTemplateService) Get(ctx context.Context, id string) (*model.FormationTemplate, error)
- func (_m *FormationTemplateService) List(ctx context.Context, name *string, pageSize int, cursor string) (*model.FormationTemplatePage, error)
- func (_m *FormationTemplateService) ListWebhooksForFormationTemplate(ctx context.Context, formationTemplateID string) ([]*model.Webhook, error)
- func (_m *FormationTemplateService) Update(ctx context.Context, id string, in *model.FormationTemplateInput) error
- type TenantService
- type UIDService
- type WebhookConverter
- type WebhookRepository
- type WebhookService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 *formationtemplate.Entity) (*model.FormationTemplate, error)
FromEntity provides a mock function with given fields: entity
func (*EntityConverter) ToEntity ¶
func (_m *EntityConverter) ToEntity(in *model.FormationTemplate) (*formationtemplate.Entity, error)
ToEntity provides a mock function with given fields: in
type FormationConstraintConverter ¶
FormationConstraintConverter is an autogenerated mock type for the FormationConstraintConverter type
func NewFormationConstraintConverter ¶
func NewFormationConstraintConverter(t interface { mock.TestingT Cleanup(func()) }) *FormationConstraintConverter
NewFormationConstraintConverter creates a new instance of FormationConstraintConverter. 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 (*FormationConstraintConverter) MultipleToGraphQL ¶
func (_m *FormationConstraintConverter) MultipleToGraphQL(in []*model.FormationConstraint) []*graphql.FormationConstraint
MultipleToGraphQL provides a mock function with given fields: in
type FormationConstraintService ¶
FormationConstraintService is an autogenerated mock type for the FormationConstraintService type
func NewFormationConstraintService ¶
func NewFormationConstraintService(t interface { mock.TestingT Cleanup(func()) }) *FormationConstraintService
NewFormationConstraintService creates a new instance of FormationConstraintService. 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 (*FormationConstraintService) ListByFormationTemplateIDs ¶
func (_m *FormationConstraintService) ListByFormationTemplateIDs(ctx context.Context, formationTemplateIDs []string) ([][]*model.FormationConstraint, error)
ListByFormationTemplateIDs provides a mock function with given fields: ctx, formationTemplateIDs
type FormationTemplateConverter ¶
FormationTemplateConverter is an autogenerated mock type for the FormationTemplateConverter type
func NewFormationTemplateConverter ¶
func NewFormationTemplateConverter(t interface { mock.TestingT Cleanup(func()) }) *FormationTemplateConverter
NewFormationTemplateConverter creates a new instance of FormationTemplateConverter. 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 (*FormationTemplateConverter) FromInputGraphQL ¶
func (_m *FormationTemplateConverter) FromInputGraphQL(in *graphql.FormationTemplateInput) (*model.FormationTemplateInput, error)
FromInputGraphQL provides a mock function with given fields: in
func (*FormationTemplateConverter) FromModelInputToModel ¶
func (_m *FormationTemplateConverter) FromModelInputToModel(in *model.FormationTemplateInput, id string, tenantID string) *model.FormationTemplate
FromModelInputToModel provides a mock function with given fields: in, id, tenantID
func (*FormationTemplateConverter) MultipleToGraphQL ¶
func (_m *FormationTemplateConverter) MultipleToGraphQL(in []*model.FormationTemplate) ([]*graphql.FormationTemplate, error)
MultipleToGraphQL provides a mock function with given fields: in
func (*FormationTemplateConverter) ToGraphQL ¶
func (_m *FormationTemplateConverter) ToGraphQL(in *model.FormationTemplate) (*graphql.FormationTemplate, error)
ToGraphQL provides a mock function with given fields: in
type FormationTemplateRepository ¶
FormationTemplateRepository is an autogenerated mock type for the FormationTemplateRepository type
func NewFormationTemplateRepository ¶
func NewFormationTemplateRepository(t interface { mock.TestingT Cleanup(func()) }) *FormationTemplateRepository
NewFormationTemplateRepository creates a new instance of FormationTemplateRepository. 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 (*FormationTemplateRepository) Create ¶
func (_m *FormationTemplateRepository) Create(ctx context.Context, item *model.FormationTemplate) error
Create provides a mock function with given fields: ctx, item
func (*FormationTemplateRepository) Delete ¶
func (_m *FormationTemplateRepository) Delete(ctx context.Context, id string, tenantID string) error
Delete provides a mock function with given fields: ctx, id, tenantID
func (*FormationTemplateRepository) Exists ¶
Exists provides a mock function with given fields: ctx, id
func (*FormationTemplateRepository) Get ¶
func (_m *FormationTemplateRepository) Get(ctx context.Context, id string) (*model.FormationTemplate, error)
Get provides a mock function with given fields: ctx, id
func (*FormationTemplateRepository) List ¶
func (_m *FormationTemplateRepository) List(ctx context.Context, name *string, tenantID string, pageSize int, cursor string) (*model.FormationTemplatePage, error)
List provides a mock function with given fields: ctx, name, tenantID, pageSize, cursor
func (*FormationTemplateRepository) Update ¶
func (_m *FormationTemplateRepository) Update(ctx context.Context, _a1 *model.FormationTemplate) error
Update provides a mock function with given fields: ctx, _a1
type FormationTemplateService ¶
FormationTemplateService is an autogenerated mock type for the FormationTemplateService type
func NewFormationTemplateService ¶
func NewFormationTemplateService(t interface { mock.TestingT Cleanup(func()) }) *FormationTemplateService
NewFormationTemplateService creates a new instance of FormationTemplateService. 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 (*FormationTemplateService) Create ¶
func (_m *FormationTemplateService) Create(ctx context.Context, in *model.FormationTemplateInput) (string, error)
Create provides a mock function with given fields: ctx, in
func (*FormationTemplateService) Delete ¶
func (_m *FormationTemplateService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*FormationTemplateService) Get ¶
func (_m *FormationTemplateService) Get(ctx context.Context, id string) (*model.FormationTemplate, error)
Get provides a mock function with given fields: ctx, id
func (*FormationTemplateService) List ¶
func (_m *FormationTemplateService) List(ctx context.Context, name *string, pageSize int, cursor string) (*model.FormationTemplatePage, error)
List provides a mock function with given fields: ctx, name, pageSize, cursor
func (*FormationTemplateService) ListWebhooksForFormationTemplate ¶
func (_m *FormationTemplateService) ListWebhooksForFormationTemplate(ctx context.Context, formationTemplateID string) ([]*model.Webhook, error)
ListWebhooksForFormationTemplate provides a mock function with given fields: ctx, formationTemplateID
func (*FormationTemplateService) Update ¶
func (_m *FormationTemplateService) Update(ctx context.Context, id string, in *model.FormationTemplateInput) error
Update provides a mock function with given fields: ctx, id, in
type TenantService ¶
TenantService is an autogenerated mock type for the TenantService type
func NewTenantService ¶
func NewTenantService(t interface { mock.TestingT Cleanup(func()) }) *TenantService
NewTenantService creates a new instance of TenantService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TenantService) ExtractTenantIDForTenantScopedFormationTemplates ¶
func (_m *TenantService) ExtractTenantIDForTenantScopedFormationTemplates(ctx context.Context) (string, error)
ExtractTenantIDForTenantScopedFormationTemplates provides a mock function with given fields: ctx
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.
func (*WebhookConverter) MultipleInputFromGraphQL ¶
func (_m *WebhookConverter) MultipleInputFromGraphQL(in []*graphql.WebhookInput) ([]*model.WebhookInput, error)
MultipleInputFromGraphQL provides a mock function with given fields: in
func (*WebhookConverter) MultipleToGraphQL ¶
MultipleToGraphQL provides a mock function with given fields: in
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) CreateMany ¶
func (_m *WebhookRepository) CreateMany(ctx context.Context, tenant string, items []*model.Webhook) error
CreateMany provides a mock function with given fields: ctx, tenant, items
type WebhookService ¶
WebhookService is an autogenerated mock type for the WebhookService type
func NewWebhookService ¶
func NewWebhookService(t interface { mock.TestingT Cleanup(func()) }) *WebhookService
NewWebhookService creates a new instance of WebhookService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*WebhookService) ListForFormationTemplate ¶
func (_m *WebhookService) ListForFormationTemplate(ctx context.Context, tenant string, formationTemplateID string) ([]*model.Webhook, error)
ListForFormationTemplate provides a mock function with given fields: ctx, tenant, formationTemplateID