MCPcopy
hub / github.com/kopia/kopia / ContentID

Method ContentID

repo/object/objectid.go:111–117  ·  view source on GitHub ↗

ContentID returns the ID of the underlying content.

()

Source from the content-addressed store, hash-verified

109
110// ContentID returns the ID of the underlying content.
111func (i ID) ContentID() (id content.ID, compressed, ok bool) {
112 if i.indirection > 0 {
113 return content.EmptyID, false, false
114 }
115
116 return i.cid, i.compression, true
117}
118
119// IDsFromStrings converts strings to IDs.
120func IDsFromStrings(str []string) ([]ID, error) {

Callers 13

TestWritersFunction · 0.80
verifyIndirectBlockFunction · 0.80
TestConcatenateFunction · 0.80
iterateBackingContentsFunction · 0.80
newRawReaderFunction · 0.80
IsDirectoryIDFunction · 0.80
mustGetContentIDFunction · 0.80
objectIDsToContentIDsFunction · 0.80

Calls

no outgoing calls

Tested by 10

TestWritersFunction · 0.64
verifyIndirectBlockFunction · 0.64
TestConcatenateFunction · 0.64
mustGetContentIDFunction · 0.64
objectIDsToContentIDsFunction · 0.64
verifyMetadataCompressorFunction · 0.64