Documentation ¶
Index ¶
- Variables
- func CloudProfileConfigFromCluster(cluster *controller.Cluster) (*api.CloudProfileConfig, error)
- func FindAvailabilitySetByPurpose(availabilitySets []api.AvailabilitySet, purpose api.Purpose) (*api.AvailabilitySet, error)
- func FindDomainCountByRegion(domainCounts []api.DomainCount, region string) (int32, error)
- func FindImageFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, imageName, imageVersion string) (*api.MachineImage, error)
- func FindMachineImage(machineImages []api.MachineImage, name, version string) (*api.MachineImage, error)
- func FindRouteTableByPurpose(routeTables []api.RouteTable, purpose api.Purpose) (*api.RouteTable, error)
- func FindSecurityGroupByPurpose(securityGroups []api.SecurityGroup, purpose api.Purpose) (*api.SecurityGroup, error)
- func FindSubnetByPurpose(subnets []api.Subnet, purpose api.Purpose) (*api.Subnet, error)
- func InfrastructureConfigFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureConfig, error)
- func InfrastructureStatusFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureStatus, 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 FindAvailabilitySetByPurpose ¶
func FindAvailabilitySetByPurpose(availabilitySets []api.AvailabilitySet, purpose api.Purpose) (*api.AvailabilitySet, error)
FindAvailabilitySetByPurpose takes a list of availability sets 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 FindDomainCountByRegion ¶
func FindDomainCountByRegion(domainCounts []api.DomainCount, region string) (int32, error)
FindDomainCountByRegion takes a region and the domain counts and finds the count for the given region.
func FindImageFromCloudProfile ¶
func FindImageFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, imageName, imageVersion string) (*api.MachineImage, error)
FindImageFromCloudProfile takes a list of machine images, and the desired image name and version. It tries to find the image with the given name and version. If it cannot be found then an error is 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 zone. If no such entry is found then an error will be returned.
func FindRouteTableByPurpose ¶
func FindRouteTableByPurpose(routeTables []api.RouteTable, purpose api.Purpose) (*api.RouteTable, error)
FindRouteTableByPurpose takes a list of route tables 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 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 FindSubnetByPurpose ¶
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.
func InfrastructureConfigFromInfrastructure ¶
func InfrastructureConfigFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureConfig, error)
InfrastructureConfigFromInfrastructure extracts the InfrastructureConfig from the ProviderConfig section of the given Infrastructure.
func InfrastructureStatusFromInfrastructure ¶ added in v1.8.4
func InfrastructureStatusFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureStatus, error)
InfrastructureStatusFromInfrastructure extracts the InfrastructureStatus from the ProviderStatus section of the given Infrastructure.
Types ¶
This section is empty.