cli

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse()

func Validate

func Validate() error

Types

type Context

type Context struct {
	Name            string
	VersionsPath    string
	LogPath         string
	SocketPath      string
	IsCliMode       bool
	LockFile        string
	ExecutablePath  string
	BindPID         int
	EventSocketPath string
	PowerSaveMode   bool
	KernelDebug     bool
	ExtendShareDir  map[string]string

	Endpoint          string
	SSHPort           int
	SSHKeyPath        string
	SSHPrivateKeyPath string
	SSHPublicKeyPath  string
	SSHPublicKey      string

	ForwardSocketPath     string
	SocketNetworkPath     string
	SocketInitrdVSockPath string
	SocketReadyPath       string
	RestfulSocketPath     string
	TimeSyncSocketPath    string
	SSHAuthSocketPath     string

	CPUS         uint
	MemoryBytes  uint64
	KernelPath   string
	InitrdPath   string
	RootfsPath   string
	TargetPath   string
	DiskDataPath string
	DiskTmpPath  string
}

func Init

func Init() *Context

func (*Context) PreSetup

func (c *Context) PreSetup() error

func (*Context) Setup

func (c *Context) Setup() error

Jump to

Keyboard shortcuts

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