mocks

package
v0.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 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 AuthMiddleware added in v0.3.0

type AuthMiddleware struct {
	mock.Mock
}

AuthMiddleware is an autogenerated mock type for the AuthMiddleware type

func NewAuthMiddleware added in v0.3.0

func NewAuthMiddleware(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthMiddleware

NewAuthMiddleware creates a new instance of AuthMiddleware. 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 (*AuthMiddleware) NewAuthMiddleware added in v0.3.0

func (_m *AuthMiddleware) NewAuthMiddleware() middleware.Middleware

NewAuthMiddleware provides a mock function with given fields:

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) AddModuleDependencies added in v0.2.0

func (_m *RegistryRepository) AddModuleDependencies(ctx context.Context, name string, tag string, dependencies []*v1.Dependency) error

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

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) GetModuleDependencies added in v0.2.0

func (_m *RegistryRepository) GetModuleDependencies(ctx context.Context, name string, tag string) ([]*v1.Dependency, error)

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

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