Documentation ¶
Index ¶
- type EntityConverter
- type FormationService
- func (_m *FormationService) AssignFormation(ctx context.Context, tnt string, objectID string, ...) (*model.Formation, error)
- func (_m *FormationService) GetFormationsForObject(ctx context.Context, tnt string, objType model.LabelableObject, objID string) ([]string, error)
- func (_m *FormationService) GetScenariosFromMatchingASAs(ctx context.Context, objectID string, objType graphql.FormationObjectType) ([]string, error)
- func (_m *FormationService) UnassignFormation(ctx context.Context, tnt string, objectID string, ...) (*model.Formation, error)
- type LabelRepository
- type LabelUpsertService
- type RuntimeContextConverter
- func (_m *RuntimeContextConverter) InputFromGraphQL(in graphql.RuntimeContextInput) model.RuntimeContextInput
- func (_m *RuntimeContextConverter) InputFromGraphQLWithRuntimeID(in graphql.RuntimeContextInput, runtimeID string) model.RuntimeContextInput
- func (_m *RuntimeContextConverter) ToGraphQL(in *model.RuntimeContext) *graphql.RuntimeContext
- type RuntimeContextRepository
- func (_m *RuntimeContextRepository) Create(ctx context.Context, tenant string, item *model.RuntimeContext) error
- func (_m *RuntimeContextRepository) Delete(ctx context.Context, tenant string, id string) error
- func (_m *RuntimeContextRepository) Exists(ctx context.Context, tenant string, id string) (bool, error)
- func (_m *RuntimeContextRepository) GetByID(ctx context.Context, tenant string, id string) (*model.RuntimeContext, error)
- func (_m *RuntimeContextRepository) GetForRuntime(ctx context.Context, tenant string, id string, runtimeID string) (*model.RuntimeContext, error)
- func (_m *RuntimeContextRepository) List(ctx context.Context, runtimeID string, tenant string, ...) (*model.RuntimeContextPage, error)
- func (_m *RuntimeContextRepository) ListAllForRuntime(ctx context.Context, tenant string, runtimeID string) ([]*model.RuntimeContext, error)
- func (_m *RuntimeContextRepository) ListByRuntimeIDs(ctx context.Context, tenantID string, runtimeIDs []string, pageSize int, ...) ([]*model.RuntimeContextPage, error)
- func (_m *RuntimeContextRepository) Update(ctx context.Context, tenant string, item *model.RuntimeContext) error
- type RuntimeContextService
- func (_m *RuntimeContextService) Create(ctx context.Context, in model.RuntimeContextInput) (string, error)
- func (_m *RuntimeContextService) Delete(ctx context.Context, id string) error
- func (_m *RuntimeContextService) GetByID(ctx context.Context, id string) (*model.RuntimeContext, error)
- func (_m *RuntimeContextService) ListLabels(ctx context.Context, runtimeID string) (map[string]*model.Label, error)
- func (_m *RuntimeContextService) Update(ctx context.Context, id string, in model.RuntimeContextInput) error
- type RuntimeRepository
- type TenantService
- 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 *runtimectx.RuntimeContext) *model.RuntimeContext
FromEntity provides a mock function with given fields: entity
func (*EntityConverter) ToEntity ¶
func (_m *EntityConverter) ToEntity(in *model.RuntimeContext) *runtimectx.RuntimeContext
ToEntity provides a mock function with given fields: in
type FormationService ¶
FormationService is an autogenerated mock type for the formationService type
func NewFormationService ¶
func NewFormationService(t interface { mock.TestingT Cleanup(func()) }) *FormationService
NewFormationService creates a new instance of FormationService. 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 (*FormationService) AssignFormation ¶
func (_m *FormationService) AssignFormation(ctx context.Context, tnt string, objectID string, objectType graphql.FormationObjectType, formation model.Formation) (*model.Formation, error)
AssignFormation provides a mock function with given fields: ctx, tnt, objectID, objectType, formation
func (*FormationService) GetFormationsForObject ¶
func (_m *FormationService) GetFormationsForObject(ctx context.Context, tnt string, objType model.LabelableObject, objID string) ([]string, error)
GetFormationsForObject provides a mock function with given fields: ctx, tnt, objType, objID
func (*FormationService) GetScenariosFromMatchingASAs ¶
func (_m *FormationService) GetScenariosFromMatchingASAs(ctx context.Context, objectID string, objType graphql.FormationObjectType) ([]string, error)
GetScenariosFromMatchingASAs provides a mock function with given fields: ctx, objectID, objType
func (*FormationService) UnassignFormation ¶
func (_m *FormationService) UnassignFormation(ctx context.Context, tnt string, objectID string, objectType graphql.FormationObjectType, formation model.Formation) (*model.Formation, error)
UnassignFormation provides a mock function with given fields: ctx, tnt, objectID, objectType, formation
type LabelRepository ¶
LabelRepository is an autogenerated mock type for the LabelRepository type
func NewLabelRepository ¶
func NewLabelRepository(t interface { mock.TestingT Cleanup(func()) }) *LabelRepository
NewLabelRepository creates a new instance of LabelRepository. 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 (*LabelRepository) ListForObject ¶
func (_m *LabelRepository) ListForObject(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string) (map[string]*model.Label, error)
ListForObject provides a mock function with given fields: ctx, tenant, objectType, objectID
type LabelUpsertService ¶
LabelUpsertService is an autogenerated mock type for the LabelUpsertService type
func NewLabelUpsertService ¶
func NewLabelUpsertService(t interface { mock.TestingT Cleanup(func()) }) *LabelUpsertService
NewLabelUpsertService creates a new instance of LabelUpsertService. 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 (*LabelUpsertService) UpsertLabel ¶
func (_m *LabelUpsertService) UpsertLabel(ctx context.Context, tenant string, labelInput *model.LabelInput) error
UpsertLabel provides a mock function with given fields: ctx, tenant, labelInput
func (*LabelUpsertService) UpsertMultipleLabels ¶
func (_m *LabelUpsertService) UpsertMultipleLabels(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, labels map[string]interface{}) error
UpsertMultipleLabels provides a mock function with given fields: ctx, tenant, objectType, objectID, labels
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) InputFromGraphQL ¶
func (_m *RuntimeContextConverter) InputFromGraphQL(in graphql.RuntimeContextInput) model.RuntimeContextInput
InputFromGraphQL provides a mock function with given fields: in
func (*RuntimeContextConverter) InputFromGraphQLWithRuntimeID ¶
func (_m *RuntimeContextConverter) InputFromGraphQLWithRuntimeID(in graphql.RuntimeContextInput, runtimeID string) model.RuntimeContextInput
InputFromGraphQLWithRuntimeID provides a mock function with given fields: in, runtimeID
func (*RuntimeContextConverter) ToGraphQL ¶
func (_m *RuntimeContextConverter) ToGraphQL(in *model.RuntimeContext) *graphql.RuntimeContext
ToGraphQL provides a mock function with given fields: in
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) Create ¶
func (_m *RuntimeContextRepository) Create(ctx context.Context, tenant string, item *model.RuntimeContext) error
Create provides a mock function with given fields: ctx, tenant, item
func (*RuntimeContextRepository) Delete ¶
Delete provides a mock function with given fields: ctx, tenant, id
func (*RuntimeContextRepository) Exists ¶
func (_m *RuntimeContextRepository) Exists(ctx context.Context, tenant string, id string) (bool, error)
Exists provides a mock function with given fields: ctx, tenant, id
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) GetForRuntime ¶
func (_m *RuntimeContextRepository) GetForRuntime(ctx context.Context, tenant string, id string, runtimeID string) (*model.RuntimeContext, error)
GetForRuntime provides a mock function with given fields: ctx, tenant, id, runtimeID
func (*RuntimeContextRepository) List ¶
func (_m *RuntimeContextRepository) List(ctx context.Context, runtimeID string, tenant string, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.RuntimeContextPage, error)
List provides a mock function with given fields: ctx, runtimeID, tenant, filter, pageSize, cursor
func (*RuntimeContextRepository) ListAllForRuntime ¶
func (_m *RuntimeContextRepository) ListAllForRuntime(ctx context.Context, tenant string, runtimeID string) ([]*model.RuntimeContext, error)
ListAllForRuntime provides a mock function with given fields: ctx, tenant, runtimeID
func (*RuntimeContextRepository) ListByRuntimeIDs ¶
func (_m *RuntimeContextRepository) ListByRuntimeIDs(ctx context.Context, tenantID string, runtimeIDs []string, pageSize int, cursor string) ([]*model.RuntimeContextPage, error)
ListByRuntimeIDs provides a mock function with given fields: ctx, tenantID, runtimeIDs, pageSize, cursor
func (*RuntimeContextRepository) Update ¶
func (_m *RuntimeContextRepository) Update(ctx context.Context, tenant string, item *model.RuntimeContext) error
Update provides a mock function with given fields: ctx, tenant, item
type RuntimeContextService ¶
RuntimeContextService is an autogenerated mock type for the RuntimeContextService type
func NewRuntimeContextService ¶
func NewRuntimeContextService(t interface { mock.TestingT Cleanup(func()) }) *RuntimeContextService
NewRuntimeContextService creates a new instance of RuntimeContextService. 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 (*RuntimeContextService) Create ¶
func (_m *RuntimeContextService) Create(ctx context.Context, in model.RuntimeContextInput) (string, error)
Create provides a mock function with given fields: ctx, in
func (*RuntimeContextService) Delete ¶
func (_m *RuntimeContextService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*RuntimeContextService) GetByID ¶
func (_m *RuntimeContextService) GetByID(ctx context.Context, id string) (*model.RuntimeContext, error)
GetByID provides a mock function with given fields: ctx, id
func (*RuntimeContextService) ListLabels ¶
func (_m *RuntimeContextService) ListLabels(ctx context.Context, runtimeID string) (map[string]*model.Label, error)
ListLabels provides a mock function with given fields: ctx, runtimeID
func (*RuntimeContextService) Update ¶
func (_m *RuntimeContextService) Update(ctx context.Context, id string, in model.RuntimeContextInput) error
Update provides a mock function with given fields: ctx, id, in
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) OwnerExists ¶
func (_m *RuntimeRepository) OwnerExists(ctx context.Context, tenant string, id string) (bool, error)
OwnerExists provides a mock function with given fields: ctx, tenant, id
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) GetTenantByID ¶
func (_m *TenantService) GetTenantByID(ctx context.Context, id string) (*model.BusinessTenantMapping, error)
GetTenantByID provides a mock function with given fields: ctx, id
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: