PublishedStorage is abstraction of filesystem storing all published repositories
| 63 | |
| 64 | // PublishedStorage is abstraction of filesystem storing all published repositories |
| 65 | type PublishedStorage interface { |
| 66 | // MkDir creates directory recursively under public path |
| 67 | MkDir(path string) error |
| 68 | // PutFile puts file into published storage at specified path |
| 69 | PutFile(path string, sourceFilename string) error |
| 70 | // RemoveDirs removes directory structure under public path |
| 71 | RemoveDirs(path string, progress Progress) error |
| 72 | // Remove removes single file under public path |
| 73 | Remove(path string) error |
| 74 | // LinkFromPool links package file from pool to dist's pool location |
| 75 | LinkFromPool(publishedPrefix, publishedRelPath, fileName string, sourcePool PackagePool, sourcePath string, sourceChecksums utils.ChecksumInfo, force bool) error |
| 76 | // Filelist returns list of files under prefix |
| 77 | Filelist(prefix string) ([]string, error) |
| 78 | // RenameFile renames (moves) file |
| 79 | RenameFile(oldName, newName string) error |
| 80 | // SymLink creates a symbolic link, which can be read with ReadLink |
| 81 | SymLink(src string, dst string) error |
| 82 | // HardLink creates a hardlink of a file |
| 83 | HardLink(src string, dst string) error |
| 84 | // FileExists returns true if path exists |
| 85 | FileExists(path string) (bool, error) |
| 86 | // ReadLink returns the symbolic link pointed to by path |
| 87 | ReadLink(path string) (string, error) |
| 88 | } |
| 89 | |
| 90 | // FileSystemPublishedStorage is published storage on filesystem |
| 91 | type FileSystemPublishedStorage interface { |
no outgoing calls
no test coverage detected