mdaas

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TargetArch386 = TargetArch(`386`)
View Source
const TargetArchAmd64 = TargetArch(`amd64`)
View Source
const TargetArchArm = TargetArch(`arm`)
View Source
const TargetArchArm64 = TargetArch(`arm64`)
View Source
const TargetArchArm64be = TargetArch(`arm64be`)
View Source
const TargetArchArmbe = TargetArch(`armbe`)
View Source
const TargetArchLoong64 = TargetArch(`loong64`)
View Source
const TargetArchMips = TargetArch(`mips`)
View Source
const TargetArchMips64 = TargetArch(`mips64`)
View Source
const TargetArchMips64le = TargetArch(`mips64le`)
View Source
const TargetArchMips64p32 = TargetArch(`mips64p32`)
View Source
const TargetArchMips64p32le = TargetArch(`mips64p32le`)
View Source
const TargetArchMipsle = TargetArch(`mipsle`)
View Source
const TargetArchPpc = TargetArch(`ppc`)
View Source
const TargetArchPpc64 = TargetArch(`ppc64`)
View Source
const TargetArchPpc64le = TargetArch(`ppc64le`)
View Source
const TargetArchRiscv = TargetArch(`riscv`)
View Source
const TargetArchRiscv64 = TargetArch(`riscv64`)
View Source
const TargetArchS390 = TargetArch(`s390`)
View Source
const TargetArchS390x = TargetArch(`s390x`)
View Source
const TargetArchSparc = TargetArch(`sparc`)
View Source
const TargetArchSparc64 = TargetArch(`sparc64`)
View Source
const TargetArchUnknown = TargetArch(`unknown`)
View Source
const TargetArchWasm = TargetArch(`wasm`)
View Source
const TargetOSAix = TargetOS(`aix`)
View Source
const TargetOSAndroid = TargetOS(`android`)
View Source
const TargetOSDarwin = TargetOS(`darwin`)
View Source
const TargetOSDragonfly = TargetOS(`dragonfly`)
View Source
const TargetOSFreebsd = TargetOS(`freebsd`)
View Source
const TargetOSHurd = TargetOS(`hurd`)
View Source
const TargetOSIllumos = TargetOS(`illumos`)
View Source
const TargetOSIos = TargetOS(`ios`)
View Source
const TargetOSJs = TargetOS(`js`)
View Source
const TargetOSLinux = TargetOS(`linux`)
View Source
const TargetOSNetbsd = TargetOS(`netbsd`)
View Source
const TargetOSOpenbsd = TargetOS(`openbsd`)
View Source
const TargetOSPlan9 = TargetOS(`plan9`)
View Source
const TargetOSSolaris = TargetOS(`solaris`)
View Source
const TargetOSUnknown = TargetOS(`unknown`)
View Source
const TargetOSWasip1 = TargetOS(`wasip1`)
View Source
const TargetOSWindows = TargetOS(`windows`)
View Source
const TargetOSZos = TargetOS(`zos`)

Variables

View Source
var MDaaSFS embed.FS

Functions

func Build

func Build(targetOS TargetOS, targetArch TargetArch, arm, program, outDir string, ldFlags []string) (string, error)

func CopyDirFromFS

func CopyDirFromFS(src, dest string, embeddedFS embed.FS) error

func GetInternalPrograms

func GetInternalPrograms() ([]string, error)

func ProgramFromExternal

func ProgramFromExternal(external string) (string, error)

ProgramFromExternal translate external string (probably from uname) to program

func SetupDirs

func SetupDirs(dest string) error

func TargetArmFromExternal

func TargetArmFromExternal(external string) (string, error)

TargetArmFromExternal translate external string (probably from uname) to targetArch

Types

type TargetArch

type TargetArch string

func TargetArchFromExternal

func TargetArchFromExternal(external string) (TargetArch, error)

TargetArchFromExternal translate external string (probably from uname) to targetArm

type TargetOS

type TargetOS string

func TargetOSFromExternal

func TargetOSFromExternal(external string) (TargetOS, error)

TargetOSFromExternal translate external string (probably from uname) to targetOS

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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