MCPcopy
hub / github.com/containerd/containerd / String

Method String

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

String returns the string representation of the Kind

()

Source from the content-addressed store, hash-verified

71
72// String returns the string representation of the Kind
73func (k Kind) String() string {
74 switch k {
75 case KindView:
76 return "View"
77 case KindActive:
78 return "Active"
79 case KindCommitted:
80 return "Committed"
81 default:
82 return "Unknown"
83 }
84}
85
86// MarshalJSON the Kind to JSON
87func (k Kind) MarshalJSON() ([]byte, error) {

Callers 15

MarshalJSONMethod · 0.95
IsUnpackedMethod · 0.45
UnpackMethod · 0.45
IDMethod · 0.45
WithRestoreImageFunction · 0.45
StatusMethod · 0.45
WithTaskCheckpointFunction · 0.45
withNewSnapshotFunction · 0.45
StatusMethod · 0.45
DeleteMethod · 0.45
CheckpointMethod · 0.45
NewTaskMethod · 0.45

Calls

no outgoing calls

Tested by 15

checkBlobPathFunction · 0.36
checkWriteFunction · 0.36
logExecutionFunction · 0.36
TestGCRootsFunction · 0.36
TestGCRemoveFunction · 0.36
TestGCRefsFunction · 0.36
TestCollectibleResourcesFunction · 0.36
checkNodesEqualFunction · 0.36
addImageFunction · 0.36
addContentFunction · 0.36