initd

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const InitdPort = 64242
View Source
const InitdPortStr = "64242"

Variables

This section is empty.

Functions

This section is empty.

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 Mounts

type Mounts struct {
	MountPath  string
	DevicePath string
}

type NetworkConfig

type NetworkConfig struct {
	IPConfigs      []IPConfig
	DefaultGateway string
}

type SignalOptions

type SignalOptions struct {
	Signal int
}

type Status

type Status struct {
	Ok bool `json:"ok"`
}

type WaitResult

type WaitResult struct {
	ExitCode int `json:"exit_code"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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