 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrHTTPResponseToHTTPSClient ¶
IsErrHTTPResponseToHTTPSClient returns whether err is "http: server gave HTTP response to HTTPS client"
func ParseRepoTag ¶ added in v0.9.0
func ReadImageConfig ¶ added in v0.9.0
readImageConfig reads config spec from content store.
Types ¶
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
       Directories
      ¶
      Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| Package pull forked from https://github.com/containerd/containerd/blob/v1.4.3/cmd/ctr/commands/content/fetch.go | Package pull forked from https://github.com/containerd/containerd/blob/v1.4.3/cmd/ctr/commands/content/fetch.go | 
| Package push derived from https://github.com/containerd/containerd/blob/v1.4.3/cmd/ctr/commands/images/push.go | Package push derived from https://github.com/containerd/containerd/blob/v1.4.3/cmd/ctr/commands/images/push.go | 
 Click to show internal directories. 
   Click to hide internal directories.