Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidEndpoint = errors.New("s3: invalid endpoint") ErrInvalidCredentials = errors.New("s3: invalid credentials") ErrInvalidBucket = errors.New("s3: invalid bucket") )
View Source
var ErrNotFound = errors.New("fileserver: not found")
Functions ¶
Types ¶
type FileServer ¶
type FileServer interface { Ping() error Search(pattern string) ([]FileInfo, error) Read(name string) (io.Reader, error) Write(info FileInfo, r io.Reader) error }
Represents an active connection to a FileServer (S3, FTP, etc).
type MemoryFileServer ¶
func NewMemory ¶
func NewMemory(info MemoryInfo) (*MemoryFileServer, error)
func (*MemoryFileServer) Ping ¶
func (fs *MemoryFileServer) Ping() error
type MemoryInfo ¶
type MemoryInfo struct{}
type S3FileServer ¶
type S3FileServer struct {
// contains filtered or unexported fields
}
func NewS3 ¶
func NewS3(info S3Info) (*S3FileServer, error)
func (*S3FileServer) Ping ¶
func (fs *S3FileServer) Ping() error
Click to show internal directories.
Click to hide internal directories.