MCPcopy Create free account
hub / github.com/containerd/nerdctl / List

Method List

pkg/store/store.go:72–72  ·  view source on GitHub ↗

List will return a slice of all subgroups (eg: subdirectories), or keys (eg: files), under a specific group (eg: dir) Note that `key...` may be omitted, in which case, all objects' names at the root of the store are returned. Example, in the volumestore, List() will return all existing volumes names

(key ...string)

Source from the content-addressed store, hash-verified

70 // Note that `key...` may be omitted, in which case, all objects' names at the root of the store are returned.
71 // Example, in the volumestore, List() will return all existing volumes names
72 List(key ...string) ([]string, error)
73 // Exists checks that a given key exists
74 // Example: Exists("meta.json")
75 Exists(key ...string) (bool, error)

Callers 15

ReadIPTablesFunction · 0.65
WalkMethod · 0.65
WalkCriRmMethod · 0.65
FilterByCreatedAtFunction · 0.65
GetUnusedImagesFunction · 0.65
GetDanglingImagesFunction · 0.65
FromArchiveFunction · 0.65
TestFileStoreBasicsFunction · 0.65
TestFileStoreGroupsFunction · 0.65
ForwardExistsFunction · 0.65
GetRedirectedChainFunction · 0.65
UsedNetworksFunction · 0.65

Implementers 1

fileStorepkg/store/filestore.go

Calls

no outgoing calls

Tested by 2

TestFileStoreBasicsFunction · 0.52
TestFileStoreGroupsFunction · 0.52