containerdutil

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package containerdutil provides "caching" versions of containerd native snapshotter and content store. NOTE: caching should only be used for single, atomic operations, like `nerdctl images`, and NOT kept across successive, distincts operations. As such, caching is not persistent across invocations of nerdctl, and only lasts as long as the lifetime of the Snapshotter or ContentStore.

Index

Constants

This section is empty.

Variables

View Source
var ReadBlob = readBlobWithCache()

Functions

func NewProvider

func NewProvider(client *containerd.Client) content.Provider

ContentStore should be called to get a Provider with caching

func SnapshotService

func SnapshotService(client *containerd.Client, snapshotterName string) snapshots.Snapshotter

SnapshotService should be called to get a new caching snapshotter

Types

type ImageStore added in v2.0.5

type ImageStore struct {
}

Jump to

Keyboard shortcuts

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