Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { Setup() error Type() string Write(repoKey string, cacheID int, r io.Reader, start, end int, size int64) (string, int64, error) Delete(repoKey string, partData string) error // Finalise Takes a list of upload parts, and somehow concatenates them and returns a path which can be passed to GenerateArchiveURL Finalise(repoKey string, cacheID int, parts []s.CachePart) (string, error) GenerateArchiveURL(scheme, host, repoKey, path string) (string, error) GetFilePath(key string) (string, error) }
func GetStorageBackend ¶
Click to show internal directories.
Click to hide internal directories.