registry

package
v0.0.0-...-c715d86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2019 License: MIT Imports: 14 Imported by: 4

Documentation

Index

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 (r *FilesystemRegistry) ListModules(namespace, name, provider string, offset, limit int) (modules []models.Module, total int, err error)

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 (r *InMemoryRegistry) ListModules(namespace, name, provider string, offset, limit int) (modules []models.Module, total int, err error)

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

func NewS3Registry(options app.S3Options) Registry

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 (r *S3Registry) ListModules(namespace, name, provider string, offset, limit int) (modules []models.Module, total int, err error)

func (S3Registry) PublishModule

func (S3Registry) PublishModule(namepsace, name, provider, version string, data io.Reader) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL