build

package
v0.5.13 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Goarch = func() sys.Arch {
	var buf sys.Arch
	common.Must(buf.Set(runtime.GOARCH))
	return buf
}()
View Source
var Goos = func() sys.Os {
	var buf sys.Os
	common.Must(buf.Set(runtime.GOOS))
	return buf
}()

Functions

func AllBinaryPlatforms

func AllBinaryPlatforms(forTesting bool, assumedOs sys.Os, assumedArch sys.Arch) iter.Seq[*Platform]

func ArchToLdFlags

func ArchToLdFlags(a sys.Arch) string

func DoesEditionSupportBinaryFor

func DoesEditionSupportBinaryFor(e sys.Edition, o sys.Os, a sys.Arch, assumedOs sys.Os, assumedArch sys.Arch) bool

func EditionToLdFlags

func EditionToLdFlags(e sys.Edition) string

func ExtendPathWith

func ExtendPathWith(forOs sys.Os, source sys.EnvVars, paths ...string) sys.EnvVars

func IsOsAndArchSupported

func IsOsAndArchSupported(o sys.Os, a sys.Arch) bool

func OsToLdFlags

func OsToLdFlags(o sys.Os) string

func SetArchToEnv

func SetArchToEnv(o sys.Os, a sys.Arch, assumedGoos sys.Os, assumedGoarch sys.Arch, env interface{ SetEnv(key, val string) })

func SetEditionToEnv

func SetEditionToEnv(e sys.Edition, env interface{ SetEnv(key, val string) })

func SetOsToEnv

func SetOsToEnv(o sys.Os, env interface{ SetEnv(key, val string) })

Types

type ArchDetails

type ArchDetails struct {
	// contains filtered or unexported fields
}

func GetArchDetails

func GetArchDetails(a sys.Arch) ArchDetails

func (ArchDetails) IsOsSupported

func (this ArchDetails) IsOsSupported(o sys.Os) bool

type ArchiveFormat

type ArchiveFormat uint8
const (
	ArchiveFormatTgz ArchiveFormat = iota
	ArchiveFormatZip
)

func ArchiveFormatFor

func ArchiveFormatFor(os sys.Os) ArchiveFormat

func (ArchiveFormat) Ext

func (this ArchiveFormat) Ext() string

func (*ArchiveFormat) Set

func (this *ArchiveFormat) Set(plain string) error

func (ArchiveFormat) String

func (this ArchiveFormat) String() string

type Platform

type Platform struct {
	Os      sys.Os
	Arch    sys.Arch
	Edition sys.Edition
	Testing bool
}

func (Platform) AssertBinarySupported

func (this Platform) AssertBinarySupported(assumedOs sys.Os, assumedArch sys.Arch) error

func (Platform) FilenamePrefix

func (this Platform) FilenamePrefix(mainPrefix string) string

func (Platform) IsBinarySupported

func (this Platform) IsBinarySupported(assumedOs sys.Os, assumedArch sys.Arch) bool

func (Platform) IsImageSupported

func (this Platform) IsImageSupported() bool

func (Platform) Oci

func (this Platform) Oci() string

func (Platform) SetToEnv

func (this Platform) SetToEnv(assumedGoos sys.Os, assumedGoarch sys.Arch, env interface{ SetEnv(key, val string) })

func (Platform) SourceOciImage

func (this Platform) SourceOciImage() (name string, _ error)

func (Platform) String

func (this Platform) String() string

func (Platform) ToLdFlags

func (this Platform) ToLdFlags() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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