Documentation ¶
Index ¶
- func FindMachineImage(machineImages []openstack.MachineImage, name, version, cloudProfile string) (*openstack.MachineImage, error)
- func FindSecurityGroupByPurpose(securityGroups []openstack.SecurityGroup, purpose openstack.Purpose) (*openstack.SecurityGroup, error)
- func FindSubnetByPurpose(subnets []openstack.Subnet, purpose openstack.Purpose) (*openstack.Subnet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMachineImage ¶
func FindMachineImage(machineImages []openstack.MachineImage, name, version, cloudProfile string) (*openstack.MachineImage, error)
FindMachineImage takes a list of machine images and tries to find the first entry whose name, version, and zone matches with the given name, version, and cloud profile. If no such entry is found then an error will be returned.
func FindSecurityGroupByPurpose ¶
func FindSecurityGroupByPurpose(securityGroups []openstack.SecurityGroup, purpose openstack.Purpose) (*openstack.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 FindSubnetByPurpose ¶
func FindSubnetByPurpose(subnets []openstack.Subnet, purpose openstack.Purpose) (*openstack.Subnet, error)
FindSubnetByPurpose takes a list of subnets 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.