Documentation ¶
Index ¶
- Constants
- Variables
- func Copy_base(base string, user uint, name string)
- func Create_config(vmname string, c *model.ConfigInput) (*string, error)
- func Initfs(l string, auth_host []string)
- func Usb_info() [][]string
- func Vmfile(user uint, name string) string
- type Libvirt
- func (l *Libvirt) AttachDevice(vm model.Vm, hdev model.Hostdev) error
- func (l *Libvirt) Close()
- func (l *Libvirt) Create(vm model.Vm, uid uint, config_path *string)
- func (l *Libvirt) Destroy(query string) error
- func (l *Libvirt) DetachDevice(vm model.Vm, hdev model.Hostdev) error
- func (l *Libvirt) ForceOFF(query string) error
- func (l *Libvirt) Init()
- func (l *Libvirt) List()
- func (l *Libvirt) Listt()
- func (l *Libvirt) PowerOn(query string) error
- func (l *Libvirt) Shutdown(query string) error
- type Metadata
- type Nconfig
- type Net
- type Provider
- type Subnet
- type Uconfig
- type Udata
Constants ¶
View Source
const HOST = 1
View Source
const METHOD = 0
Variables ¶
View Source
var Connection []string
View Source
var Location string
Functions ¶
func Create_config ¶
func Create_config(vmname string, c *model.ConfigInput) (*string, error)
Types ¶
type Libvirt ¶
type Libvirt struct {
// contains filtered or unexported fields
}
func (*Libvirt) AttachDevice ¶
func (*Libvirt) DetachDevice ¶
type Provider ¶
type Provider interface { Init() Create(vm model.Vm, uid uint, config_path *string) AttachDevice(vm model.Vm, dev model.Hostdev) error DetachDevice(vm model.Vm, dev model.Hostdev) error List() Listt() Shutdown(query string) error Destroy(query string) error ForceOFF(query string) error PowerOn(query string) error Close() }
Click to show internal directories.
Click to hide internal directories.