Documentation ¶
Index ¶
- Constants
- func ConfigureStorageFolder(storageName string) (storage.Folder, error)
- func ExecuteOnStorage(target string, fn func(folder storage.Folder) error) error
- func NewStorageFolderReader(mainFolder storage.Folder, failover map[string]storage.Folder) (internal.StorageFolderReader, error)
- func NewUploader(baseUploader *internal.RegularUploader, failover map[string]storage.Folder) (internal.Uploader, error)
- type FailoverFolder
- func FindAliveStorages(toCheck []FailoverFolder, stopOnDefaultOk bool) (ok []FailoverFolder, err error)
- func FindCachedStorage(storages []FailoverFolder) (FailoverFolder, bool, error)
- func NewDefaultFailoverFolder(folder storage.Folder) FailoverFolder
- func NewFailoverFolders(base storage.Folder, failovers map[string]storage.Folder) (storages []FailoverFolder)
- type StorageFolderReader
Constants ¶
View Source
const DefaultStorage = "default"
Variables ¶
This section is empty.
Functions ¶
func ConfigureStorageFolder ¶
func ExecuteOnStorage ¶
func NewStorageFolderReader ¶
func NewUploader ¶
Types ¶
type FailoverFolder ¶
func FindAliveStorages ¶
func FindAliveStorages(toCheck []FailoverFolder, stopOnDefaultOk bool) (ok []FailoverFolder, err error)
TODO: Unit tests
func FindCachedStorage ¶
func FindCachedStorage(storages []FailoverFolder) (FailoverFolder, bool, error)
func NewDefaultFailoverFolder ¶
func NewDefaultFailoverFolder(folder storage.Folder) FailoverFolder
func NewFailoverFolders ¶
type StorageFolderReader ¶
type StorageFolderReader struct {
// contains filtered or unexported fields
}
func (*StorageFolderReader) ReadObject ¶
func (sfr *StorageFolderReader) ReadObject(objectRelativePath string) (io.ReadCloser, error)
func (*StorageFolderReader) SubFolder ¶
func (sfr *StorageFolderReader) SubFolder(subFolderRelativePath string) internal.StorageFolderReader
Click to show internal directories.
Click to hide internal directories.