Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegistryRepository ¶
type RegistryRepository interface {
RegisterModule(ctx context.Context, moduleName string) error
GetModule(ctx context.Context, name string) (*v1.Module, error)
ListModules(ctx context.Context, pageSize int, token string) ([]*v1.Module, string, error)
DeleteModule(ctx context.Context, name string) error
PushModule(ctx context.Context, name string, tag string, protofiles []*v1.ProtoFile) (*v1.Module, error)
PullModule(ctx context.Context, name string, tag string) (*v1.Module, []*v1.ProtoFile, error)
DeleteModuleTag(ctx context.Context, name string, tag string) error
AddModuleDependencies(ctx context.Context, name string, tag string, dependencies []*v1.Dependency) error
GetModuleDependencies(ctx context.Context, name string, tag string) ([]*v1.Dependency, error)
}
func NewRegistryRepository ¶
func NewRegistryRepository(pool *pgxpool.Pool) RegistryRepository
Click to show internal directories.
Click to hide internal directories.