Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FileNotFoundErr = errors.New("file not found") FileNoPermissionErr = errors.New("permission denied") )
Functions ¶
func NormalizeKey ¶
Types ¶
type Storage ¶
type Storage interface { Put(key string, r io.Reader, dataLength int64) error PutFile(key string, localFile string) error Get(key string) (io.ReadCloser, error) Rename(srcKey string, destKey string) error Copy(srcKey string, destKey string) error Exists(key string) (bool, error) Size(key string) (int64, error) Delete(key string) error Url(key string) string }
Click to show internal directories.
Click to hide internal directories.