vminit

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunInit

func RunInit()

Types

type Config

type Config struct {
	ImageConfig        *ImageConfig
	UserOverride       string
	EntrypointOverride []string
	CmdOverride        []string
	Hostname           string
	ExtraEnv           []string
	RootDevice         string
	Mounts             []Mounts

	EtcResolv EtcResolv
	EtcHost   []EtcHost
	Network   NetworkConfig
}

func DecodeConfig

func DecodeConfig(path string) (Config, error)

type EtcHost

type EtcHost struct {
	Host string
	IP   string
	Desc string
}

type EtcResolv

type EtcResolv struct {
	Nameservers []string
}

type IPConfig

type IPConfig struct {
	IPNet     string
	Broadcast string
	Gateway   string
}

type ImageConfig

type ImageConfig struct {
	Cmd        []string
	Entrypoint []string
	Env        []string
	WorkingDir *string
	User       *string
}

type Mount

type Mount struct {
	Source      string
	Destination string
	FsType      string
	Flags       uintptr
	Data        string
}

type Mounts

type Mounts struct {
	MountPath  string
	DevicePath string
}

type NetworkConfig

type NetworkConfig struct {
	IPConfigs      []IPConfig
	DefaultGateway string
}

Jump to

Keyboard shortcuts

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