libvirtn

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BRIDGE = BridgeMgr{
	Bridges: make([]Bridge, 0, 32),
}

Functions

func AddHyperListener

func AddHyperListener(listen HyperListener)

Types

type Bridge

type Bridge struct {
	Name string `json:"name"`
	Type string `json:"type"` // bridge, ovs etc.
}

type BridgeMgr

type BridgeMgr struct {
	Bridges []Bridge `json:"bridge"`
}

func (*BridgeMgr) List

func (br *BridgeMgr) List() []Bridge

type DHCP

type DHCP struct {
}

type HyperListener

type HyperListener struct {
	Opened func(Conn *libvirt.Connect) error
	Closed func(Conn *libvirt.Connect) error
}

type HyperVisor

type HyperVisor struct {
	Name     string
	Conn     *libvirt.Connect
	Listener []HyperListener
}

func GetHyper

func GetHyper() (*HyperVisor, error)

func SetHyper

func SetHyper(name string) (*HyperVisor, error)

func (*HyperVisor) AddListener

func (h *HyperVisor) AddListener(listen HyperListener)

func (*HyperVisor) Close

func (h *HyperVisor) Close()

func (*HyperVisor) Open

func (h *HyperVisor) Open() error

type Network

type Network struct {
}

Jump to

Keyboard shortcuts

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