components

package
v0.0.0-...-e914eb7 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerImagePrefetchOptimization

type ContainerImagePrefetchOptimization struct {
	Binaries []string `json:"binaries,omitempty"`
}

ContainerImagePrefetchOptimization represents a container image prefetch optimization.

type Image

type Image struct {
	DownloadURL       string `json:"downloadURL"`
	MultiArchVersions []struct {
		LatestVersion         string `json:"latestVersion"`
		PreviousLatestVersion string `json:"previousLatestVersion,omitempty"`
		PrefetchOptimizations struct {
			LatestVersion         ContainerImagePrefetchOptimization `json:"latestVersion"`
			PreviousLatestVersion ContainerImagePrefetchOptimization `json:"previousLatestVersion,omitempty"`
		} `json:"containerImagePrefetch,omitempty"`
	} `json:"multiArchVersionsV2,omitempty"`
}

Image represents a container image component. Note that these are the only fields we need from container image component definitions to generate prefetch scripts.

type List

type List struct {
	Images []Image `json:"ContainerImages,omitempty"`
}

List represents a container image component list (e.g. parts/linux/cloud-init/artifacts/components.json).

func ParseList

func ParseList(path string) (*List, error)

ParseList parses the named component list JSON and returns its content as a ComponentList.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL