Documentation ¶
Index ¶
- Variables
- func CloudProfileConfigFromCluster(cluster *controller.Cluster) (*api.CloudProfileConfig, error)
- func FindImageForRegionFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, ...) (string, error)
- func FindMachineImage(configImages []api.MachineImage, imageName, imageVersion string) (*api.MachineImage, error)
- func FindSecurityGroupByPurpose(securityGroups []api.SecurityGroup, purpose api.Purpose) (*api.SecurityGroup, error)
- func FindVSwitchForPurposeAndZone(vswitches []api.VSwitch, purpose api.Purpose, zone string) (*api.VSwitch, 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 FindImageForRegionFromCloudProfile ¶
func FindImageForRegionFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, imageName, imageVersion, regionName string) (string, error)
FindImageForRegionFromCloudProfile 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 FindMachineImage ¶
func FindMachineImage(configImages []api.MachineImage, imageName, imageVersion string) (*api.MachineImage, error)
FindMachineImage takes a list of machine images and tries to find the first entry whose name and version matches with the given name and version. If no such entry is found then an error will be returned.
func FindSecurityGroupByPurpose ¶
func FindSecurityGroupByPurpose(securityGroups []api.SecurityGroup, purpose api.Purpose) (*api.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 []api.VSwitch, purpose api.Purpose, zone string) (*api.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.
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.