Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster interface { ClusterGetter ClusterSettter }
type ClusterGetter ¶
type ClusterGetter interface { Client Name() string Namespace() string // NetworkName() string // Network() *infrav1.Network // AdditionalLabels() infrav1.Labels // FailureDomains() clusterv1.FailureDomains ControlPlaneEndpoint() clusterv1.APIEndpoint Storage() infrav1.Storage }
ClusterGetter is an interface which can get cluster information.
type ClusterSettter ¶
type ClusterSettter interface { SetControlPlaneEndpoint(endpoint clusterv1.APIEndpoint) SetStorage(storage infrav1.Storage) }
type Machine ¶
type Machine interface { MachineGetter MachineSetter }
Machine is an interface which can get and set machine information.
type MachineGetter ¶
type MachineGetter interface { Client GetScheduler(client *proxmox.Service) *scheduler.Scheduler Name() string Namespace() string Annotations() map[string]string // Zone() string // Role() string // IsControlPlane() bool // ControlPlaneGroupName() string NodeName() string GetBiosUUID() *string GetImage() infrav1.Image GetProviderID() string GetBootstrapData() (string, error) GetInstanceStatus() *infrav1.InstanceStatus GetClusterStorage() infrav1.Storage GetStorage() string GetCloudInit() infrav1.CloudInit GetNetwork() infrav1.Network GetHardware() infrav1.Hardware GetVMID() *int GetOptions() infrav1.Options }
MachineGetter is an interface which can get machine information.
type MachineSetter ¶
type MachineSetter interface { SetProviderID(uuid string) error SetInstanceStatus(v infrav1.InstanceStatus) SetNodeName(name string) SetVMID(vmid int) SetConfigStatus(config api.VirtualMachineConfig) SetStorage(name string) // SetFailureMessage(v error) // SetFailureReason(v capierrors.MachineStatusError) // SetAnnotation(key, value string) // SetAddresses(addressList []corev1.NodeAddress) PatchObject() error }
MachineSetter is an interface which can set machine information.
Click to show internal directories.
Click to hide internal directories.