localfs

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalfsBackend

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

func NewLocalfsBackend

func NewLocalfsBackend(basePath string) LocalfsBackend

func (LocalfsBackend) Delete

func (b LocalfsBackend) Delete(key string) error

func (LocalfsBackend) Exists

func (b LocalfsBackend) Exists(key string) (bool, error)

func (LocalfsBackend) Get

func (b LocalfsBackend) Get(key string) ([]byte, error)

func (LocalfsBackend) List added in v1.2.8

func (b LocalfsBackend) List() ([]string, error)

func (LocalfsBackend) Open

func (LocalfsBackend) Put

func (b LocalfsBackend) Put(key string, r io.Reader) (int64, error)

func (LocalfsBackend) ServeFile

func (b LocalfsBackend) ServeFile(key string, w http.ResponseWriter, r *http.Request)

func (LocalfsBackend) Size

func (b LocalfsBackend) Size(key string) (int64, error)

Jump to

Keyboard shortcuts

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