Documentation ¶
Index ¶
- func LookupUUID(db map[string]interface{}, field map[string]interface{}) string
- type DeviceAddress
- type DeviceOption
- type Network
- func (network *Network) Delete(db *gorp.DbMap) error
- func (network *Network) IsOnline() bool
- func (network *Network) MarshalJSON() ([]byte, error)
- func (network *Network) Persist(db *gorp.DbMap) error
- func (network *Network) PostGet(s gorp.SqlExecutor) error
- func (network *Network) Start() error
- func (network *Network) Stop() error
- type NetworkDevice
- func (device *NetworkDevice) BringGuestOnline(vm VirtualMachine.VirtualMachine) error
- func (device *NetworkDevice) BringHostOnline() error
- func (device *NetworkDevice) BringOffline() error
- func (device *NetworkDevice) Delete(db *gorp.DbMap) error
- func (device *NetworkDevice) IsOnline() bool
- func (device *NetworkDevice) MarshalJSON() ([]byte, error)
- func (device *NetworkDevice) Persist(db *gorp.DbMap, vm VirtualMachine.VirtualMachine) error
- func (device *NetworkDevice) PostGet(s gorp.SqlExecutor) error
- type NetworkDeviceJSON
- type NetworkJSON
- type NetworkPhysical
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupUUID ¶
Types ¶
type DeviceAddress ¶
func FindAddress ¶
func FindAddress(addresses []*DeviceAddress, address *DeviceAddress) *DeviceAddress
type DeviceOption ¶
type DeviceOption struct { DeviceOptionID int DeviceUUID string OptionKey string OptionValue string }
func FindOption ¶
func FindOption(options []*DeviceOption, option *DeviceOption) *DeviceOption
type Network ¶
type Network struct { UUID string Name string DeviceID int Options []*DeviceOption `db:"-"` Addresses []*DeviceAddress `db:"-"` Physicals []*NetworkPhysical `db:"-"` }
func GetNetwork ¶
func GetNetworks ¶
func (*Network) MarshalJSON ¶
type NetworkDevice ¶
type NetworkDevice struct { UUID string DeviceID int Options []*DeviceOption `db:"-"` Addresses []*DeviceAddress `db:"-"` Network *Network `db:"-"` NetworkUUID string VmUUID string }
func FindDevice ¶
func FindDevice(devices []*NetworkDevice, device *NetworkDevice) *NetworkDevice
func GetNetworkDevices ¶
func GetNetworkDevices(db map[string]interface{}, vm VirtualMachine.VirtualMachine) []*NetworkDevice
func (*NetworkDevice) BringGuestOnline ¶
func (device *NetworkDevice) BringGuestOnline(vm VirtualMachine.VirtualMachine) error
func (*NetworkDevice) BringHostOnline ¶
func (device *NetworkDevice) BringHostOnline() error
func (*NetworkDevice) BringOffline ¶
func (device *NetworkDevice) BringOffline() error
func (*NetworkDevice) IsOnline ¶
func (device *NetworkDevice) IsOnline() bool
func (*NetworkDevice) MarshalJSON ¶
func (device *NetworkDevice) MarshalJSON() ([]byte, error)
func (*NetworkDevice) Persist ¶
func (device *NetworkDevice) Persist(db *gorp.DbMap, vm VirtualMachine.VirtualMachine) error
func (*NetworkDevice) PostGet ¶
func (device *NetworkDevice) PostGet(s gorp.SqlExecutor) error
type NetworkDeviceJSON ¶
type NetworkDeviceJSON struct { UUID string DeviceID int Status string Options []*DeviceOption Addresses []*DeviceAddress Network *Network }
type NetworkJSON ¶
type NetworkJSON struct { UUID string DeviceID int Name string Status string Options []*DeviceOption Addresses []*DeviceAddress Physicals []*NetworkPhysical }
type NetworkPhysical ¶
Click to show internal directories.
Click to hide internal directories.