storageengines

package
v0.0.0-...-1e66b67 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2016 License: MIT Imports: 11 Imported by: 0

README

NPM Storage Engines

This directory contains a couple of storage engines that can be used as an NPM storage engine.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSStorage

type FSStorage struct {
	Folder string
}

func NewFSStorage

func NewFSStorage(folder string) *FSStorage

func (*FSStorage) RetrieveMetadata

func (s *FSStorage) RetrieveMetadata(pkg string, writer io.Writer) error

func (*FSStorage) RetrieveTarball

func (s *FSStorage) RetrieveTarball(pkg string, filename string, writer io.Writer) error

func (*FSStorage) RetrieveUsernameFromToken

func (s *FSStorage) RetrieveUsernameFromToken(token string) (string, error)

func (*FSStorage) StoreMetadata

func (s *FSStorage) StoreMetadata(pkg string, data io.Reader) error

func (*FSStorage) StoreTarball

func (s *FSStorage) StoreTarball(filename string, reader io.Reader) error

func (*FSStorage) StoreUserToken

func (s *FSStorage) StoreUserToken(token string, username string) error

Jump to

Keyboard shortcuts

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