Support for multiple storages in PublishedRepository. #15

This commit is contained in:
Andrey Smirnov committed 2014-07-21 17:19:13 +04:00
1 parent 27a5578d30
commit 6d026afc69
3 files changed
+205 -94

No files matched your search

+6
View File
@@ -47,6 +47,12 @@ type LocalPublishedStorage interface {
PublicPath() string
}
// PublishedStorageProvider is a thing that returns PublishedStorage by name
type PublishedStorageProvider interface {
// GetPublishedStorage returns PublishedStorage by name
GetPublishedStorage(name string) PublishedStorage
}
// Progress is a progress displaying entity, it allows progress bars & simple prints
type Progress interface {
// Writer interface to support progress bar ticking