gopkhostmgmt

package module
v0.0.0-...-beef123 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 2 Imported by: 0

README

go-pkhostmgmt

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostVm

type HostVm struct {
	Name      string `yaml:"name"`
	IpAddress string `yaml:"ip_addr"`
	Cpu       int    `yaml:"num_cpus"`
	Memory    int    `yaml:"ram"`
	GpuAddr   string `yaml:"gpu_addr"`
}

type PkHostConfig

type PkHostConfig struct {
	Name string `yaml:"name"`
}

func NewConfigFromFile

func NewConfigFromFile(configPath string) (*PkHostConfig, error)

type PkHostUser

type PkHostUser struct {
	Name         string `yaml:"name"`
	PasswordHash string `yaml:"password"`
	SshKey       string `yaml:"key"`
}

type PlaykeyConfig

type PlaykeyConfig struct {
	Hostname       string   `yaml:"name"`
	VmTemplate     string   `yaml:"template"`
	SystemSnapshot string   `yaml:"system_snapshot"`
	HostCpus       int      `yaml:"host_cpus"`
	HostMemory     int      `yaml:"host_mem"`
	Vms            []HostVm `yaml:"vms"`
}

Jump to

Keyboard shortcuts

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