Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindSecurityGroupByPurpose ¶
func FindSecurityGroupByPurpose(securityGroups []alicloud.SecurityGroup, purpose alicloud.Purpose) (*alicloud.SecurityGroup, error)
FindSecurityGroupByPurpose takes a list of security groups and tries to find the first entry whose purpose matches with the given purpose. If no such entry is found then an error will be returned.
func FindVSwitchForPurposeAndZone ¶
func FindVSwitchForPurposeAndZone(vswitches []alicloud.VSwitch, purpose alicloud.Purpose, zone string) (*alicloud.VSwitch, error)
FindVSwitchForPurposeAndZone takes a list of vswitches and tries to find the first entry whose purpose and zone matches with the given purpose and zone. If no such entry is found then an error will be returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.