Documentation ¶
Index ¶
- Constants
- func ExtractImageFile(ctx context.Context, imageRef string, pullSecret []byte, file string, ...) error
- func ExtractImageFiles(ctx context.Context, imageRef string, pullSecret []byte, files ...string) (map[string][]byte, error)
- func ExtractImageFilesToDir(ctx context.Context, imageRef string, pullSecret []byte, pattern string, ...) error
- func GetCorrectArchImage(ctx context.Context, component string, imageRef string, pullSecret []byte) (manifestImageRef string, err error)
- func GetListDigest(ctx context.Context, imageRef string, pullSecret []byte) (digest.Digest, error)
- func GetManifest(ctx context.Context, imageRef string, pullSecret []byte) (distribution.Manifest, error)
- func GetRepoSetup(ctx context.Context, imageRef string, pullSecret []byte) (distribution.Repository, *reference.DockerImageReference, error)
- func IsMultiArchManifestList(ctx context.Context, imageRef string, pullSecret []byte) (bool, error)
Constants ¶
const ( ArchitectureAMD64 = "amd64" ArchitectureS390X = "s390x" ArchitecturePPC64LE = "ppc64le" ArchitectureARM64 = "arm64" )
Variables ¶
This section is empty.
Functions ¶
func ExtractImageFile ¶
func ExtractImageFiles ¶
func ExtractImageFiles(ctx context.Context, imageRef string, pullSecret []byte, files ...string) (map[string][]byte, error)
ExtractImageFiles extracts a list of files from a registry image given the image reference, pull secret and the list of files to extract. It returns a map with file contents or an error.
func ExtractImageFilesToDir ¶
func GetCorrectArchImage ¶ added in v0.1.10
func GetCorrectArchImage(ctx context.Context, component string, imageRef string, pullSecret []byte) (manifestImageRef string, err error)
GetCorrectArchImage returns the appropriate image related to the system os/arch if the image reference is manifest listed, else returns the original image reference
func GetListDigest ¶ added in v0.1.43
func GetManifest ¶
func GetManifest(ctx context.Context, imageRef string, pullSecret []byte) (distribution.Manifest, error)
GetManifest gets the manifest from an image
func GetRepoSetup ¶
func GetRepoSetup(ctx context.Context, imageRef string, pullSecret []byte) (distribution.Repository, *reference.DockerImageReference, error)
GetRepoSetup connects to a repo and pulls the imageRef's docker image information from the repo. Returns the repo and the docker image.
func IsMultiArchManifestList ¶
IsMultiArchManifestList determines whether an image is a manifest listed image and contains manifests the following processor architectures: amd64, arm64, s390x, ppc64le
Types ¶
This section is empty.