mocks

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerService

type HandlerService struct {
	mock.Mock
}

HandlerService is an autogenerated mock type for the HandlerService type

func NewHandlerService

func NewHandlerService(t interface {
	mock.TestingT
	Cleanup(func())
}) *HandlerService

NewHandlerService creates a new instance of HandlerService. 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 (*HandlerService) CheckHealth

func (_m *HandlerService) CheckHealth(ctx context.Context) error

CheckHealth provides a mock function with given fields: ctx

func (*HandlerService) CheckHealthLive

func (_m *HandlerService) CheckHealthLive(ctx context.Context) error

CheckHealthLive provides a mock function with given fields: ctx

func (*HandlerService) CheckHealthReady

func (_m *HandlerService) CheckHealthReady(ctx context.Context) error

CheckHealthReady provides a mock function with given fields: ctx

func (*HandlerService) CheckHealthStartup

func (_m *HandlerService) CheckHealthStartup(ctx context.Context) error

CheckHealthStartup provides a mock function with given fields: ctx

func (*HandlerService) DeleteAttachment

func (_m *HandlerService) DeleteAttachment(ctx context.Context, repo string, ref model.AttachmentContainerRef, attachmentFileName string) error

DeleteAttachment provides a mock function with given fields: ctx, repo, ref, attachmentFileName

func (*HandlerService) DeleteThingModel

func (_m *HandlerService) DeleteThingModel(ctx context.Context, repo string, tmID string) error

DeleteThingModel provides a mock function with given fields: ctx, repo, tmID

func (*HandlerService) FetchAttachment

func (_m *HandlerService) FetchAttachment(ctx context.Context, repo string, ref model.AttachmentContainerRef, attachmentFileName string, concat bool) ([]byte, error)

FetchAttachment provides a mock function with given fields: ctx, repo, ref, attachmentFileName, concat

func (*HandlerService) FetchLatestThingModel

func (_m *HandlerService) FetchLatestThingModel(ctx context.Context, repo string, fetchName string, restoreId bool) ([]byte, error)

FetchLatestThingModel provides a mock function with given fields: ctx, repo, fetchName, restoreId

func (*HandlerService) FetchThingModel

func (_m *HandlerService) FetchThingModel(ctx context.Context, repo string, tmID string, restoreId bool) ([]byte, error)

FetchThingModel provides a mock function with given fields: ctx, repo, tmID, restoreId

func (*HandlerService) FindInventoryEntries

func (_m *HandlerService) FindInventoryEntries(ctx context.Context, repo string, name string) ([]model.FoundEntry, error)

FindInventoryEntries provides a mock function with given fields: ctx, repo, name

func (*HandlerService) GetCompletions

func (_m *HandlerService) GetCompletions(ctx context.Context, kind string, args []string, toComplete string) ([]string, error)

GetCompletions provides a mock function with given fields: ctx, kind, args, toComplete

func (*HandlerService) GetLatestTMMetadata

func (_m *HandlerService) GetLatestTMMetadata(ctx context.Context, repo string, fetchName string) (model.FoundVersion, error)

GetLatestTMMetadata provides a mock function with given fields: ctx, repo, fetchName

func (*HandlerService) GetTMMetadata

func (_m *HandlerService) GetTMMetadata(ctx context.Context, repo string, tmID string) ([]model.FoundVersion, error)

GetTMMetadata provides a mock function with given fields: ctx, repo, tmID

func (*HandlerService) ImportAttachment

func (_m *HandlerService) ImportAttachment(ctx context.Context, repo string, ref model.AttachmentContainerRef, attachmentFileName string, content []byte, contentType string, force bool) error

ImportAttachment provides a mock function with given fields: ctx, repo, ref, attachmentFileName, content, contentType, force

func (*HandlerService) ImportThingModel

func (_m *HandlerService) ImportThingModel(ctx context.Context, repo string, file []byte, opts repos.ImportOptions) (repos.ImportResult, error)

ImportThingModel provides a mock function with given fields: ctx, repo, file, opts

func (*HandlerService) ListAuthors

func (_m *HandlerService) ListAuthors(ctx context.Context, filters *model.Filters) ([]string, error)

ListAuthors provides a mock function with given fields: ctx, filters

func (*HandlerService) ListInventory

func (_m *HandlerService) ListInventory(ctx context.Context, repo string, filters *model.Filters) (*model.SearchResult, error)

ListInventory provides a mock function with given fields: ctx, repo, filters

func (*HandlerService) ListManufacturers

func (_m *HandlerService) ListManufacturers(ctx context.Context, filters *model.Filters) ([]string, error)

ListManufacturers provides a mock function with given fields: ctx, filters

func (*HandlerService) ListMpns

func (_m *HandlerService) ListMpns(ctx context.Context, filters *model.Filters) ([]string, error)

ListMpns provides a mock function with given fields: ctx, filters

func (*HandlerService) ListRepos

func (_m *HandlerService) ListRepos(ctx context.Context) ([]model.RepoDescription, error)

ListRepos provides a mock function with given fields: ctx

func (*HandlerService) SearchInventory added in v0.1.3

func (_m *HandlerService) SearchInventory(ctx context.Context, repo string, query string) (*model.SearchResult, error)

SearchInventory provides a mock function with given fields: ctx, repo, query

Jump to

Keyboard shortcuts

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