Documentation ¶
Index ¶
- func Create(client *govmomi.Client, dvs *object.VmwareDistributedVirtualSwitch, ...) (*object.Task, error)
- func FromKey(client *govmomi.Client, dvsUUID, pgKey string) (*object.DistributedVirtualPortgroup, error)
- func FromMOID(client *govmomi.Client, id string) (*object.DistributedVirtualPortgroup, error)
- func FromPath(client *govmomi.Client, name string, dc *object.Datacenter) (*object.DistributedVirtualPortgroup, error)
- func Properties(pg *object.DistributedVirtualPortgroup) (*mo.DistributedVirtualPortgroup, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(client *govmomi.Client, dvs *object.VmwareDistributedVirtualSwitch, spec types.DVPortgroupConfigSpec) (*object.Task, error)
Create exposes the CreateDVPortgroup_Task method of the DistributedVirtualSwitch MO. This local implementation may go away if this is exposed in the higher-level object upstream.
func FromKey ¶
func FromKey(client *govmomi.Client, dvsUUID, pgKey string) (*object.DistributedVirtualPortgroup, error)
FromKey gets a portgroup object from its key.
func FromPath ¶
func FromPath(client *govmomi.Client, name string, dc *object.Datacenter) (*object.DistributedVirtualPortgroup, error)
FromPath gets a portgroup object from its path.
func Properties ¶
func Properties(pg *object.DistributedVirtualPortgroup) (*mo.DistributedVirtualPortgroup, error)
Properties is a convenience method that wraps fetching the portgroup MO from its higher-level object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.