Documentation
¶
Overview ¶
Package cloudimg streams OCI-packaged cloud images out of an Epoch registry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamParsed ¶
func StreamParsed(ctx context.Context, m *manifest.OCIManifest, blobs BlobReader, w io.Writer) error
StreamParsed streams disk layers from an already-parsed manifest.
Types ¶
type BlobReader ¶
BlobReader abstracts reading a blob by digest.
type CocoonRunner ¶
type CocoonRunner interface {
ImageImport(ctx context.Context, name string) (io.WriteCloser, func() error, error)
}
CocoonRunner abstracts the cocoon image import subprocess.
type Downloader ¶
type Downloader interface {
GetManifest(ctx context.Context, name, tag string) ([]byte, string, error)
GetBlob(ctx context.Context, name, digest string) (io.ReadCloser, error)
}
Downloader abstracts OCI manifest and blob downloads.
type PullOptions ¶
type PullOptions struct {
Name string // OCI repository name. Required.
Tag string // Defaults to "latest".
LocalName string // Override the cocoon-side image name. Empty = use Name.
}
PullOptions configures a cloud-image pull operation.
type Puller ¶
type Puller struct {
Downloader Downloader
Cocoon CocoonRunner
}
Puller downloads cloud-image artifacts and pipes them into cocoon image import.
Click to show internal directories.
Click to hide internal directories.