network

package module
v0.0.0-...-646da89 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2014 License: BSD-2-Clause Imports: 10 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupUUID

func LookupUUID(db map[string]interface{}, field map[string]interface{}) string

Types

type DeviceAddress

type DeviceAddress struct {
	DeviceAddressID int
	DeviceUUID      string
	Address         string
}

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 GetNetwork(db map[string]interface{}, field map[string]interface{}) *Network

func GetNetworks

func GetNetworks(db *gorp.DbMap) []Network

func (*Network) Delete

func (network *Network) Delete(db *gorp.DbMap) error

func (*Network) IsOnline

func (network *Network) IsOnline() bool

func (*Network) MarshalJSON

func (network *Network) MarshalJSON() ([]byte, error)

func (*Network) Persist

func (network *Network) Persist(db *gorp.DbMap) error

func (*Network) PostGet

func (network *Network) PostGet(s gorp.SqlExecutor) error

func (*Network) Start

func (network *Network) Start() error

func (*Network) Stop

func (network *Network) Stop() error

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) Delete

func (device *NetworkDevice) Delete(db *gorp.DbMap) 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

type NetworkPhysical struct {
	NetworkPhysicalID int
	NetworkUUID       string
	Device            string
}

type Route

type Route struct {
	RouteID     int
	VmUUID      string
	Source      string
	Destination string
}

Jump to

Keyboard shortcuts

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