ipxe

package
v5.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package ipxe aims to implement a trivial IPXE configuration handler.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotIpxeScript is returned when the config file is not an
	// ipxe script.
	ErrNotIpxeScript = errors.New("config file is not ipxe as it does not start with #!ipxe")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	BootImage *boot.LinuxImage
	// contains filtered or unexported fields
}

Config encapsulates a parsed ipxe configuration file.

We currently only support kernel and initrd commands.

func NewConfig

func NewConfig(configURL *url.URL) (*Config, error)

NewConfig returns a new IPXE configuration with the file at URL and default schemes.

See NewConfigWithSchemes for more details.

func NewConfigWithSchemes

func NewConfigWithSchemes(configURL *url.URL, s pxe.Schemes) (*Config, error)

NewConfigWithSchemes returns a new IPXE configuration with the file at URL and schemes `s`.

`s` is used to get files referred to by URLs in the configuration.

Jump to

Keyboard shortcuts

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