platformoptions

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetPlatformOptions

type SetPlatformOptions func(option *v1.Platform)

SetPlatformOptions is a type representing a function to set platform options for an image.

func Arch

func Arch(arch string) SetPlatformOptions

Arch sets the CPU architecture for the image platform. Use this function to specify the architecture of the target platform, such as 'amd64' or 'ppc64'.

func OS

OS sets the operating system for the image platform. Use this function to define the operating system of the target platform, such as 'linux' or 'windows'.

func OSFeatures

func OSFeatures(features ...string) SetPlatformOptions

OSFeatures adds required operating system features to the image platform. Use this function to provide an array of strings representing required OS features, such as 'win32k' on Windows.

func OSVersion

func OSVersion(osV string) SetPlatformOptions

OSVersion sets the version of the operating system for the image platform. Use this function to specify the version of the operating system, for example, '10.0.14393.1066' on Windows.

func Variant

func Variant(v string) SetPlatformOptions

Variant sets the CPU variant for the image platform. Use this function to specify a variant of the CPU architecture, such as 'v7' for ARMv7 when architecture is 'arm'.

Jump to

Keyboard shortcuts

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