fs

package
v0.0.0-...-be83826 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 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 FileSystem

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

func New

func New(baseDir string) *FileSystem

func (*FileSystem) GetFile

func (fs *FileSystem) GetFile(fk *backend.FileKey) (io.Reader, bool, error)

func (*FileSystem) GetSnap

func (fs *FileSystem) GetSnap(sk *backend.SnapKey) (io.Reader, bool, error)

func (*FileSystem) PutFile

func (fs *FileSystem) PutFile(*backend.FileKey, io.Reader) error

func (*FileSystem) PutSnap

func (fs *FileSystem) PutSnap(sk *backend.SnapKey, r io.Reader) (bool, error)

Jump to

Keyboard shortcuts

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