Documentation ¶
Overview ¶
Package images provides functions for building and pushing images.
Package images provides functions for building and pushing images.
Package images provides functions for building and pushing images.
Index ¶
- type ImgConfig
- func (i *ImgConfig) GetLegacyImgTarballPath() string
- func (i ImgConfig) LoadImageFromPackage(imgTag string) (v1.Image, error)
- func (i *ImgConfig) PullAll() error
- func (i *ImgConfig) PullImage(src string, spinner *message.Spinner) (img v1.Image, err error)
- func (i *ImgConfig) PushToZarfRegistry() error
- type IndexJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImgConfig ¶
type ImgConfig struct { ImagesPath string ImgList []string RegInfo types.RegistryInfo NoChecksum bool Insecure bool Architectures []string }
ImgConfig is the main struct for managing container images.
func (*ImgConfig) GetLegacyImgTarballPath ¶ added in v0.25.0
GetLegacyImgTarballPath returns the ImagesPath as if it were a path to a tarball instead of a directory.
func (ImgConfig) LoadImageFromPackage ¶ added in v0.25.0
LoadImageFromPackage returns a v1.Image from the image tag specified, or an error if the image cannot be found.
func (*ImgConfig) PullImage ¶ added in v0.24.0
PullImage returns a v1.Image either by loading a local tarball or the wider internet.
func (*ImgConfig) PushToZarfRegistry ¶
PushToZarfRegistry pushes a provided image into the configured Zarf registry This function will optionally shorten the image name while appending a checksum of the original image name.
type IndexJSON ¶ added in v0.25.0
type IndexJSON struct { SchemaVersion int `json:"schemaVersion"` Manifests []struct { MediaType string `json:"mediaType"` Size int `json:"size"` Digest string `json:"digest"` Annotations map[string]string `json:"annotations"` } `json:"manifests"` }
IndexJSON represents the index.json file in an OCI layout.