MCPcopy Index your code
hub / github.com/aptly-dev/aptly / PublishedStorage

Interface PublishedStorage

aptly/interfaces.go:65–88  ·  view source on GitHub ↗

PublishedStorage is abstraction of filesystem storing all published repositories

Source from the content-addressed store, hash-verified

63
64// PublishedStorage is abstraction of filesystem storing all published repositories
65type 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
91type FileSystemPublishedStorage interface {

Callers 75

SetUpTestMethod · 0.65
SetUpTestMethod · 0.65
TestLoadConfigMethod · 0.65
TestSaveConfigMethod · 0.65
TestLoadYAMLConfigMethod · 0.65
TestSaveYAMLConfigMethod · 0.65
TestSaveYAML2ConfigMethod · 0.65
TestPutFileMethod · 0.65
TestFilelistMethod · 0.65
TestRenameFileMethod · 0.65

Implementers 6

PublishedStoragefiles/public.go
PublishedStorageazure/public.go
PublishedStoragegcs/public.go
PublishedStorages3/public.go
PublishedStorageswift/public.go
PublishedStoragejfrog/public.go

Calls

no outgoing calls

Tested by

no test coverage detected