olympus

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: MIT Imports: 9 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) GoMod added in v0.1.0

func (s *ModuleStore) GoMod(ctx context.Context, module, vsn string) ([]byte, error)

GoMod storage.Getter implementation

func (*ModuleStore) Info added in v0.1.0

func (s *ModuleStore) Info(ctx context.Context, module, vsn string) ([]byte, error)

Info storage.Getter implementation

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

func (*ModuleStore) Zip added in v0.1.0

func (s *ModuleStore) Zip(ctx context.Context, module, vsn string) (io.ReadCloser, error)

Zip storage.Getter implementation

Jump to

Keyboard shortcuts

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