virtualnetworkadapter

package
v0.3.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GuestNetworkAdapterConfiguration

type GuestNetworkAdapterConfiguration struct {
	*v2.Msvm_GuestNetworkAdapterConfiguration
}

func NewGuestNetworkAdapterConfiguration

func NewGuestNetworkAdapterConfiguration(instance *wmi.WmiInstance) (*GuestNetworkAdapterConfiguration, error)

NewGuestNetworkAdapterConfiguration

func (*GuestNetworkAdapterConfiguration) GetIPAddresses

func (gnac *GuestNetworkAdapterConfiguration) GetIPAddresses() (ipv4s, ipv6s []string, err error)

type SyntheticNetworkAdapter added in v0.2.2

type SyntheticNetworkAdapter struct {
	*v2.Msvm_SyntheticEthernetPortSettingData
}

func NewSyntheticNetworkAdapter added in v0.2.2

func NewSyntheticNetworkAdapter(instance *wmi.WmiInstance) (*SyntheticNetworkAdapter, error)

NewSyntheticNetworkAdapter

func (*SyntheticNetworkAdapter) InitializeIdentifier added in v0.2.2

func (sna *SyntheticNetworkAdapter) InitializeIdentifier() (err error)

func (*SyntheticNetworkAdapter) Rename added in v0.2.2

func (sna *SyntheticNetworkAdapter) Rename(newName string) (err error)

func (*SyntheticNetworkAdapter) SetMACAddress added in v0.2.2

func (sna *SyntheticNetworkAdapter) SetMACAddress(mac string) (err error)

type VirtualNetworkAdapter

type VirtualNetworkAdapter struct {
	*switchport.EthernetPortAllocationSettingData
}

func NewVirtualNetworkAdapter

func NewVirtualNetworkAdapter(instance *wmi.WmiInstance) (*VirtualNetworkAdapter, error)

NewVirtualNetworkAdapter

func (*VirtualNetworkAdapter) CloneEx1 added in v0.2.2

func (*VirtualNetworkAdapter) GetEthernetPortAllocationSettingData added in v0.2.2

func (vna *VirtualNetworkAdapter) GetEthernetPortAllocationSettingData() (epas *switchport.EthernetPortAllocationSettingData, err error)

func (*VirtualNetworkAdapter) GetGuestNetworkAdapterConfiguration

func (vna *VirtualNetworkAdapter) GetGuestNetworkAdapterConfiguration() (*GuestNetworkAdapterConfiguration, error)

func (*VirtualNetworkAdapter) GetGuestNetworkAdapterInstanceID

func (vna *VirtualNetworkAdapter) GetGuestNetworkAdapterInstanceID() (id string, err error)

func (*VirtualNetworkAdapter) GetIPv4Address

func (vna *VirtualNetworkAdapter) GetIPv4Address() (ip string, err error)

func (*VirtualNetworkAdapter) GetVirtualMachine

func (vna *VirtualNetworkAdapter) GetVirtualMachine() (instance *wmi.WmiInstance, err error)

GetVirtualMachine gets the VM that the adapter is attached to

func (*VirtualNetworkAdapter) Rename

func (vna *VirtualNetworkAdapter) Rename(newName string) (err error)

func (*VirtualNetworkAdapter) SetMACAddress

func (vna *VirtualNetworkAdapter) SetMACAddress(mac string) (err error)

type VirtualNetworkAdapterCollection

type VirtualNetworkAdapterCollection []*VirtualNetworkAdapter

func NewVirtualNetworkAdapterCollection

func NewVirtualNetworkAdapterCollection(instances []*wmi.WmiInstance) (col VirtualNetworkAdapterCollection, err error)

func (*VirtualNetworkAdapterCollection) Close

func (vms *VirtualNetworkAdapterCollection) Close() (err error)

func (*VirtualNetworkAdapterCollection) String

type VirtualNetworkAdapterMonitor

type VirtualNetworkAdapterMonitor struct {
	*monitor.Monitor
}

func CreateVirtualNetworkAdapterMonitor

func CreateVirtualNetworkAdapterMonitor(callbackContext interface{},
	callbackFunction func(interface{}, string)) *VirtualNetworkAdapterMonitor

CreateVirtualNetworkAdapterMonitor createa a new VirtualNetworkAdapterMonitor

func (*VirtualNetworkAdapterMonitor) AddEntityToMonitorAdapterChanges

func (m *VirtualNetworkAdapterMonitor) AddEntityToMonitorAdapterChanges(entityName, instanceID string) error

func (*VirtualNetworkAdapterMonitor) AddEntityToMonitorForGuestNetworkChanges

func (m *VirtualNetworkAdapterMonitor) AddEntityToMonitorForGuestNetworkChanges(entityName, instanceID string) error

func (*VirtualNetworkAdapterMonitor) AddEntityToMonitorPortChanges

func (m *VirtualNetworkAdapterMonitor) AddEntityToMonitorPortChanges(entityName, instanceID string) error

Jump to

Keyboard shortcuts

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