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

Method Verify

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

Verify checks whether file exists in the pool and fills back checksum info if poolPath is empty, poolPath is generated automatically based on checksum info (if available) in any case, if function returns true, it also fills back checksums with complete information about the file in the pool

(poolPath, basename string, checksums *utils.ChecksumInfo, checksumStorage ChecksumStorage)

Source from the content-addressed store, hash-verified

26 // if poolPath is empty, poolPath is generated automatically based on checksum info (if available)
27 // in any case, if function returns true, it also fills back checksums with complete information about the file in the pool
28 Verify(poolPath, basename string, checksums *utils.ChecksumInfo, checksumStorage ChecksumStorage) (string, bool, error)
29 // Import copies file into package pool
30 //
31 // - srcPath is full path to source file as it is now

Callers 8

TestVerifyLegacyMethod · 0.65
TestVerifyMethod · 0.65
DownloadListMethod · 0.65
VerifyFilesMethod · 0.65
TestVerifyMethod · 0.65
ImportPackageFilesFunction · 0.65
VerifyMethod · 0.65
TestVerifyMethod · 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 4

TestVerifyLegacyMethod · 0.52
TestVerifyMethod · 0.52
TestVerifyMethod · 0.52
TestVerifyMethod · 0.52