binary

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package binary handles embedding of the iPXE binaries.

Index

Constants

This section is empty.

Variables

View Source
var ErrPatchTooLong = errors.New("patch string is too long")

Files is the mapping to the embedded iPXE binaries.

View Source
var IpxeEFI []byte

IpxeEFI is the UEFI iPXE binary for x86 architectures.

View Source
var IpxeIMG []byte

IpxeIMG is the iPXE EFI image.

View Source
var IpxeISO []byte

IpxeISO is the iPXE ISO image.

View Source
var SNPAMD64 []byte

SNPAMD64 is the UEFI iPXE binary for AMD64 architectures.

View Source
var SNPARM64 []byte

SNPARM64 is the UEFI iPXE binary for ARM architectures.

View Source
var Undionly []byte

Undionly is the BIOS iPXE binary for x86 architectures.

Functions

func Patch

func Patch(content, patch []byte) ([]byte, error)

Replace the magic string in the content with the patch. Returns the original content when the patch is empty or the magic string is not found, and returns an error when the patch is too long.

Types

This section is empty.

Jump to

Keyboard shortcuts

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