Version: v0.11.2 Latest Latest

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 17 Imported by: 0




This section is empty.


This section is empty.


func IsErrHTTPResponseToHTTPSClient

func IsErrHTTPResponseToHTTPSClient(err error) bool

IsErrHTTPResponseToHTTPSClient returns whether err is "http: server gave HTTP response to HTTPS client"

func ParseRepoTag added in v0.9.0

func ParseRepoTag(imgName string) (string, string)

func ReadImageConfig added in v0.9.0

func ReadImageConfig(ctx context.Context, img containerd.Image) (ocispec.Image, error)

readImageConfig reads config spec from content store.


type EnsuredImage

type EnsuredImage struct {
	Ref         string
	Image       containerd.Image
	ImageConfig ocispec.ImageConfig
	Snapshotter string
	Remote      bool // true for stargz

func EnsureImage

func EnsureImage(ctx context.Context, client *containerd.Client, stdout io.Writer, snapshotter, rawRef string, mode PullMode, insecure bool) (*EnsuredImage, error)

EnsureImage ensures the image.

When insecure is set, skips verifying certs, and also falls back to HTTP when the registry does not speak HTTPS

type PullMode

type PullMode = string

PullMode is either one of "always", "missing", "never"

Source Files


Path Synopsis
Package pull forked from
Package pull forked from
Package push derived from
Package push derived from

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL