Documentation ¶
Overview ¶
Package storage provides interface for storage areas, e.g. s3 or POSIX file system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { GetFileSize(filePath string) (int64, error) NewFileReader(filePath string) (io.ReadCloser, error) NewFileWriter(filePath string) (io.WriteCloser, error) }
Backend defines methods to be implemented by PosixBackend and S3Backend
func NewBackend ¶
NewBackend initiates a storage backend
Click to show internal directories.
Click to hide internal directories.