automock

package
v0.0.0-...-6d13c91 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapabilityConverter

type CapabilityConverter struct {
	mock.Mock
}

CapabilityConverter is an autogenerated mock type for the CapabilityConverter type

func NewCapabilityConverter

func NewCapabilityConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *CapabilityConverter

NewCapabilityConverter creates a new instance of CapabilityConverter. 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 (*CapabilityConverter) FromEntity

func (_m *CapabilityConverter) FromEntity(entity *capability.Entity) *model.Capability

FromEntity provides a mock function with given fields: entity

func (*CapabilityConverter) ToEntity

func (_m *CapabilityConverter) ToEntity(apiModel *model.Capability) *capability.Entity

ToEntity provides a mock function with given fields: apiModel

type CapabilityRepository

type CapabilityRepository struct {
	mock.Mock
}

CapabilityRepository is an autogenerated mock type for the CapabilityRepository type

func NewCapabilityRepository

func NewCapabilityRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *CapabilityRepository

NewCapabilityRepository creates a new instance of CapabilityRepository. 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 (*CapabilityRepository) Create

func (_m *CapabilityRepository) Create(ctx context.Context, tenant string, item *model.Capability) error

Create provides a mock function with given fields: ctx, tenant, item

func (*CapabilityRepository) CreateGlobal

func (_m *CapabilityRepository) CreateGlobal(ctx context.Context, item *model.Capability) error

CreateGlobal provides a mock function with given fields: ctx, item

func (*CapabilityRepository) Delete

func (_m *CapabilityRepository) Delete(ctx context.Context, tenantID string, id string) error

Delete provides a mock function with given fields: ctx, tenantID, id

func (*CapabilityRepository) DeleteGlobal

func (_m *CapabilityRepository) DeleteGlobal(ctx context.Context, id string) error

DeleteGlobal provides a mock function with given fields: ctx, id

func (*CapabilityRepository) GetByID

func (_m *CapabilityRepository) GetByID(ctx context.Context, tenantID string, id string) (*model.Capability, error)

GetByID provides a mock function with given fields: ctx, tenantID, id

func (*CapabilityRepository) GetByIDGlobal

func (_m *CapabilityRepository) GetByIDGlobal(ctx context.Context, id string) (*model.Capability, error)

GetByIDGlobal provides a mock function with given fields: ctx, id

func (*CapabilityRepository) ListByResourceID

func (_m *CapabilityRepository) ListByResourceID(ctx context.Context, tenantID string, resourceType resource.Type, resourceID string) ([]*model.Capability, error)

ListByResourceID provides a mock function with given fields: ctx, tenantID, resourceType, resourceID

func (*CapabilityRepository) Update

func (_m *CapabilityRepository) Update(ctx context.Context, tenant string, item *model.Capability) error

Update provides a mock function with given fields: ctx, tenant, item

func (*CapabilityRepository) UpdateGlobal

func (_m *CapabilityRepository) UpdateGlobal(ctx context.Context, item *model.Capability) error

UpdateGlobal provides a mock function with given fields: ctx, item

type SpecService

type SpecService struct {
	mock.Mock
}

SpecService is an autogenerated mock type for the SpecService type

func NewSpecService

func NewSpecService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SpecService

NewSpecService creates a new instance of SpecService. 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 (*SpecService) CreateByReferenceObjectID

func (_m *SpecService) CreateByReferenceObjectID(ctx context.Context, in model.SpecInput, resourceType resource.Type, objectType model.SpecReferenceObjectType, objectID string) (string, error)

CreateByReferenceObjectID provides a mock function with given fields: ctx, in, resourceType, objectType, objectID

func (*SpecService) GetByReferenceObjectID

func (_m *SpecService) GetByReferenceObjectID(ctx context.Context, resourceType resource.Type, objectType model.SpecReferenceObjectType, objectID string) (*model.Spec, error)

GetByReferenceObjectID provides a mock function with given fields: ctx, resourceType, objectType, objectID

func (*SpecService) ListFetchRequestsByReferenceObjectIDs

func (_m *SpecService) ListFetchRequestsByReferenceObjectIDs(ctx context.Context, tenant string, objectIDs []string, objectType model.SpecReferenceObjectType) ([]*model.FetchRequest, error)

ListFetchRequestsByReferenceObjectIDs provides a mock function with given fields: ctx, tenant, objectIDs, objectType

func (*SpecService) RefetchSpec

func (_m *SpecService) RefetchSpec(ctx context.Context, id string, objectType model.SpecReferenceObjectType) (*model.Spec, error)

RefetchSpec provides a mock function with given fields: ctx, id, objectType

func (*SpecService) UpdateByReferenceObjectID

func (_m *SpecService) UpdateByReferenceObjectID(ctx context.Context, id string, in model.SpecInput, resourceType resource.Type, objectType model.SpecReferenceObjectType, objectID string) error

UpdateByReferenceObjectID provides a mock function with given fields: ctx, id, in, resourceType, objectType, objectID

type UIDService

type UIDService struct {
	mock.Mock
}

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 VersionConverter

type VersionConverter struct {
	mock.Mock
}

VersionConverter is an autogenerated mock type for the VersionConverter type

func NewVersionConverter

func NewVersionConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *VersionConverter

NewVersionConverter creates a new instance of VersionConverter. 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 (*VersionConverter) FromEntity

func (_m *VersionConverter) FromEntity(_a0 version.Version) *model.Version

FromEntity provides a mock function with given fields: _a0

func (*VersionConverter) ToEntity

func (_m *VersionConverter) ToEntity(_a0 model.Version) version.Version

ToEntity provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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