storage

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotExist = errors.New("no such file")

ErrNotExist is an error for file isn't exists on storage

Functions

This section is empty.

Types

type Storage

type Storage interface {
	Save(name string, data io.Reader, size int) error
	SourceReader(name string) (io.ReadCloser, error)
	// CheckFile checks if file/object exists and isn't empty
	CheckFile(name string) error
	List(prefix string) ([]string, error)
	Files(suffix string) ([][]byte, error)
	// Delete deletes given file.
	// It returns storage.ErrNotExist if a file isn't exists
	Delete(name string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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