Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultBackendName = "_"
Variables ¶
This section is empty.
Functions ¶
func InsertBackend ¶
func ListBackends ¶
Types ¶
type Backend ¶
type Backend interface { Name() string OpenRead(name string, start, length int) (io.ReadCloser, error) Delete(name string) error DeleteAll(names []string) []error Copy(ctx context.Context, src Backend, srcName, destName string) error }
func GetBackend ¶
type BackendConfig ¶
type Driver ¶
type Driver struct { Name string Description string Params []string Create func(name string, params map[string]string) (Backend, error) }
func FindDriver ¶
func ListDrivers ¶
func ListDrivers() []Driver
type LocalBackend ¶
type LocalBackend interface { Backend OpenWrite(name string) (io.WriteCloser, error) // contains filtered or unexported methods }
func DefaultBackend ¶
func DefaultBackend() LocalBackend
Click to show internal directories.
Click to hide internal directories.