platform

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPlatforms = []string{"linux/amd64", "linux/arm64"}

DefaultPlatforms is the set of platforms used when none are configured.

Functions

func Normalize

func Normalize(p string) string

Normalize ensures a platform string is in canonical os/arch form. If only an architecture is given (no "/"), "linux/" is prepended as the default OS for container images.

func Resolve

func Resolve(global, image, variant []string) []string

Resolve returns the most specific platform list: variant > image > global. If the most specific level is empty, it falls back to the next level. All returned platform strings are normalized to canonical os/arch form.

func Sanitize

func Sanitize(p string) string

Sanitize converts a platform string like "linux/amd64" to "linux-amd64".

Types

This section is empty.

Jump to

Keyboard shortcuts

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