bundle

package
v0.0.0-...-b764b01 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed files/bin/hyperkit files/bin/machine-driver-hyperkit files/bin/qcow-tool files/machine/image.qcow2.bz2 files/machine/kernel files/machine/initrd.img files/machine/UEFI.fd files/machine/machine.yaml
	FS       embed.FS
	Binaries = map[string]string{
		"hyperkit":                "files/bin/hyperkit",
		"machine-driver-hyperkit": "files/bin/machine-driver-hyperkit",
		"qcow-tool":               "files/bin/qcow-tool",
	}
	Machine = map[string]string{
		"image.qcow2.bz2": "files/machine/image.qcow2.bz2",
		"kernel":          "files/machine/kernel",
		"initrd.img":      "files/machine/initrd.img",
		"machine.yaml":    "files/machine/machine.yaml",
		"UEFI.fd":         "files/machine/UEFI.fd",
	}
)
View Source
var Version = "0.0.0-dev"

Functions

func UnbundleBin

func UnbundleBin(path string) error

func UnbundleMachine

func UnbundleMachine(path string) error

Types

type Bundle

type Bundle struct {
	Version     string
	CommandLine string   `yaml:"commandline"`
	HyperKit    HyperKit `yaml:"hyperkit,omitempty"`
}

type BundleVersion

type BundleVersion struct {
	Bundle Bundle
}

func NewVersionFromBundle

func NewVersionFromBundle() (*BundleVersion, error)

func (*BundleVersion) String

func (b *BundleVersion) String() string

type HyperKit

type HyperKit struct {
	Image  string
	Kernel string
	Initrd string
}

Jump to

Keyboard shortcuts

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