Documentation
¶
Index ¶
- Constants
- Variables
- func InitTPMConfig(ctx context.Context, cfg *Config) error
- type Config
- type Link
- type Service
- func (svc *Service) AddConnection(conn *wiringapi.Connection) error
- func (svc *Service) AddControlHostFwdLink(vm *VM) error
- func (svc *Service) AddLink(local wiringapi.IPort, dest wiringapi.IPort) error
- func (svc *Service) AddNullLink(local wiringapi.IPort) error
- func (svc *Service) AddVM(name string, os VMOS, control bool) error
- func (svc *Service) List() error
- func (svc *Service) SSH(name string, args []string) error
- func (svc *Service) Serial(name string) error
- func (svc *Service) StartServer(killStaleVMs bool, compact bool, installComplete bool, runComplete string) error
- type VM
- func (vm *VM) Prepare(ctx context.Context, cfg *Config) error
- func (vm *VM) Run(ctx context.Context, eg *errgroup.Group)
- func (vm *VM) RunInstall(ctx context.Context) func() error
- func (vm *VM) RunTPM(ctx context.Context) func() error
- func (vm *VM) RunVM(ctx context.Context) func() error
- func (vm *VM) UUID() string
- type VMOS
Constants ¶
View Source
const ( MAC_ADDR_TMPL = "0c:20:12:fe:%02d:%02d" // if changing update onie-qcow2-eeprom-edit config too KUBE_PORT = 6443 REGISTRY_PORT = 31000 SSH_PORT_BASE = 22000 IF_PORT_BASE = 30000 IF_PORT_NULL = IF_PORT_BASE + 9000 IF_PORT_VM_ID_MULT = 100 IF_PORT_PORT_ID_MULT = 1 )
View Source
const ( VM_SELECTOR_SSH = "ssh" VM_SELECTOR_ALL = "all" )
Variables ¶
View Source
var RequiredCommands = []string{
"qemu-system-x86_64",
"qemu-img",
"tpm2",
"swtpm_setup",
"ssh",
"scp",
"sudo",
}
View Source
var SSH_QUIET_FLAGS = []string{
"-o", "GlobalKnownHostsFile=/dev/null",
"-o", "UserKnownHostsFile=/dev/null",
"-o", "StrictHostKeyChecking=no",
"-o", "LogLevel=ERROR",
}
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AddConnection ¶
func (svc *Service) AddConnection(conn *wiringapi.Connection) error
func (*Service) AddControlHostFwdLink ¶
func (*Service) AddNullLink ¶ added in v0.3.2
Click to show internal directories.
Click to hide internal directories.