MCPcopy
hub / github.com/restic/restic / Insert

Method Insert

internal/restic/idset.go:28–30  ·  view source on GitHub ↗

Insert adds id to the set.

(id ID)

Source from the content-addressed store, hash-verified

26
27// Insert adds id to the set.
28func (s IDSet) Insert(id ID) {
29 s[id] = struct{}{}
30}
31
32// Delete removes id from the set.
33func (s IDSet) Delete(id ID) {

Callers 15

generateRandomFilesFunction · 0.95
listMethod · 0.95
ListMethod · 0.95
delayedListFunction · 0.95
listFilesFunction · 0.95
findPacksForBlobsFunction · 0.95
RepairIndexFunction · 0.95
decidePackActionFunction · 0.95
ReadPacksMethod · 0.95
PacksMethod · 0.95
listPacksFunction · 0.95

Calls

no outgoing calls

Tested by 14

generateRandomFilesFunction · 0.76
listFilesFunction · 0.76
findPacksForBlobsFunction · 0.76
listPacksFunction · 0.76
TestIndexPacksFunction · 0.76
TestEachByPackIgnoesFunction · 0.76
TestMergeIndexFunction · 0.76
TestParallelRemoveFunction · 0.76
TestIDSetFunction · 0.76
listPacksFunction · 0.76
listTreePacksFunction · 0.76