Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBlobStore ¶
NewBlobStore returns blob store used for content operation
In containerd, content information is stored in metadata file meta.db. i.e. meta.db/v1/<namespace>/content/blob/<blob digest>
func NewExplorer ¶
func NewExplorer(imageroot string, root string, manifest string, snapshot string, sc *explorers.SupportContainer) (explorers.ContainerExplorer, error)
NewExplorer returns a ContainerExplorer interface to explore containerd.
func NewSnaptshotStore ¶
NewSnapshotStore returns snapshotStore which handles viewing of snapshot information
In containerd, snapshot information is stored in metadata file meta.db and snapshot database file metadata.db.
The meta.db file contains the following information:
- Container reference to container snapshot: meta.db/v1/<namespace>/containers/<container id>
- shapshotter
- snapshotKey
- Snapshot information in meta.db/v1/<namespace>/snapshots/<snapshotter>/<snapshot key>
The metadata.db file contains additional information about a snapshot. Snapshot path in snapshot database: metadata.db/v1/snapshots/<snapshot key>
- id - Snapshot file system ID i.e. /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/<id>/fs
- kind - ACTIVE vs COMMITTED
Types ¶
This section is empty.