common

package
v0.0.0-...-90deddd Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ExecImageErrPrefix = "bootstrap execimage"

Variables

This section is empty.

Functions

func InstallImage

func InstallImage(image io.ReadCloser, args []string, imageName string) error

InstallImage reads a new image from its argument and replaces the current process with it. As a consequence, all state held by the caller is lost (pending requests, if any, etc) so its up to the caller to manage this interaction.

Types

type Image

type Image struct {
	Path string   `json:"path"`
	Name string   `json:"name"`
	Args []string `json:"args"`
}

Image is an image binary to be installed and executed on the bootstrap.

Jump to

Keyboard shortcuts

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