embed

package
v0.1.147 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedPlatforms = []Platform{
	{OS: "darwin", Arch: "amd64"},
	{OS: "darwin", Arch: "arm64"},
	{OS: "linux", Arch: "amd64"},
	{OS: "linux", Arch: "arm64"},
}

SupportedPlatforms lists all platforms we build shims for

Functions

func GetShim

func GetShim() ([]byte, error)

GetShim returns the shim binary for the current platform

func GetShimForPlatform

func GetShimForPlatform(p Platform) ([]byte, error)

GetShimForPlatform returns the shim binary for a specific platform

func HasShim

func HasShim(p Platform) bool

HasShim checks if a shim exists for the given platform

Types

type Platform

type Platform struct {
	OS   string
	Arch string
}

Platform represents a target OS/architecture combination

func Current

func Current() Platform

Current returns the platform of the running system

func (Platform) String

func (p Platform) String() string

Jump to

Keyboard shortcuts

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