Documentation ¶
Index ¶
- Variables
- func CloudProfileConfigFromCluster(cluster *controller.Cluster) (*api.CloudProfileConfig, error)
- func FindAMIForRegionFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, ...) (string, error)
- func FindDataVolumeByName(dataVolumes []api.DataVolume, name string) *api.DataVolume
- func FindInstanceProfileForPurpose(instanceProfiles []api.InstanceProfile, purpose string) (*api.InstanceProfile, error)
- func FindMachineImage(machineImages []api.MachineImage, name, version string) (*api.MachineImage, error)
- func FindRoleForPurpose(roles []api.Role, purpose string) (*api.Role, error)
- func FindSecurityGroupForPurpose(securityGroups []api.SecurityGroup, purpose string) (*api.SecurityGroup, error)
- func FindSubnetForPurpose(subnets []api.Subnet, purpose string) (*api.Subnet, error)
- func FindSubnetForPurposeAndZone(subnets []api.Subnet, purpose, zone string) (*api.Subnet, error)
- func InfrastructureConfigFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureConfig, error)
Constants ¶
This section is empty.
Variables ¶
var ( // Scheme is a scheme with the types relevant for OpenStack actuators. Scheme *runtime.Scheme )
Functions ¶
func CloudProfileConfigFromCluster ¶
func CloudProfileConfigFromCluster(cluster *controller.Cluster) (*api.CloudProfileConfig, error)
CloudProfileConfigFromCluster decodes the provider specific cloud profile configuration for a cluster
func FindAMIForRegionFromCloudProfile ¶
func FindAMIForRegionFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, imageName, imageVersion, regionName string) (string, error)
FindAMIForRegionFromCloudProfile takes a list of machine images, and the desired image name, version, and region. It tries to find the image with the given name and version in the desired region. If it cannot be found then an error is returned.
func FindDataVolumeByName ¶ added in v1.9.0
func FindDataVolumeByName(dataVolumes []api.DataVolume, name string) *api.DataVolume
FindDataVolumeByName takes a list of data volumes and a data volume name. It tries to find the data volume entry for the given name. If it cannot find it then `nil` will be returned.
func FindInstanceProfileForPurpose ¶
func FindInstanceProfileForPurpose(instanceProfiles []api.InstanceProfile, purpose string) (*api.InstanceProfile, error)
FindInstanceProfileForPurpose takes a list of instance profiles 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 FindMachineImage ¶
func FindMachineImage(machineImages []api.MachineImage, name, version string) (*api.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 region. If no such entry is found then an error will be returned.
func FindRoleForPurpose ¶
FindRoleForPurpose takes a list of roles 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 FindSecurityGroupForPurpose ¶
func FindSecurityGroupForPurpose(securityGroups []api.SecurityGroup, purpose string) (*api.SecurityGroup, error)
FindSecurityGroupForPurpose 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 FindSubnetForPurpose ¶
FindSubnetForPurpose 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.
func FindSubnetForPurposeAndZone ¶
FindSubnetForPurposeAndZone takes a list of subnets 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.
func InfrastructureConfigFromInfrastructure ¶
func InfrastructureConfigFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureConfig, error)
InfrastructureConfigFromInfrastructure extracts the InfrastructureConfig from the ProviderConfig section of the given Infrastructure.
Types ¶
This section is empty.