mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegistryRepository

type RegistryRepository struct {
	mock.Mock
}

RegistryRepository is an autogenerated mock type for the RegistryRepository type

func NewRegistryRepository

func NewRegistryRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *RegistryRepository

NewRegistryRepository creates a new instance of RegistryRepository. 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 (*RegistryRepository) DeleteModule added in v0.1.0

func (_m *RegistryRepository) DeleteModule(ctx context.Context, name string) error

DeleteModule provides a mock function with given fields: ctx, name

func (*RegistryRepository) DeleteModuleTag added in v0.1.0

func (_m *RegistryRepository) DeleteModuleTag(ctx context.Context, name string, tag string) error

DeleteModuleTag provides a mock function with given fields: ctx, name, tag

func (*RegistryRepository) GetModule added in v0.1.0

func (_m *RegistryRepository) GetModule(ctx context.Context, name string) (*v1.Module, error)

GetModule provides a mock function with given fields: ctx, name

func (*RegistryRepository) ListModules added in v0.1.0

func (_m *RegistryRepository) ListModules(ctx context.Context, pageSize int, token string) ([]*v1.Module, string, error)

ListModules provides a mock function with given fields: ctx, pageSize, token

func (*RegistryRepository) PullModule added in v0.1.0

func (_m *RegistryRepository) PullModule(ctx context.Context, name string, tag string) (*v1.Module, []*v1.ProtoFile, error)

PullModule provides a mock function with given fields: ctx, name, tag

func (*RegistryRepository) PushModule added in v0.1.0

func (_m *RegistryRepository) PushModule(ctx context.Context, name string, tag string, protofiles []*v1.ProtoFile) (*v1.Module, error)

PushModule provides a mock function with given fields: ctx, name, tag, protofiles

func (*RegistryRepository) RegisterModule

func (_m *RegistryRepository) RegisterModule(ctx context.Context, moduleName string) error

RegisterModule provides a mock function with given fields: ctx, moduleName

Jump to

Keyboard shortcuts

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