New methods for public root: Filelist and Remove. #8

This commit is contained in:
Andrey Smirnov committed 2014-04-22 17:05:32 +04:00
1 parent 1bac201687
commit d69eaeff4e
3 files changed
+62 -1

No files matched your search

+5 -1
View File
@@ -34,8 +34,12 @@ type PublishedStorage interface {
CreateFile(path string) (*os.File, error)
// RemoveDirs removes directory structure under public path
RemoveDirs(path string) error
// Remove removes single file under public path
Remove(path string) error
// LinkFromPool links package file from pool to dist's pool location
LinkFromPool(prefix string, component string, poolDirectory string, sourcePool PackagePool, sourcePath string) (string, error)
LinkFromPool(publishedDirectory string, sourcePool PackagePool, sourcePath string) error
// Filelist returns list of files under prefix
Filelist(prefix string) ([]string, error)
// ChecksumsForFile proxies requests to utils.ChecksumsForFile, joining public path
ChecksumsForFile(path string) (utils.ChecksumInfo, error)
// RenameFile renames (moves) file