MCPcopy
hub / github.com/aquasecurity/trivy / Contains

Method Contains

pkg/set/set.go:14–14  ·  view source on GitHub ↗

Contains checks if an item exists in the set

(item T)

Source from the content-addressed store, hash-verified

12
13 // Contains checks if an item exists in the set
14 Contains(item T) bool
15
16 // Find returns the stored value for the given item if it exists
17 // For case-insensitive sets, this returns the canonical (original) casing

Callers 15

PutArtifactMethod · 0.65
PutBlobMethod · 0.65
MissingBlobsMethod · 0.65
DeleteBlobsMethod · 0.65
reachRootFunction · 0.65
DownloadRepositoriesMethod · 0.65
SearchMethod · 0.65
EnabledMethod · 0.65
Test_tryRemoteFunction · 0.65
TestPodmanImageFunction · 0.65
belongToGroupFunction · 0.65
AnalyzeFileMethod · 0.65

Calls

no outgoing calls

Tested by 15

PutArtifactMethod · 0.52
PutBlobMethod · 0.52
MissingBlobsMethod · 0.52
DeleteBlobsMethod · 0.52
Test_tryRemoteFunction · 0.52
TestPodmanImageFunction · 0.52
TestFS_BuildSkipPathsFunction · 0.52
TestArtifact_InspectFunction · 0.52
TestParseConfigFunction · 0.52
TestUserAgentsFunction · 0.52
Test_FSKeyFunction · 0.52