Documentation ¶
Overview ¶
Package environment contains default environment contents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LinuxAmd64 = Platform{ ID: "linux/amd64", Arch: "x86_64", Target: "x86_64-getdroplet-linux", Build: "x86_64-linux", Host: "x86_64-linux", LLBPlatform: llb.LinuxAmd64, PlatformSpec: platforms.MustParse("linux/amd64"), } LinuxArm64 = Platform{ ID: "linux/arm64", Arch: "aarch64", Target: "aarch64-getdroplet-linux", Build: "aarch64-linux", Host: "aarch64-linux", LLBPlatform: llb.LinuxArm64, PlatformSpec: platforms.MustParse("linux/arm64"), } )
Platform definitions.
View Source
var Platforms = map[string]Platform{}
Platforms is mapping of platform ID to Platform.
Functions ¶
Types ¶
type Options ¶
type Options struct { BuildPlatform Platform TargetPlatform Platform Target string CommonPrefix string ProxyEnv *llb.ProxyEnv SourceDateEpoch time.Time CacheIDNamespace string }
Options for packer.
func (*Options) GetVariables ¶
GetVariables returns set of variables set for options.
type Platform ¶
type Platform struct { ID string Arch string Target string Build string Host string LLBPlatform llb.ConstraintsOpt PlatformSpec specs.Platform }
Platform describes build & target platforms.
func (Platform) BuildVariables ¶
BuildVariables returns build env variables.
func (Platform) TargetVariables ¶
TargetVariables returns target env variables.
Click to show internal directories.
Click to hide internal directories.