Documentation ¶
Overview ¶
Package trunk_details provides the ability to extend a ports result with additional information about any trunk and subports associated with the port.
Example:
type portExt struct { ports.Port trunk_details.TrunkDetailsExt } var portExt portExt err := ports.Get(networkClient, "2ba3a709-e40e-462c-a541-85e99de589bf").ExtractInto(&portExt) if err != nil { panic(err) } fmt.Printf("%+v\n", portExt)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrunkDetails ¶
type TrunkDetails struct { // trunk_id contains the UUID of the trunk TrunkID string `json:"trunk_id"` // sub_ports contains a list of subports associated with the trunk SubPorts []Subport `json:"sub_ports,omitempty"` }
TrunkDetails contains additional trunking information returned in a ports query.
type TrunkDetailsExt ¶
type TrunkDetailsExt struct { // trunk_details contains details of any trunk associated with the port TrunkDetails `json:"trunk_details,omitempty"` }
TrunkDetailsExt represents additional trunking information returned in a ports query.
Click to show internal directories.
Click to hide internal directories.