network

package
v0.0.0-...-26687db Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromID

func FromID(client *govmomi.Client, id string) (object.NetworkReference, error)

FromID loads a network via its managed object reference ID.

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.

Jump to

Keyboard shortcuts

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