Documentation ¶
Index ¶
- func FromID(client *govmomi.Client, id string) (object.NetworkReference, error)
- func FromNameAndDVSUuid(client *govmomi.Client, name string, dc *object.Datacenter, dvsUUID string) (object.NetworkReference, error)
- func FromPath(client *govmomi.Client, name string, dc *object.Datacenter) (object.NetworkReference, error)
- func List(client *govmomi.Client) ([]*object.VmwareDistributedVirtualSwitch, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromNameAndDVSUuid ¶
func FromNameAndDVSUuid(client *govmomi.Client, name string, dc *object.Datacenter, dvsUUID string) (object.NetworkReference, error)
func FromPath ¶
func FromPath(client *govmomi.Client, name string, dc *object.Datacenter) (object.NetworkReference, error)
FromPath loads a network via its path.
A network is a usually one of three kinds of networks: a DVS port group, a host port group, or a "opaque" network, provided externally from something like NSX. All three of these can be used as a backing for a virtual ethernet card, which is usually what these helpers are used with.
Datacenter is optional here - if not provided, it's expected that the path is sufficient enough for finder to determine the datacenter required.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.