Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SetPlatformOptions ¶
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 ¶
func OS(os string) SetPlatformOptions
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'.