Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { Config() *config.BackendConfig Delete(filename string) error Init() error List() ([]string, error) Read(filename string) ([]byte, error) Write(filename string, data io.Reader) error }
Backend is an interface that abstracts operations on a data store
type Local ¶
type Local struct { BackendConfig *config.BackendConfig Opts *LocalOpts }
Local implements the Backend interface
func (*Local) Config ¶
func (b *Local) Config() *config.BackendConfig
Config returns the backend's config
type LocalOpts ¶
type LocalOpts struct { }
LocalOpts represents the local backend configuration options
type S3 ¶
type S3 struct { BackendConfig *config.BackendConfig Opts *S3Opts // contains filtered or unexported fields }
S3 implements the Backend interface
Click to show internal directories.
Click to hide internal directories.