Documentation
¶
Overview ¶
Package platform defines canonical CPU architecture identifiers and validation helpers used by cargoship when targeting specific platforms in OCI workflows.
Index ¶
Constants ¶
View Source
const ( // ArchAMD64 is the amd64 architecture. ArchAMD64 = api.ArchAMD64 // ArchARM64 is the arm64 architecture. ArchARM64 = api.ArchARM64 // ArchRISCV is the riscv architecture. ArchRISCV = api.ArchRISCV )
These are the supported architectures.
Variables ¶
View Source
var ( // ErrUnknownArch is returned when a Arch is not one of the supported architectures. ErrUnknownArch = api.ErrUnknownArch )
Functions ¶
func ValidateArch ¶
ValidateArch checks if the given platform operating system architecture format is valid.
format: the Arch to validate. error: an error if the architecture format is invalid, otherwise nil.
Types ¶
Click to show internal directories.
Click to hide internal directories.