libvirt

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnusedFlag uint32 = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	*libvirt.Libvirt
}

func New

func New(libvirt *libvirt.Libvirt) *Manager

func (*Manager) Create

func (m *Manager) Create(name string, cfg *vm.Config) error

func (*Manager) Get

func (m *Manager) Get(name string) (*vm.VM, error)

func (*Manager) List

func (m *Manager) List() ([]vm.VM, error)

func (*Manager) ListDetail

func (m *Manager) ListDetail() error

func (*Manager) Remove

func (m *Manager) Remove(name string) error

Remove removes the domain and its volumes

func (*Manager) Shutdown

func (m *Manager) Shutdown(name string, force bool) error

func (*Manager) Start

func (m *Manager) Start(name string) error

Jump to

Keyboard shortcuts

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