disk

package
v0.0.0-...-0e9c5be Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage represents where we put the objects

func New

func New(dir string) *Storage

New returns a new Cache

func (*Storage) GetTarball

func (s *Storage) GetTarball(name string, w io.Writer) error

GetTarball ...

func (*Storage) PutTarball

func (s *Storage) PutTarball(name string, gz io.Reader) error

PutTarball stores a tarball

func (*Storage) RequestHandler

func (s *Storage) RequestHandler(w http.ResponseWriter, r *http.Request)

RequestHandler ...

Jump to

Keyboard shortcuts

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