binary

package
v0.0.0-...-e82d67b Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 3 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")
View Source
var Files = map[string][]byte{
	"undionly.kpxe": Undionly,
	"ipxe.efi":      IpxeEFI,
	"snp.efi":       SNP,
	"ipxe.iso":      IpxeISO,
}

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 IpxeISO []byte

IpxeISO is the iPXE ISO image.

View Source
var SNP []byte

SNP 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