MCPcopy Create free account
hub / github.com/aptly-dev/aptly / Import

Method Import

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

Import copies file into package pool - srcPath is full path to source file as it is now - basename is desired human-readable name (canonical filename) - checksums are used to calculate file placement - move indicates whether srcPath can be removed

(srcPath, basename string, checksums *utils.ChecksumInfo, move bool, storage ChecksumStorage)

Source from the content-addressed store, hash-verified

33 // - checksums are used to calculate file placement
34 // - move indicates whether srcPath can be removed
35 Import(srcPath, basename string, checksums *utils.ChecksumInfo, move bool, storage ChecksumStorage) (path string, err error)
36 // LegacyPath returns legacy (pre 1.1) path to package file (relative to root)
37 LegacyPath(filename string, checksums *utils.ChecksumInfo) (string, error)
38 // Size returns the size of the given file in bytes.

Callers 15

TestVerifyMethod · 0.95
TestLinkFromPoolMethod · 0.95
TestDownloadListMethod · 0.95
TestVerifyFilesMethod · 0.95
TestLinkFromPoolMethod · 0.95
TestDebugModeMethod · 0.95
TestLinkFromPoolMethod · 0.95
TestLinkFromPoolCacheMethod · 0.95
TestLinkFromPoolMethod · 0.95
TestImportOkMethod · 0.65
TestImportLegacyMethod · 0.65

Implementers 5

PackagePoolfiles/package_pool.go
fakePoolfiles/public_test.go
PackagePoolazure/package_pool.go
fakeLocalPooljfrog/public_test.go
fakeRemotePooljfrog/public_test.go

Calls

no outgoing calls

Tested by 15

TestVerifyMethod · 0.76
TestLinkFromPoolMethod · 0.76
TestDownloadListMethod · 0.76
TestVerifyFilesMethod · 0.76
TestLinkFromPoolMethod · 0.76
TestDebugModeMethod · 0.76
TestLinkFromPoolMethod · 0.76
TestLinkFromPoolCacheMethod · 0.76
TestLinkFromPoolMethod · 0.76
TestImportOkMethod · 0.52
TestImportLegacyMethod · 0.52