libvirt

package
v0.0.0-...-89dc3a7 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Libvirt

type Libvirt struct {
	// contains filtered or unexported fields
}

func New

func New(uri, storagePath, transportNetwork string) (*Libvirt, error)

func (*Libvirt) CreateMachine

func (lv *Libvirt) CreateMachine(machine *models.Machine) error

func (*Libvirt) CreateNetwork

func (lv *Libvirt) CreateNetwork(network *models.Network) error

CreateNetwork ensures that the specified network exists on the machine.

func (*Libvirt) DeleteMachine

func (lv *Libvirt) DeleteMachine(machine *models.Machine) error

func (*Libvirt) GetMachineState

func (lv *Libvirt) GetMachineState(id string) (models.MachineState, error)

func (*Libvirt) RebootMachine

func (lv *Libvirt) RebootMachine(machine *models.Machine) error

RebootMachine reboots an active machine.

func (*Libvirt) StartMachine

func (lv *Libvirt) StartMachine(machine *models.Machine) error

StartMachine starts a new machine.

func (*Libvirt) StopMachine

func (lv *Libvirt) StopMachine(machine *models.Machine) error

StopMachines stops an active machine.

Jump to

Keyboard shortcuts

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