utils

package
v0.0.0-...-27a4c36 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler struct {
	ExecPath string
}

Compiler is a compiler for iPXE.

func (*Compiler) Build

func (c *Compiler) Build(embedPath, platform, driver, extension string, stdoutChan, stderrChan chan string, doneChan chan string, errChan chan error)

Build builds iPXE.

type Embedder

type Embedder struct {
	File string
}

Embedder manages the script that is to be embedded.

func (*Embedder) Init

func (e *Embedder) Init() error

Init creates the file to be embedded if it does not yet exist.

func (*Embedder) Write

func (e *Embedder) Write(content string) error

Write writes to the file that is to be embedded.

type Extractor

type Extractor struct {
	BasePath, ArchivePath, ArchiveOutPath string
}

Extractor manages extraction of bundled assets.

func (*Extractor) Extract

func (e *Extractor) Extract() error

Extract extracts the bundled iPXE source code.

Jump to

Keyboard shortcuts

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