image

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// Present checks if the image is already present in the node.
	Present(imageName string) (bool, error)
	// Export is the main reason we are using this and not the cri interface directly (cri has no
	// service for export!) -- and does what it says: exports an image to disk.
	Export(imageName, destination string) error
}

Manager is an interface defining an image manager -- basically a small abstraction around cri such that we can check for images, pull images, and export images from the cri sock mounted in a launcher pod.

func NewImageManager

func NewImageManager(logger claberneteslogging.Instance, criKind string) (Manager, error)

NewImageManager returns an image Manager for the given cri.

Jump to

Keyboard shortcuts

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