Documentation ¶
Index ¶
- type RegistryRepository
- 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) 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 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) 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) 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