Documentation ¶
Overview ¶
Package imageutils contains helpers and utilities for managing and pulling images.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ImageDir = filepath.Join(utils.GetLilipodHome(), "images")
ImageDir is the default location for downloaded images.
Functions ¶
func GetID ¶
GetID returns the md5sum based ID for given image. If a recognized ID is passed, it is returned.
func Pull ¶
Pull will pull a given image and save it to ImageDir. This function uses github.com/google/go-containerregistry/pkg/crane to pull the image's manifest, and performs the downloading of each layer separately. Each layer is deduplicated between images in order to save space, using hardlinks. If quiet is specified, no output nor progress will be shown.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.