cidata

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NerdctlVersion = "0.11.2"
)

Variables

View Source
var (
	NerdctlFullDigests = map[limayaml.Arch]digest.Digest{
		limayaml.X8664:   "sha256:27dbb238f9eb248ca68f11b412670db51db84905e3583834400305b2149915f2",
		limayaml.AARCH64: "sha256:fe6322a88cb15d8a502e649827e3d1570210bb038b7a4a52820bce0fec86a637",
	}
)

Functions

func ExecuteTemplate

func ExecuteTemplate(args TemplateArgs) ([]iso9660util.Entry, error)

func GenerateISO9660

func GenerateISO9660(instDir, name string, y *limayaml.LimaYAML) error

func GuestAgentBinary

func GuestAgentBinary(arch string) (io.ReadCloser, error)

func ValidateTemplateArgs

func ValidateTemplateArgs(args TemplateArgs) error

Types

type Containerd

type Containerd struct {
	System bool
	User   bool
}

type Network

type Network struct {
	MACAddress string
	Name       string
}

type TemplateArgs

type TemplateArgs struct {
	Name         string // instance name
	User         string // user name
	UID          int
	SSHPubKeys   []string
	Mounts       []string // abs path, accessible by the User
	Containerd   Containerd
	Networks     []Network
	SlirpNICName string
	SlirpGateway string
	SlirpDNS     string
	Env          map[string]*string
	DNSAddresses []string
}

Jump to

Keyboard shortcuts

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