olympus

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleStore

type ModuleStore struct {
	// contains filtered or unexported fields
}

ModuleStore represents a mongo backed storage backend.

func NewStorage

func NewStorage(url string) *ModuleStore

NewStorage returns a remote Olympus store

func (*ModuleStore) Get

func (s *ModuleStore) Get(ctx context.Context, module, vsn string) (*storage.Version, error)

Get a specific version of a module

func (*ModuleStore) Save

func (s *ModuleStore) Save(ctx context.Context, module, version string, _ []byte, _ io.ReadSeeker, _ []byte) error

Save stores a module in olympus. This actually does not store anything just reports cache miss

Jump to

Keyboard shortcuts

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