Documentation
¶
Overview ¶
Linter warns about duplicated code with OpenStack, GCP, and Azure FailureDomains builders. While the builders are almost identical, we need to keep them separate because they build different objects.
Linter warns about duplicated code with OpenStack, GCP, and Azure FailureDomains builders. While the builders are almost identical, we need to keep them separate because they build different objects.
Linter warns about duplicated code with OpenStack, GCP, and OpenStack FailureDomains builders. While the builders are almost identical, we need to keep them separate because they build different objects.
Linter warns about duplicated code with OpenStack, VSphere, and Azure FailureDomains builders. While the builders are almost identical, we need to keep them separate because they build different objects.
Index ¶
- Constants
- type AWSFailureDomainBuilder
- type AWSFailureDomainsBuilder
- func (a AWSFailureDomainsBuilder) BuildFailureDomains() machinev1.FailureDomains
- func (a AWSFailureDomainsBuilder) WithFailureDomainBuilder(fdBuilder AWSFailureDomainBuilder) AWSFailureDomainsBuilder
- func (a AWSFailureDomainsBuilder) WithFailureDomainBuilders(fdBuilders ...AWSFailureDomainBuilder) AWSFailureDomainsBuilder
- type AzureFailureDomainBuilder
- type AzureFailureDomainsBuilder
- func (a AzureFailureDomainsBuilder) BuildFailureDomains() machinev1.FailureDomains
- func (a AzureFailureDomainsBuilder) WithFailureDomainBuilder(fdbuilder AzureFailureDomainBuilder) AzureFailureDomainsBuilder
- func (a AzureFailureDomainsBuilder) WithFailureDomainBuilders(fdbuilders ...AzureFailureDomainBuilder) AzureFailureDomainsBuilder
- type ControlPlaneMachineSetBuilder
- func (m ControlPlaneMachineSetBuilder) Build() *machinev1.ControlPlaneMachineSet
- func (m ControlPlaneMachineSetBuilder) WithConditions(conditions []metav1.Condition) ControlPlaneMachineSetBuilder
- func (m ControlPlaneMachineSetBuilder) WithGeneration(generation int64) ControlPlaneMachineSetBuilder
- func (m ControlPlaneMachineSetBuilder) WithMachineTemplateBuilder(builder resourcebuilder.ControlPlaneMachineSetTemplateBuilder) ControlPlaneMachineSetBuilder
- func (m ControlPlaneMachineSetBuilder) WithName(name string) ControlPlaneMachineSetBuilder
- func (m ControlPlaneMachineSetBuilder) WithNamespace(namespace string) ControlPlaneMachineSetBuilder
- func (m ControlPlaneMachineSetBuilder) WithReplicas(replicas int32) ControlPlaneMachineSetBuilder
- func (m ControlPlaneMachineSetBuilder) WithSelector(selector metav1.LabelSelector) ControlPlaneMachineSetBuilder
- func (m ControlPlaneMachineSetBuilder) WithState(state machinev1.ControlPlaneMachineSetState) ControlPlaneMachineSetBuilder
- func (m ControlPlaneMachineSetBuilder) WithStrategyType(strategy machinev1.ControlPlaneMachineSetStrategyType) ControlPlaneMachineSetBuilder
- type ControlPlaneMachineSetFuncs
- type ControlPlaneMachineSetInterface
- type GCPFailureDomainBuilder
- type GCPFailureDomainsBuilder
- func (g GCPFailureDomainsBuilder) BuildFailureDomains() machinev1.FailureDomains
- func (g GCPFailureDomainsBuilder) WithFailureDomainBuilder(fdbuilder GCPFailureDomainBuilder) GCPFailureDomainsBuilder
- func (g GCPFailureDomainsBuilder) WithFailureDomainBuilders(fdbuilders ...GCPFailureDomainBuilder) GCPFailureDomainsBuilder
- type NutanixFailureDomainBuilder
- type NutanixFailureDomainsBuilder
- func (b NutanixFailureDomainsBuilder) BuildFailureDomains() machinev1.FailureDomains
- func (b NutanixFailureDomainsBuilder) WithFailureDomainBuilder(fdbuilder NutanixFailureDomainBuilder) NutanixFailureDomainsBuilder
- func (b NutanixFailureDomainsBuilder) WithFailureDomainBuilders(fdbuilders ...NutanixFailureDomainBuilder) NutanixFailureDomainsBuilder
- type NutanixMachineProviderConfigBuilder
- func (n *NutanixMachineProviderConfigBuilder) Build() *machinev1.NutanixMachineProviderConfig
- func (n *NutanixMachineProviderConfigBuilder) BuildRawExtension() *runtime.RawExtension
- func (n *NutanixMachineProviderConfigBuilder) WithFailureDomainName(failureDomainName string) *NutanixMachineProviderConfigBuilder
- func (n *NutanixMachineProviderConfigBuilder) WithFailureDomains(failureDomains []configv1.NutanixFailureDomain) *NutanixMachineProviderConfigBuilder
- type OpenShiftMachineV1Beta1TemplateBuilder
- func (m OpenShiftMachineV1Beta1TemplateBuilder) BuildTemplate() machinev1.ControlPlaneMachineSetTemplate
- func (m OpenShiftMachineV1Beta1TemplateBuilder) WithFailureDomainsBuilder(fdsBuilder resourcebuilder.OpenShiftMachineV1Beta1FailureDomainsBuilder) OpenShiftMachineV1Beta1TemplateBuilder
- func (m OpenShiftMachineV1Beta1TemplateBuilder) WithLabel(key, value string) OpenShiftMachineV1Beta1TemplateBuilder
- func (m OpenShiftMachineV1Beta1TemplateBuilder) WithLabels(labels map[string]string) OpenShiftMachineV1Beta1TemplateBuilder
- func (m OpenShiftMachineV1Beta1TemplateBuilder) WithProviderSpecBuilder(builder resourcebuilder.RawExtensionBuilder) OpenShiftMachineV1Beta1TemplateBuilder
- type OpenStackFailureDomainBuilder
- func (a OpenStackFailureDomainBuilder) Build() machinev1.OpenStackFailureDomain
- func (a OpenStackFailureDomainBuilder) WithComputeAvailabilityZone(zone string) OpenStackFailureDomainBuilder
- func (a OpenStackFailureDomainBuilder) WithRootVolume(rootVolume *machinev1.RootVolume) OpenStackFailureDomainBuilder
- type OpenStackFailureDomainsBuilder
- func (a OpenStackFailureDomainsBuilder) BuildFailureDomains() machinev1.FailureDomains
- func (a OpenStackFailureDomainsBuilder) WithFailureDomainBuilder(fdbuilder OpenStackFailureDomainBuilder) OpenStackFailureDomainsBuilder
- func (a OpenStackFailureDomainsBuilder) WithFailureDomainBuilders(fdbuilders ...OpenStackFailureDomainBuilder) OpenStackFailureDomainsBuilder
- type VSphereFailureDomainBuilder
- type VSphereFailureDomainsBuilder
- func (g VSphereFailureDomainsBuilder) BuildFailureDomains() machinev1.FailureDomains
- func (g VSphereFailureDomainsBuilder) WithFailureDomainBuilder(fdbuilder VSphereFailureDomainBuilder) VSphereFailureDomainsBuilder
- func (g VSphereFailureDomainsBuilder) WithFailureDomainBuilders(fdbuilders ...VSphereFailureDomainBuilder) VSphereFailureDomainsBuilder
Constants ¶
const ( // ControlPlaneMachineSetName is the only valid name allowed. // A ControlPlaneMachineSet is a singleton within the cluster, this matches other singletons such as Infrastructure. ControlPlaneMachineSetName = "cluster" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSFailureDomainBuilder ¶
type AWSFailureDomainBuilder struct {
// contains filtered or unexported fields
}
AWSFailureDomainBuilder is used to build an AWS failuredomain.
func AWSFailureDomain ¶
func AWSFailureDomain() AWSFailureDomainBuilder
AWSFailureDomain creates a new failure domain builder for AWS.
func (AWSFailureDomainBuilder) Build ¶
func (a AWSFailureDomainBuilder) Build() machinev1.AWSFailureDomain
Build builds an AWS failuredomain from the configuration.
func (AWSFailureDomainBuilder) WithAvailabilityZone ¶
func (a AWSFailureDomainBuilder) WithAvailabilityZone(az string) AWSFailureDomainBuilder
WithAvailabilityZone sets the availabilityZone for the AWS failuredomain builder.
func (AWSFailureDomainBuilder) WithSubnet ¶
func (a AWSFailureDomainBuilder) WithSubnet(subnet machinev1.AWSResourceReference) AWSFailureDomainBuilder
WithSubnet sets the subnet for the AWS failuredomain builder.
type AWSFailureDomainsBuilder ¶
type AWSFailureDomainsBuilder struct {
// contains filtered or unexported fields
}
AWSFailureDomainsBuilder is used to build a failuredomains.
func AWSFailureDomains ¶
func AWSFailureDomains() AWSFailureDomainsBuilder
AWSFailureDomains creates a new failure domains builder for AWS.
func (AWSFailureDomainsBuilder) BuildFailureDomains ¶
func (a AWSFailureDomainsBuilder) BuildFailureDomains() machinev1.FailureDomains
BuildFailureDomains builds a failuredomains from the configuration.
func (AWSFailureDomainsBuilder) WithFailureDomainBuilder ¶
func (a AWSFailureDomainsBuilder) WithFailureDomainBuilder(fdBuilder AWSFailureDomainBuilder) AWSFailureDomainsBuilder
WithFailureDomainBuilder adds a failure domain builder to the failure domains builder's builders.
func (AWSFailureDomainsBuilder) WithFailureDomainBuilders ¶
func (a AWSFailureDomainsBuilder) WithFailureDomainBuilders(fdBuilders ...AWSFailureDomainBuilder) AWSFailureDomainsBuilder
WithFailureDomainBuilders replaces the failure domains builder's builders with the given builders.
type AzureFailureDomainBuilder ¶
AzureFailureDomainBuilder is used to build an Azure failuredomain.
func AzureFailureDomain ¶
func AzureFailureDomain() AzureFailureDomainBuilder
AzureFailureDomain creates a new Azure failure domain builder for Azure.
func (AzureFailureDomainBuilder) Build ¶
func (a AzureFailureDomainBuilder) Build() machinev1.AzureFailureDomain
Build builds a Azure failuredomain from the configuration.
func (AzureFailureDomainBuilder) WithSubnet ¶
func (a AzureFailureDomainBuilder) WithSubnet(subnet string) AzureFailureDomainBuilder
WithSubnet sets the subnet for the Azure failuredomain builder.
func (AzureFailureDomainBuilder) WithZone ¶
func (a AzureFailureDomainBuilder) WithZone(zone string) AzureFailureDomainBuilder
WithZone sets the zone for the Azure failuredomain builder.
type AzureFailureDomainsBuilder ¶
type AzureFailureDomainsBuilder struct {
// contains filtered or unexported fields
}
AzureFailureDomainsBuilder is used to build a failuredomains.
func AzureFailureDomains ¶
func AzureFailureDomains() AzureFailureDomainsBuilder
AzureFailureDomains creates a new failure domains builder for Azure.
func (AzureFailureDomainsBuilder) BuildFailureDomains ¶
func (a AzureFailureDomainsBuilder) BuildFailureDomains() machinev1.FailureDomains
BuildFailureDomains builds a failuredomains from the configuration.
func (AzureFailureDomainsBuilder) WithFailureDomainBuilder ¶
func (a AzureFailureDomainsBuilder) WithFailureDomainBuilder(fdbuilder AzureFailureDomainBuilder) AzureFailureDomainsBuilder
WithFailureDomainBuilder adds a failure domain builder to the failure domains builder's builders.
func (AzureFailureDomainsBuilder) WithFailureDomainBuilders ¶
func (a AzureFailureDomainsBuilder) WithFailureDomainBuilders(fdbuilders ...AzureFailureDomainBuilder) AzureFailureDomainsBuilder
WithFailureDomainBuilders replaces the failure domains builder's builders with the given builders.
type ControlPlaneMachineSetBuilder ¶
type ControlPlaneMachineSetBuilder struct {
// contains filtered or unexported fields
}
ControlPlaneMachineSetBuilder is used to build out a controlplanemachineset object.
func ControlPlaneMachineSet ¶
func ControlPlaneMachineSet() ControlPlaneMachineSetBuilder
ControlPlaneMachineSet creates a new controlplanemachineset builder.
func (ControlPlaneMachineSetBuilder) Build ¶
func (m ControlPlaneMachineSetBuilder) Build() *machinev1.ControlPlaneMachineSet
Build builds a new controlplanemachineset based on the configuration provided.
func (ControlPlaneMachineSetBuilder) WithConditions ¶
func (m ControlPlaneMachineSetBuilder) WithConditions(conditions []metav1.Condition) ControlPlaneMachineSetBuilder
WithConditions sets the conditions for the controlplanemachineset builder.
func (ControlPlaneMachineSetBuilder) WithGeneration ¶
func (m ControlPlaneMachineSetBuilder) WithGeneration(generation int64) ControlPlaneMachineSetBuilder
WithGeneration sets the generation for the controlerplanemachineset builder.
func (ControlPlaneMachineSetBuilder) WithMachineTemplateBuilder ¶
func (m ControlPlaneMachineSetBuilder) WithMachineTemplateBuilder(builder resourcebuilder.ControlPlaneMachineSetTemplateBuilder) ControlPlaneMachineSetBuilder
WithMachineTemplateBuilder sets the machine template builder for the controlplanemachineset builder.
func (ControlPlaneMachineSetBuilder) WithName ¶
func (m ControlPlaneMachineSetBuilder) WithName(name string) ControlPlaneMachineSetBuilder
WithName sets the name for the controlplanemachineset builder.
func (ControlPlaneMachineSetBuilder) WithNamespace ¶
func (m ControlPlaneMachineSetBuilder) WithNamespace(namespace string) ControlPlaneMachineSetBuilder
WithNamespace sets the namespace for the controlplanemachineset builder.
func (ControlPlaneMachineSetBuilder) WithReplicas ¶
func (m ControlPlaneMachineSetBuilder) WithReplicas(replicas int32) ControlPlaneMachineSetBuilder
WithReplicas sets the replicas for the controlplanemachineset builder.
func (ControlPlaneMachineSetBuilder) WithSelector ¶
func (m ControlPlaneMachineSetBuilder) WithSelector(selector metav1.LabelSelector) ControlPlaneMachineSetBuilder
WithSelector sets the selector for the controlplanemachineset builder.
func (ControlPlaneMachineSetBuilder) WithState ¶
func (m ControlPlaneMachineSetBuilder) WithState(state machinev1.ControlPlaneMachineSetState) ControlPlaneMachineSetBuilder
WithState sets the state for the controlplanemachineset builder.
func (ControlPlaneMachineSetBuilder) WithStrategyType ¶
func (m ControlPlaneMachineSetBuilder) WithStrategyType(strategy machinev1.ControlPlaneMachineSetStrategyType) ControlPlaneMachineSetBuilder
WithStrategyType sets the update strategy type for the controlplanemachineset builder.
type ControlPlaneMachineSetFuncs ¶
type ControlPlaneMachineSetFuncs struct {
BuildFunc func() *machinev1.ControlPlaneMachineSet
}
ControlPlaneMachineSetFuncs defines a set of functions for manipulating controlplanemachinesets.
func (*ControlPlaneMachineSetFuncs) Build ¶
func (c *ControlPlaneMachineSetFuncs) Build() *machinev1.ControlPlaneMachineSet
Build builds a new controlplanemachineset based on the configuration provided.
type ControlPlaneMachineSetInterface ¶
type ControlPlaneMachineSetInterface interface {
Build() *machinev1.ControlPlaneMachineSet
}
ControlPlaneMachineSetInterface is the interface to controlplanemachineset builder.
type GCPFailureDomainBuilder ¶
type GCPFailureDomainBuilder struct {
Zone string
}
GCPFailureDomainBuilder is used to build a GCP failuredomain.
func GCPFailureDomain ¶
func GCPFailureDomain() GCPFailureDomainBuilder
GCPFailureDomain creates a new GCP failure domain builder for GCP.
func (GCPFailureDomainBuilder) Build ¶
func (g GCPFailureDomainBuilder) Build() machinev1.GCPFailureDomain
Build builds a GCP failuredomain from the configuration.
func (GCPFailureDomainBuilder) WithZone ¶
func (g GCPFailureDomainBuilder) WithZone(zone string) GCPFailureDomainBuilder
WithZone sets the zone for the GCP failuredomain builder.
type GCPFailureDomainsBuilder ¶
type GCPFailureDomainsBuilder struct {
// contains filtered or unexported fields
}
GCPFailureDomainsBuilder is used to build a failuredomains.
func GCPFailureDomains ¶
func GCPFailureDomains() GCPFailureDomainsBuilder
GCPFailureDomains creates a new failure domains builder for GCP.
func (GCPFailureDomainsBuilder) BuildFailureDomains ¶
func (g GCPFailureDomainsBuilder) BuildFailureDomains() machinev1.FailureDomains
BuildFailureDomains builds a failuredomains from the configuration.
func (GCPFailureDomainsBuilder) WithFailureDomainBuilder ¶
func (g GCPFailureDomainsBuilder) WithFailureDomainBuilder(fdbuilder GCPFailureDomainBuilder) GCPFailureDomainsBuilder
WithFailureDomainBuilder adds a failure domain builder to the failure domains builder's builders.
func (GCPFailureDomainsBuilder) WithFailureDomainBuilders ¶
func (g GCPFailureDomainsBuilder) WithFailureDomainBuilders(fdbuilders ...GCPFailureDomainBuilder) GCPFailureDomainsBuilder
WithFailureDomainBuilders replaces the failure domains builder's builders with the given builders.
type NutanixFailureDomainBuilder ¶
type NutanixFailureDomainBuilder struct {
Name string
}
NutanixFailureDomainBuilder is used to build a Nutanix failuredomain.
func NewNutanixFailureDomainBuilder ¶
func NewNutanixFailureDomainBuilder() NutanixFailureDomainBuilder
NewNutanixFailureDomainBuilder creates a new failure domain builder for Nutanix.
func (NutanixFailureDomainBuilder) Build ¶
func (g NutanixFailureDomainBuilder) Build() machinev1.NutanixFailureDomainReference
Build builds a Nutanix failuredomain from the configuration.
func (NutanixFailureDomainBuilder) WithName ¶
func (g NutanixFailureDomainBuilder) WithName(name string) NutanixFailureDomainBuilder
WithName sets the zone for the Nutanix failuredomain builder.
type NutanixFailureDomainsBuilder ¶
type NutanixFailureDomainsBuilder struct {
// contains filtered or unexported fields
}
NutanixFailureDomainsBuilder is used to build a failuredomains for Nutanix.
func NutanixFailureDomains ¶
func NutanixFailureDomains() NutanixFailureDomainsBuilder
NutanixFailureDomains creates a new failure domains builder for Nutanix.
func (NutanixFailureDomainsBuilder) BuildFailureDomains ¶
func (b NutanixFailureDomainsBuilder) BuildFailureDomains() machinev1.FailureDomains
BuildFailureDomains builds a failuredomains from the configuration.
func (NutanixFailureDomainsBuilder) WithFailureDomainBuilder ¶
func (b NutanixFailureDomainsBuilder) WithFailureDomainBuilder(fdbuilder NutanixFailureDomainBuilder) NutanixFailureDomainsBuilder
WithFailureDomainBuilder adds a failure domain builder to the failure domains builder's builders.
func (NutanixFailureDomainsBuilder) WithFailureDomainBuilders ¶
func (b NutanixFailureDomainsBuilder) WithFailureDomainBuilders(fdbuilders ...NutanixFailureDomainBuilder) NutanixFailureDomainsBuilder
WithFailureDomainBuilders replaces the failure domains builder's builders with the given builders.
type NutanixMachineProviderConfigBuilder ¶
type NutanixMachineProviderConfigBuilder struct {
// contains filtered or unexported fields
}
NutanixMachineProviderConfigBuilder is used to build a NutanixMachineProviderConfig.
func NewNutanixMachineProviderConfigBuilder ¶
func NewNutanixMachineProviderConfigBuilder() *NutanixMachineProviderConfigBuilder
NewNutanixMachineProviderConfigBuilder returns a NutanixMachineProviderConfigBuilder.
func (*NutanixMachineProviderConfigBuilder) Build ¶
func (n *NutanixMachineProviderConfigBuilder) Build() *machinev1.NutanixMachineProviderConfig
Build returns the generated NutanixMachineProviderConfig.
func (*NutanixMachineProviderConfigBuilder) BuildRawExtension ¶
func (n *NutanixMachineProviderConfigBuilder) BuildRawExtension() *runtime.RawExtension
BuildRawExtension builds a new Nutanix machine config based on the configuration provided.
func (*NutanixMachineProviderConfigBuilder) WithFailureDomainName ¶
func (n *NutanixMachineProviderConfigBuilder) WithFailureDomainName(failureDomainName string) *NutanixMachineProviderConfigBuilder
WithFailureDomainName sets the failureDomainName field with the input value.
func (*NutanixMachineProviderConfigBuilder) WithFailureDomains ¶
func (n *NutanixMachineProviderConfigBuilder) WithFailureDomains(failureDomains []configv1.NutanixFailureDomain) *NutanixMachineProviderConfigBuilder
WithFailureDomains sets the failureDomains field with the input value.
type OpenShiftMachineV1Beta1TemplateBuilder ¶
type OpenShiftMachineV1Beta1TemplateBuilder struct {
// contains filtered or unexported fields
}
OpenShiftMachineV1Beta1TemplateBuilder is used to build out an OpenShift machine template.
func OpenShiftMachineV1Beta1Template ¶
func OpenShiftMachineV1Beta1Template() OpenShiftMachineV1Beta1TemplateBuilder
OpenShiftMachineV1Beta1Template creates a new OpenShift machine template builder.
func (OpenShiftMachineV1Beta1TemplateBuilder) BuildTemplate ¶
func (m OpenShiftMachineV1Beta1TemplateBuilder) BuildTemplate() machinev1.ControlPlaneMachineSetTemplate
BuildTemplate builds a new machine template based on the configuration provided.
func (OpenShiftMachineV1Beta1TemplateBuilder) WithFailureDomainsBuilder ¶
func (m OpenShiftMachineV1Beta1TemplateBuilder) WithFailureDomainsBuilder(fdsBuilder resourcebuilder.OpenShiftMachineV1Beta1FailureDomainsBuilder) OpenShiftMachineV1Beta1TemplateBuilder
WithFailureDomainsBuilder sets the failure domains builder for the machine template builder.
func (OpenShiftMachineV1Beta1TemplateBuilder) WithLabel ¶
func (m OpenShiftMachineV1Beta1TemplateBuilder) WithLabel(key, value string) OpenShiftMachineV1Beta1TemplateBuilder
WithLabel sets the label on the machine labels for the machine template builder.
func (OpenShiftMachineV1Beta1TemplateBuilder) WithLabels ¶
func (m OpenShiftMachineV1Beta1TemplateBuilder) WithLabels(labels map[string]string) OpenShiftMachineV1Beta1TemplateBuilder
WithLabels sets the labels for the machine template builder.
func (OpenShiftMachineV1Beta1TemplateBuilder) WithProviderSpecBuilder ¶
func (m OpenShiftMachineV1Beta1TemplateBuilder) WithProviderSpecBuilder(builder resourcebuilder.RawExtensionBuilder) OpenShiftMachineV1Beta1TemplateBuilder
WithProviderSpecBuilder sets the providerSpec builder for the machine template builder.
type OpenStackFailureDomainBuilder ¶
type OpenStackFailureDomainBuilder struct { AvailabilityZone string RootVolume *machinev1.RootVolume }
OpenStackFailureDomainBuilder is used to build an OpenStack failuredomain.
func OpenStackFailureDomain ¶
func OpenStackFailureDomain() OpenStackFailureDomainBuilder
OpenStackFailureDomain creates a new OpenStack failure domain builder for OpenStack.
func (OpenStackFailureDomainBuilder) Build ¶
func (a OpenStackFailureDomainBuilder) Build() machinev1.OpenStackFailureDomain
Build builds a OpenStack failuredomain from the configuration.
func (OpenStackFailureDomainBuilder) WithComputeAvailabilityZone ¶
func (a OpenStackFailureDomainBuilder) WithComputeAvailabilityZone(zone string) OpenStackFailureDomainBuilder
WithComputeAvailabilityZone sets the nova availability zone for the OpenStack failuredomain builder.
func (OpenStackFailureDomainBuilder) WithRootVolume ¶
func (a OpenStackFailureDomainBuilder) WithRootVolume(rootVolume *machinev1.RootVolume) OpenStackFailureDomainBuilder
WithRootVolume sets the root volume for the OpenStack failuredomain builder.
type OpenStackFailureDomainsBuilder ¶
type OpenStackFailureDomainsBuilder struct {
// contains filtered or unexported fields
}
OpenStackFailureDomainsBuilder is used to build a failuredomains.
func OpenStackFailureDomains ¶
func OpenStackFailureDomains() OpenStackFailureDomainsBuilder
OpenStackFailureDomains creates a new failure domains builder for OpenStack.
func (OpenStackFailureDomainsBuilder) BuildFailureDomains ¶
func (a OpenStackFailureDomainsBuilder) BuildFailureDomains() machinev1.FailureDomains
BuildFailureDomains builds a failuredomains from the configuration.
func (OpenStackFailureDomainsBuilder) WithFailureDomainBuilder ¶
func (a OpenStackFailureDomainsBuilder) WithFailureDomainBuilder(fdbuilder OpenStackFailureDomainBuilder) OpenStackFailureDomainsBuilder
WithFailureDomainBuilder adds a failure domain builder to the failure domains builder's builders.
func (OpenStackFailureDomainsBuilder) WithFailureDomainBuilders ¶
func (a OpenStackFailureDomainsBuilder) WithFailureDomainBuilders(fdbuilders ...OpenStackFailureDomainBuilder) OpenStackFailureDomainsBuilder
WithFailureDomainBuilders replaces the failure domains builder's builders with the given builders.
type VSphereFailureDomainBuilder ¶
type VSphereFailureDomainBuilder struct {
Name string
}
VSphereFailureDomainBuilder is used to build a VSphere failuredomain.
func VSphereFailureDomain ¶
func VSphereFailureDomain() VSphereFailureDomainBuilder
VSphereFailureDomain creates a new VSphere failure domain builder for VSphere.
func (VSphereFailureDomainBuilder) Build ¶
func (g VSphereFailureDomainBuilder) Build() machinev1.VSphereFailureDomain
Build builds a VSphere failuredomain from the configuration.
func (VSphereFailureDomainBuilder) WithZone ¶
func (g VSphereFailureDomainBuilder) WithZone(name string) VSphereFailureDomainBuilder
WithZone sets the zone for the VSphere failuredomain builder.
type VSphereFailureDomainsBuilder ¶
type VSphereFailureDomainsBuilder struct {
// contains filtered or unexported fields
}
VSphereFailureDomainsBuilder is used to build a failuredomains.
func VSphereFailureDomains ¶
func VSphereFailureDomains() VSphereFailureDomainsBuilder
VSphereFailureDomains creates a new failure domains builder for VSphere.
func (VSphereFailureDomainsBuilder) BuildFailureDomains ¶
func (g VSphereFailureDomainsBuilder) BuildFailureDomains() machinev1.FailureDomains
BuildFailureDomains builds a failuredomains from the configuration.
func (VSphereFailureDomainsBuilder) WithFailureDomainBuilder ¶
func (g VSphereFailureDomainsBuilder) WithFailureDomainBuilder(fdbuilder VSphereFailureDomainBuilder) VSphereFailureDomainsBuilder
WithFailureDomainBuilder adds a failure domain builder to the failure domains builder's builders.
func (VSphereFailureDomainsBuilder) WithFailureDomainBuilders ¶
func (g VSphereFailureDomainsBuilder) WithFailureDomainBuilders(fdbuilders ...VSphereFailureDomainBuilder) VSphereFailureDomainsBuilder
WithFailureDomainBuilders replaces the failure domains builder's builders with the given builders.