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 NewMissingPortGroupReferenceError(message string) error
- func Properties(pg *object.DistributedVirtualPortgroup) (*mo.DistributedVirtualPortgroup, error)
- type MissingPortGroupReferenceError
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 NewMissingPortGroupReferenceError ¶ added in v1.4.1
NewMissingPortGroupReferenceError returns a MissingPortGroupReferenceError with the supplied message.
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 ¶
type MissingPortGroupReferenceError ¶ added in v1.4.1
type MissingPortGroupReferenceError struct {
// contains filtered or unexported fields
}
MissingPortGroupReferenceError is an error that gets returned when a port group lookup succeeds but does not return a MO to a DistributedVirtualPortgroup.
func (*MissingPortGroupReferenceError) Error ¶ added in v1.4.1
func (e *MissingPortGroupReferenceError) Error() string
Click to show internal directories.
Click to hide internal directories.