Documentation ¶
Index ¶
- type FilesystemRegistry
- func (r *FilesystemRegistry) GetModuleData(namespace, name, provider, version string) (reader *bytes.Buffer, err error)
- func (r *FilesystemRegistry) ListModules(namespace, name, provider string, offset, limit int) (modules []models.Module, total int, err error)
- func (r *FilesystemRegistry) PublishModule(namespace, name, provider, version string, data io.Reader) (err error)
- type InMemoryRegistry
- func (r *InMemoryRegistry) GetModuleData(namespace, name, provider, version string) (reader *bytes.Buffer, err error)
- func (r *InMemoryRegistry) ListModules(namespace, name, provider string, offset, limit int) (modules []models.Module, total int, err error)
- func (r *InMemoryRegistry) PublishModule(namespace, name, provider, version string, data io.Reader) error
- type Registry
- type S3Registry
- func (r *S3Registry) GetModuleData(namespace, name, provider, version string) (reader *bytes.Buffer, err error)
- func (r *S3Registry) ListModules(namespace, name, provider string, offset, limit int) (modules []models.Module, total int, err error)
- func (S3Registry) PublishModule(namepsace, name, provider, version string, data io.Reader) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilesystemRegistry ¶
type FilesystemRegistry struct {
// contains filtered or unexported fields
}
func (*FilesystemRegistry) GetModuleData ¶
func (r *FilesystemRegistry) GetModuleData(namespace, name, provider, version string) (reader *bytes.Buffer, err error)
func (*FilesystemRegistry) ListModules ¶
func (*FilesystemRegistry) PublishModule ¶
func (r *FilesystemRegistry) PublishModule(namespace, name, provider, version string, data io.Reader) (err error)
type InMemoryRegistry ¶
type InMemoryRegistry struct {
// contains filtered or unexported fields
}
func (*InMemoryRegistry) GetModuleData ¶
func (r *InMemoryRegistry) GetModuleData(namespace, name, provider, version string) (reader *bytes.Buffer, err error)
func (*InMemoryRegistry) ListModules ¶
func (*InMemoryRegistry) PublishModule ¶
func (r *InMemoryRegistry) PublishModule(namespace, name, provider, version string, data io.Reader) error
type Registry ¶
type Registry interface { /* ListModules(namespace, name, provider string, offset, limit int) (modules []Module, total int, err error) ListVersions(namespace, name, provider string) (versions []ModuleVersions, err error) GetModule(namespace, name, provider, version string) (module *Module, err error) */ GetModuleData(namespace, name, provider, version string) (reader *bytes.Buffer, err error) ListModules(namespace, name, provider string, offset, limit int) (modules []models.Module, total int, err error) PublishModule(namespace, name, provider, version string, data io.Reader) (err error) }
func NewFakeRegistry ¶
func NewFakeRegistry() Registry
func NewFilesystemRegistry ¶
func NewFilesystemRegistry(options app.FileSystemOptions) Registry
func NewS3Registry ¶
type S3Registry ¶
type S3Registry struct {
// contains filtered or unexported fields
}
func (*S3Registry) GetModuleData ¶
func (r *S3Registry) GetModuleData(namespace, name, provider, version string) (reader *bytes.Buffer, err error)
func (*S3Registry) ListModules ¶
func (S3Registry) PublishModule ¶
func (S3Registry) PublishModule(namepsace, name, provider, version string, data io.Reader) (err error)
Click to show internal directories.
Click to hide internal directories.