containerd

package
v0.0.2-20220209 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlobStore

func NewBlobStore(db *bolt.DB) *blobStore

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

func NewSnaptshotStore(root string, db *bolt.DB, sdb *bolt.DB) *snapshotStore

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL