image

package
v1.7.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFromCacheDir

func DeleteFromCacheDir(images []string) error

DeleteFromCacheDir deletes tar files stored in cache dir

func DigestByDockerLib

func DigestByDockerLib(imgClient *client.Client, imgName string) string

DigestByDockerLib uses client by docker lib to return image digest img.ID in as same as image digest

func DigestByGoLib

func DigestByGoLib(imgName string) string

DigestByGoLib gets image digest uses go-containerregistry lib which is 4s slower thabn local daemon per lookup https://github.com/google/go-containerregistry/issues/627

func SaveToDir

func SaveToDir(images []string, cacheDir string) error

SaveToDir will cache images on the host

The cache directory currently caches images using the imagename_tag For example, k8s.gcr.io/kube-addon-manager:v6.5 would be stored at $CACHE_DIR/k8s.gcr.io/kube-addon-manager_v6.5

Types

This section is empty.

Jump to

Keyboard shortcuts

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