disk

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KiloByte = 1 << (10 * (iota + 1))
	MegaByte
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskStore

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

func NewDiskStore

func NewDiskStore(dataDir string) (*DiskStore, error)

func (*DiskStore) Delete

func (d *DiskStore) Delete(uuid string) error

func (*DiskStore) Get

func (d *DiskStore) Get(uuid string) (io.ReadCloser, error)

func (*DiskStore) Upload

func (d *DiskStore) Upload(uuid string, r io.Reader) error

Jump to

Keyboard shortcuts

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