Documentation ¶
Index ¶
- type AuthMiddleware
- type RegistryRepository
- func (_m *RegistryRepository) AddModuleDependencies(ctx context.Context, name string, tag string, dependencies []*v1.Dependency) error
- func (_m *RegistryRepository) DeleteModule(ctx context.Context, name string) error
- func (_m *RegistryRepository) DeleteModuleTag(ctx context.Context, name string, tag string) error
- func (_m *RegistryRepository) GetModule(ctx context.Context, name string) (*v1.Module, error)
- func (_m *RegistryRepository) GetModuleDependencies(ctx context.Context, name string, tag string) ([]*v1.Dependency, error)
- func (_m *RegistryRepository) ListModules(ctx context.Context, pageSize int, token string) ([]*v1.Module, string, error)
- func (_m *RegistryRepository) PullModule(ctx context.Context, name string, tag string) (*v1.Module, []*v1.ProtoFile, error)
- func (_m *RegistryRepository) PushModule(ctx context.Context, name string, tag string, protofiles []*v1.ProtoFile) (*v1.Module, error)
- func (_m *RegistryRepository) RegisterModule(ctx context.Context, moduleName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMiddleware ¶ added in v0.3.0
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 ¶
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
DeleteModuleTag provides a mock function with given fields: ctx, name, tag
func (*RegistryRepository) GetModule ¶ added in v0.1.0
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