Documentation
¶
Index ¶
- type AuthMiddleware
- type CompactionDaemon
- type Daemon
- type MetadataRepository
- func (_m *MetadataRepository) GetParsedProtoFiles(ctx context.Context, tagId string) ([]*model.ParsedProtoFile, error)
- func (_m *MetadataRepository) GetProtoFilesForTagId(ctx context.Context, tagId string) ([]*v1.ProtoFile, error)
- func (_m *MetadataRepository) GetTagMetaByTagId(ctx context.Context, tagId string) (*model.TagMeta, error)
- func (_m *MetadataRepository) GetUnprocessedTagIds(ctx context.Context) ([]string, error)
- func (_m *MetadataRepository) SaveParsedProtoFiles(ctx context.Context, tagId string, files []*model.ParsedProtoFile) error
- 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) DeleteObsoleteDraftTags(ctx context.Context) 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) GetModuleTagId(ctx context.Context, moduleName string, tag string) (string, error)
- func (_m *RegistryRepository) ListModules(ctx context.Context, pageSize int, token string) ([]*v1.Module, string, error)
- func (_m *RegistryRepository) PullDraftModule(ctx context.Context, name string, tag string) (*v1.Module, []*v1.ProtoFile, error)
- func (_m *RegistryRepository) PullModule(ctx context.Context, name string, tag string) (*v1.Module, []*v1.ProtoFile, error)
- func (_m *RegistryRepository) PushDraftModule(ctx context.Context, name string, tag string, protofiles []*v1.ProtoFile, ...) (*v1.Module, 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 CompactionDaemon ¶ added in v0.4.0
CompactionDaemon is an autogenerated mock type for the CompactionDaemon type
func NewCompactionDaemon ¶ added in v0.4.0
func NewCompactionDaemon(t interface { mock.TestingT Cleanup(func()) }) *CompactionDaemon
NewCompactionDaemon creates a new instance of CompactionDaemon. 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 (*CompactionDaemon) Run ¶ added in v0.4.0
func (_m *CompactionDaemon) Run() error
Run provides a mock function with given fields:
type Daemon ¶ added in v0.4.0
Daemon is an autogenerated mock type for the Daemon type
func NewDaemon ¶ added in v0.4.0
NewDaemon creates a new instance of Daemon. 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.
type MetadataRepository ¶ added in v0.4.0
MetadataRepository is an autogenerated mock type for the MetadataRepository type
func NewMetadataRepository ¶ added in v0.4.0
func NewMetadataRepository(t interface { mock.TestingT Cleanup(func()) }) *MetadataRepository
NewMetadataRepository creates a new instance of MetadataRepository. 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 (*MetadataRepository) GetParsedProtoFiles ¶ added in v0.4.0
func (_m *MetadataRepository) GetParsedProtoFiles(ctx context.Context, tagId string) ([]*model.ParsedProtoFile, error)
GetParsedProtoFiles provides a mock function with given fields: ctx, tagId
func (*MetadataRepository) GetProtoFilesForTagId ¶ added in v0.4.0
func (_m *MetadataRepository) GetProtoFilesForTagId(ctx context.Context, tagId string) ([]*v1.ProtoFile, error)
GetProtoFilesForTagId provides a mock function with given fields: ctx, tagId
func (*MetadataRepository) GetTagMetaByTagId ¶ added in v0.4.0
func (_m *MetadataRepository) GetTagMetaByTagId(ctx context.Context, tagId string) (*model.TagMeta, error)
GetTagMetaByTagId provides a mock function with given fields: ctx, tagId
func (*MetadataRepository) GetUnprocessedTagIds ¶ added in v0.4.0
func (_m *MetadataRepository) GetUnprocessedTagIds(ctx context.Context) ([]string, error)
GetUnprocessedTagIds provides a mock function with given fields: ctx
func (*MetadataRepository) SaveParsedProtoFiles ¶ added in v0.4.0
func (_m *MetadataRepository) SaveParsedProtoFiles(ctx context.Context, tagId string, files []*model.ParsedProtoFile) error
SaveParsedProtoFiles provides a mock function with given fields: ctx, tagId, files
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) DeleteObsoleteDraftTags ¶ added in v0.4.0
func (_m *RegistryRepository) DeleteObsoleteDraftTags(ctx context.Context) error
DeleteObsoleteDraftTags provides a mock function with given fields: ctx
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) GetModuleTagId ¶ added in v0.4.0
func (_m *RegistryRepository) GetModuleTagId(ctx context.Context, moduleName string, tag string) (string, error)
GetModuleTagId provides a mock function with given fields: ctx, moduleName, 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) PullDraftModule ¶ added in v0.4.0
func (_m *RegistryRepository) PullDraftModule(ctx context.Context, name string, tag string) (*v1.Module, []*v1.ProtoFile, error)
PullDraftModule provides a mock function with given fields: ctx, name, tag
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) PushDraftModule ¶ added in v0.4.0
func (_m *RegistryRepository) PushDraftModule(ctx context.Context, name string, tag string, protofiles []*v1.ProtoFile, dependencies []*v1.Dependency) (*v1.Module, error)
PushDraftModule provides a mock function with given fields: ctx, name, tag, protofiles, dependencies
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