Documentation
¶
Overview ¶
Package imageversions exposes the canonical, embedded runner-image dependency manifest.
Index ¶
Constants ¶
View Source
const ( DotNetTargetLinux = "linux" DotNetTargetWindowsContainer = "windows-container" DotNetTargetQEMUWindows = "qemu-windows" )
View Source
const NodeTrackSupportedLTS = "supported-lts"
NodeTrackSupportedLTS declares that the manifest carries every LTS major until its end-of-life, which includes majors that have moved to Maintenance LTS.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseImage ¶
type BuildTools ¶
type BuildTools struct {
DefaultLine string `json:"default_line"`
Lines map[string]BuildToolsLine `json:"lines"`
}
func (BuildTools) DefaultRelease ¶
func (b BuildTools) DefaultRelease() (BuildToolsLine, bool)
func (BuildTools) ReleaseLines ¶
func (b BuildTools) ReleaseLines() []string
type BuildToolsLine ¶
type BuildToolsLine struct {
Channel string `json:"channel"`
ReleaseLine string `json:"release_line"`
Version string `json:"version"`
BootstrapperURL string `json:"bootstrapper_url"`
BootstrapperSHA256 string `json:"bootstrapper_sha256"`
ChannelURL string `json:"channel_url"`
ChannelSHA256 string `json:"channel_sha256"`
}
type Corepack ¶
type Corepack struct {
Version string `json:"version"`
URL string `json:"url"`
SHA512 string `json:"sha512"`
}
Corepack is pinned on its own because Node stopped shipping it in the release archive from Node 25 onwards; the images install this tarball instead.
type DotNet ¶
type DotNet struct {
TrackReleaseTypes []string `json:"track_release_types"`
UnassignedSupportedChannels []DotNetDiscovery `json:"unassigned_supported_channels"`
Channels map[string]DotNetChannel `json:"channels"`
}
func (DotNet) ChannelsForTarget ¶
type DotNetChannel ¶
type DotNetChannel struct {
Targets []string `json:"targets"`
ReleaseType string `json:"release_type"`
Version string `json:"version"`
EOL string `json:"eol"`
SupportPhase string `json:"support_phase"`
LinuxX64SHA512 string `json:"linux_x64_sha512,omitempty"`
LinuxARM64SHA512 string `json:"linux_arm64_sha512,omitempty"`
WindowsX64SHA512 string `json:"windows_x64_sha512,omitempty"`
}
type DotNetDiscovery ¶
type Manifest ¶
type Manifest struct {
Schema int `json:"schema"`
Minimal Minimal `json:"minimal"`
NativeBuild NativeBuild `json:"native_build"`
Node Node `json:"node"`
DotNet DotNet `json:"dotnet"`
Go Go `json:"go"`
Rust Rust `json:"rust"`
BuildTools BuildTools `json:"buildtools"`
}
func MustEmbedded ¶
func MustEmbedded() Manifest
func ReadForUpdate ¶
ReadForUpdate validates policy fields but permits unresolved versions and digests. This lets a maintainer add an empty Node major, .NET channel, or Build Tools line and have the updater populate every upstream-derived field.
func (Manifest) ValidatePolicy ¶
type Minimal ¶
type Minimal struct {
LinuxBase BaseImage `json:"linux_base"`
WindowsBase BaseImage `json:"windows_base"`
Runner Runner `json:"runner"`
MinGit MinGit `json:"mingit"`
PowerShell PowerShell `json:"powershell"`
}
type NativeBuild ¶
type Node ¶
type Node struct {
Track string `json:"track"`
DefaultMajor int `json:"default_major"`
Corepack Corepack `json:"corepack"`
Releases map[string]NodeRelease `json:"releases"`
}
func (Node) DefaultRelease ¶
func (n Node) DefaultRelease() (NodeRelease, bool)
type NodeRelease ¶
type PowerShell ¶
Click to show internal directories.
Click to hide internal directories.