Importing files into pool: interface.

This commit is contained in:
Andrey Smirnov
2014-02-24 23:45:32 +04:00
parent 65c790b6cf
commit 4277f09e2a
+2
View File
@@ -20,6 +20,8 @@ type PackagePool interface {
FilepathList(progress Progress) ([]string, error) FilepathList(progress Progress) ([]string, error)
// Remove deletes file in package pool returns its size // Remove deletes file in package pool returns its size
Remove(path string) (size int64, err error) Remove(path string) (size int64, err error)
// Import copies file into package pool
Import(path string, hashMD5 string) error
} }
// PublishedStorage is abstraction of filesystem storing all published repositories // PublishedStorage is abstraction of filesystem storing all published repositories