storage

package
v0.0.0-...-2c89a47 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	// Put stores the contents of the local file path in the object identified by key. It also
	// stores the last modified timestamp (mtime) in the object's metadata.
	Put(key string, localPath string, mtime int64) error
	// PutString stores the value of body as the content of the object identified by key.
	PutString(key string, body string) error
	// Get writes the contents of the object identified by key into out.
	Get(key string, out io.WriterAt) error
	// GetString returns the contents of the object as a string.
	GetString(key string) (string, error)
	// GetLastModifiedTime returns the modified time as stored in the objects metadata.
	GetLastModifiedTime(key string) (int64, error)
	// ListFolder returns the contents (list of strings) of the folder rooted at path.
	ListFolder(path string) ([]string, error)
	// WalkFolder traverses the folder rooted at path, putting each object it finds in the channel keysC.
	// If an error occurs the traversal is interrupted and the error returned.
	WalkFolder(path string, keysC chan<- string) error
	// Delete removes the folder path and all its contents.
	Delete(key string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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