automock

package
v0.0.0-...-0640eb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityConverter

type EntityConverter struct {
	mock.Mock
}

EntityConverter is an autogenerated mock type for the EntityConverter type

func (*EntityConverter) FromEntity

func (_m *EntityConverter) FromEntity(in labeldef.Entity) (model.LabelDefinition, error)

FromEntity provides a mock function with given fields: in

func (*EntityConverter) ToEntity

ToEntity provides a mock function with given fields: in

type LabelRepository

type LabelRepository struct {
	mock.Mock
}

LabelRepository is an autogenerated mock type for the LabelRepository type

func (*LabelRepository) Delete

func (_m *LabelRepository) Delete(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, key string) error

Delete provides a mock function with given fields: ctx, tenant, objectType, objectID, key

func (*LabelRepository) DeleteAll

func (_m *LabelRepository) DeleteAll(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string) error

DeleteAll provides a mock function with given fields: ctx, tenant, objectType, objectID

func (*LabelRepository) DeleteByKey

func (_m *LabelRepository) DeleteByKey(ctx context.Context, tenant string, key string) error

DeleteByKey provides a mock function with given fields: ctx, tenant, key

func (*LabelRepository) GetByKey

func (_m *LabelRepository) GetByKey(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, key string) (*model.Label, error)

GetByKey provides a mock function with given fields: ctx, tenant, objectType, objectID, key

func (*LabelRepository) ListByKey

func (_m *LabelRepository) ListByKey(ctx context.Context, tenant string, key string) ([]*model.Label, error)

ListByKey provides a mock function with given fields: ctx, tenant, key

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 ModelConverter

type ModelConverter struct {
	mock.Mock
}

ModelConverter is an autogenerated mock type for the ModelConverter type

func (*ModelConverter) FromGraphQL

func (_m *ModelConverter) FromGraphQL(input graphql.LabelDefinitionInput, tenant string) (model.LabelDefinition, error)

FromGraphQL provides a mock function with given fields: input, tenant

func (*ModelConverter) ToGraphQL

func (_m *ModelConverter) ToGraphQL(definition model.LabelDefinition) (graphql.LabelDefinition, error)

ToGraphQL provides a mock function with given fields: definition

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) Create

func (_m *Repository) Create(ctx context.Context, def model.LabelDefinition) error

Create provides a mock function with given fields: ctx, def

func (*Repository) DeleteByKey

func (_m *Repository) DeleteByKey(ctx context.Context, tenant string, key string) error

DeleteByKey provides a mock function with given fields: ctx, tenant, key

func (*Repository) Exists

func (_m *Repository) Exists(ctx context.Context, tenant string, key string) (bool, error)

Exists provides a mock function with given fields: ctx, tenant, key

func (*Repository) GetByKey

func (_m *Repository) GetByKey(ctx context.Context, tenant string, key string) (*model.LabelDefinition, error)

GetByKey provides a mock function with given fields: ctx, tenant, key

func (*Repository) List

func (_m *Repository) List(ctx context.Context, tenant string) ([]model.LabelDefinition, error)

List provides a mock function with given fields: ctx, tenant

func (*Repository) Update

func (_m *Repository) Update(ctx context.Context, def model.LabelDefinition) error

Update provides a mock function with given fields: ctx, def

func (*Repository) Upsert

func (_m *Repository) Upsert(ctx context.Context, def model.LabelDefinition) error

Upsert provides a mock function with given fields: ctx, def

type ScenarioAssignmentLister

type ScenarioAssignmentLister struct {
	mock.Mock
}

ScenarioAssignmentLister is an autogenerated mock type for the ScenarioAssignmentLister type

func (*ScenarioAssignmentLister) List

List provides a mock function with given fields: ctx, tenant, pageSize, cursor

type ScenariosService

type ScenariosService struct {
	mock.Mock
}

ScenariosService is an autogenerated mock type for the ScenariosService type

func (*ScenariosService) EnsureScenariosLabelDefinitionExists

func (_m *ScenariosService) EnsureScenariosLabelDefinitionExists(ctx context.Context, tenant string) error

EnsureScenariosLabelDefinitionExists provides a mock function with given fields: ctx, tenant

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) Create

Create provides a mock function with given fields: ctx, ld

func (*Service) Delete

func (_m *Service) Delete(ctx context.Context, tenant string, key string, deleteRelatedLabels bool) error

Delete provides a mock function with given fields: ctx, tenant, key, deleteRelatedLabels

func (*Service) Get

func (_m *Service) Get(ctx context.Context, tenant string, key string) (*model.LabelDefinition, error)

Get provides a mock function with given fields: ctx, tenant, key

func (*Service) List

func (_m *Service) List(ctx context.Context, tenant string) ([]model.LabelDefinition, error)

List provides a mock function with given fields: ctx, tenant

func (*Service) Update

func (_m *Service) Update(ctx context.Context, ld model.LabelDefinition) error

Update provides a mock function with given fields: ctx, ld

type UIDService

type UIDService struct {
	mock.Mock
}

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:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL