MCPcopy
hub / github.com/containerd/containerd / Stat

Method Stat

core/snapshots/snapshotter.go:262–262  ·  view source on GitHub ↗

Stat returns the info for an active or committed snapshot by name or key. Should be used for parent resolution, existence checks and to discern the kind of snapshot.

(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

260 // Should be used for parent resolution, existence checks and to discern
261 // the kind of snapshot.
262 Stat(ctx context.Context, key string) (Info, error)
263
264 // Update updates the info for a snapshot.
265 //

Callers 15

IsUnpackedMethod · 0.65
resolveSnapshotOptionsFunction · 0.65
withRemappedSnapshotBaseFunction · 0.65
macroExistsFunction · 0.65
checkBlobPathFunction · 0.65
StatMethod · 0.65
unpackMethod · 0.65
TestAutoclearTrueLoopFunction · 0.65
mountMethod · 0.65
UnmountAllFunction · 0.65
initIDMappedCheckerFunction · 0.65

Implementers 11

mockSnapshottercontrib/snapshotservice/service_test.g
proxySnapshottercore/snapshots/proxy/proxy.go
snapshottercore/metadata/snapshot.go
tmpSnapshottercore/metadata/snapshot_test.go
snapshotterplugins/snapshots/btrfs/btrfs.go
Snapshotterplugins/snapshots/devmapper/snapshotte
snapshotterplugins/snapshots/blockfile/blockfile.
snapshotterplugins/snapshots/erofs/erofs.go
snapshotterplugins/snapshots/overlay/overlay.go
snapshotterplugins/snapshots/native/native.go
snapshotterplugins/snapshots/lcow/lcow.go

Calls

no outgoing calls

Tested by 11

checkBlobPathFunction · 0.52
TestAutoclearTrueLoopFunction · 0.52
initIDMappedCheckerFunction · 0.52
TestMkdirHandlerFunction · 0.52
updateFileFunction · 0.52
TestSnapshotterWithRefFunction · 0.52
TestNewBundleFunction · 0.52