Documentation ¶
Index ¶
- type EntityConverter
- type FormationConstraintConverter
- func (_m *FormationConstraintConverter) FromInputGraphQL(in *graphql.FormationConstraintInput) *model.FormationConstraintInput
- func (_m *FormationConstraintConverter) FromModelInputToModel(in *model.FormationConstraintInput, id string) *model.FormationConstraint
- func (_m *FormationConstraintConverter) MultipleToGraphQL(in []*model.FormationConstraint) []*graphql.FormationConstraint
- func (_m *FormationConstraintConverter) ToGraphQL(in *model.FormationConstraint) *graphql.FormationConstraint
- type FormationConstraintRepository
- func (_m *FormationConstraintRepository) Create(ctx context.Context, item *model.FormationConstraint) error
- func (_m *FormationConstraintRepository) Delete(ctx context.Context, id string) error
- func (_m *FormationConstraintRepository) Get(ctx context.Context, id string) (*model.FormationConstraint, error)
- func (_m *FormationConstraintRepository) ListAll(ctx context.Context) ([]*model.FormationConstraint, error)
- func (_m *FormationConstraintRepository) ListByIDsAndGlobal(ctx context.Context, formationConstraintIDs []string) ([]*model.FormationConstraint, error)
- func (_m *FormationConstraintRepository) ListMatchingFormationConstraints(ctx context.Context, formationConstraintIDs []string, ...) ([]*model.FormationConstraint, error)
- func (_m *FormationConstraintRepository) Update(ctx context.Context, _a1 *model.FormationConstraint) error
- type FormationConstraintService
- func (_m *FormationConstraintService) Create(ctx context.Context, in *model.FormationConstraintInput) (string, error)
- func (_m *FormationConstraintService) Delete(ctx context.Context, id string) error
- func (_m *FormationConstraintService) Get(ctx context.Context, id string) (*model.FormationConstraint, error)
- func (_m *FormationConstraintService) List(ctx context.Context) ([]*model.FormationConstraint, error)
- func (_m *FormationConstraintService) ListByFormationTemplateID(ctx context.Context, formationTemplateID string) ([]*model.FormationConstraint, error)
- func (_m *FormationConstraintService) Update(ctx context.Context, id string, in *model.FormationConstraintInput) error
- type FormationTemplateConstraintReferenceRepository
- func (_m *FormationTemplateConstraintReferenceRepository) ListByConstraintID(ctx context.Context, constraintID string) ([]*model.FormationTemplateConstraintReference, error)
- func (_m *FormationTemplateConstraintReferenceRepository) ListByFormationTemplateID(ctx context.Context, formationTemplateID string) ([]*model.FormationTemplateConstraintReference, error)
- func (_m *FormationTemplateConstraintReferenceRepository) ListByFormationTemplateIDs(ctx context.Context, formationTemplateIDs []string) ([]*model.FormationTemplateConstraintReference, error)
- type UidService
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 *formationconstraint.Entity) *model.FormationConstraint
FromEntity provides a mock function with given fields: entity
func (*EntityConverter) ToEntity ¶
func (_m *EntityConverter) ToEntity(in *model.FormationConstraint) *formationconstraint.Entity
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) FromInputGraphQL ¶
func (_m *FormationConstraintConverter) FromInputGraphQL(in *graphql.FormationConstraintInput) *model.FormationConstraintInput
FromInputGraphQL provides a mock function with given fields: in
func (*FormationConstraintConverter) FromModelInputToModel ¶
func (_m *FormationConstraintConverter) FromModelInputToModel(in *model.FormationConstraintInput, id string) *model.FormationConstraint
FromModelInputToModel provides a mock function with given fields: in, id
func (*FormationConstraintConverter) MultipleToGraphQL ¶
func (_m *FormationConstraintConverter) MultipleToGraphQL(in []*model.FormationConstraint) []*graphql.FormationConstraint
MultipleToGraphQL provides a mock function with given fields: in
func (*FormationConstraintConverter) ToGraphQL ¶
func (_m *FormationConstraintConverter) ToGraphQL(in *model.FormationConstraint) *graphql.FormationConstraint
ToGraphQL provides a mock function with given fields: in
type FormationConstraintRepository ¶
FormationConstraintRepository is an autogenerated mock type for the formationConstraintRepository type
func NewFormationConstraintRepository ¶
func NewFormationConstraintRepository(t interface { mock.TestingT Cleanup(func()) }) *FormationConstraintRepository
NewFormationConstraintRepository creates a new instance of FormationConstraintRepository. 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 (*FormationConstraintRepository) Create ¶
func (_m *FormationConstraintRepository) Create(ctx context.Context, item *model.FormationConstraint) error
Create provides a mock function with given fields: ctx, item
func (*FormationConstraintRepository) Delete ¶
func (_m *FormationConstraintRepository) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*FormationConstraintRepository) Get ¶
func (_m *FormationConstraintRepository) Get(ctx context.Context, id string) (*model.FormationConstraint, error)
Get provides a mock function with given fields: ctx, id
func (*FormationConstraintRepository) ListAll ¶
func (_m *FormationConstraintRepository) ListAll(ctx context.Context) ([]*model.FormationConstraint, error)
ListAll provides a mock function with given fields: ctx
func (*FormationConstraintRepository) ListByIDsAndGlobal ¶
func (_m *FormationConstraintRepository) ListByIDsAndGlobal(ctx context.Context, formationConstraintIDs []string) ([]*model.FormationConstraint, error)
ListByIDsAndGlobal provides a mock function with given fields: ctx, formationConstraintIDs
func (*FormationConstraintRepository) ListMatchingFormationConstraints ¶
func (_m *FormationConstraintRepository) ListMatchingFormationConstraints(ctx context.Context, formationConstraintIDs []string, location pkgformationconstraint.JoinPointLocation, details pkgformationconstraint.MatchingDetails) ([]*model.FormationConstraint, error)
ListMatchingFormationConstraints provides a mock function with given fields: ctx, formationConstraintIDs, location, details
func (*FormationConstraintRepository) Update ¶
func (_m *FormationConstraintRepository) Update(ctx context.Context, _a1 *model.FormationConstraint) error
Update provides a mock function with given fields: ctx, _a1
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) Create ¶
func (_m *FormationConstraintService) Create(ctx context.Context, in *model.FormationConstraintInput) (string, error)
Create provides a mock function with given fields: ctx, in
func (*FormationConstraintService) Delete ¶
func (_m *FormationConstraintService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*FormationConstraintService) Get ¶
func (_m *FormationConstraintService) Get(ctx context.Context, id string) (*model.FormationConstraint, error)
Get provides a mock function with given fields: ctx, id
func (*FormationConstraintService) List ¶
func (_m *FormationConstraintService) List(ctx context.Context) ([]*model.FormationConstraint, error)
List provides a mock function with given fields: ctx
func (*FormationConstraintService) ListByFormationTemplateID ¶
func (_m *FormationConstraintService) ListByFormationTemplateID(ctx context.Context, formationTemplateID string) ([]*model.FormationConstraint, error)
ListByFormationTemplateID provides a mock function with given fields: ctx, formationTemplateID
func (*FormationConstraintService) Update ¶
func (_m *FormationConstraintService) Update(ctx context.Context, id string, in *model.FormationConstraintInput) error
Update provides a mock function with given fields: ctx, id, in
type FormationTemplateConstraintReferenceRepository ¶
FormationTemplateConstraintReferenceRepository is an autogenerated mock type for the formationTemplateConstraintReferenceRepository type
func NewFormationTemplateConstraintReferenceRepository ¶
func NewFormationTemplateConstraintReferenceRepository(t interface { mock.TestingT Cleanup(func()) }) *FormationTemplateConstraintReferenceRepository
NewFormationTemplateConstraintReferenceRepository creates a new instance of FormationTemplateConstraintReferenceRepository. 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 (*FormationTemplateConstraintReferenceRepository) ListByConstraintID ¶
func (_m *FormationTemplateConstraintReferenceRepository) ListByConstraintID(ctx context.Context, constraintID string) ([]*model.FormationTemplateConstraintReference, error)
ListByConstraintID provides a mock function with given fields: ctx, constraintID
func (*FormationTemplateConstraintReferenceRepository) ListByFormationTemplateID ¶
func (_m *FormationTemplateConstraintReferenceRepository) ListByFormationTemplateID(ctx context.Context, formationTemplateID string) ([]*model.FormationTemplateConstraintReference, error)
ListByFormationTemplateID provides a mock function with given fields: ctx, formationTemplateID
func (*FormationTemplateConstraintReferenceRepository) ListByFormationTemplateIDs ¶
func (_m *FormationTemplateConstraintReferenceRepository) ListByFormationTemplateIDs(ctx context.Context, formationTemplateIDs []string) ([]*model.FormationTemplateConstraintReference, error)
ListByFormationTemplateIDs provides a mock function with given fields: ctx, formationTemplateIDs
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: