Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
type Filesystem interface { Fetch(name string) (file io.ReadCloser, err error) Upload(contents io.Reader) (fid string, written int, err error) Delete(name string) error // consider streaming Close() error }
Filesystem is an interface for anything that allows storing files remotely
type Flat ¶
type Flat struct {
// contains filtered or unexported fields
}
Flat is a local flatfile implementation of Filesystem
func NewFlat ¶
func NewFlat(cfg config.FlatConfig) (*Flat, error)
NewFlat returns a new flat filesystem
type Seaweed ¶
Seaweed is an implementation of SeaweedFS connection
func NewSeaweed ¶
func NewSeaweed(cfg config.SeaweedConfig) (*Seaweed, error)
NewSeaweed creates a new SeaweedFS client
Click to show internal directories.
Click to hide internal directories.