Documentation ¶
Index ¶
- type ClusterScope
- func (s *ClusterScope) Close() error
- func (s *ClusterScope) CloudClient() *proxmox.Service
- func (s *ClusterScope) ControlPlaneEndpoint() clusterv1.APIEndpoint
- func (s *ClusterScope) Name() string
- func (s *ClusterScope) Namespace() string
- func (s *ClusterScope) PatchObject() error
- func (s *ClusterScope) SetControlPlaneEndpoint(endpoint clusterv1.APIEndpoint)
- func (s *ClusterScope) SetReady()
- func (s *ClusterScope) SetStorage(storage infrav1.Storage)
- func (s *ClusterScope) Storage() infrav1.Storage
- type ClusterScopeParams
- type MachineScope
- func (m *MachineScope) Annotations() map[string]string
- func (m *MachineScope) Close() error
- func (m *MachineScope) CloudClient() *proxmox.Service
- func (m *MachineScope) GetBiosUUID() *string
- func (m *MachineScope) GetBootstrapData() (string, error)
- func (m *MachineScope) GetCloudInit() infrav1.CloudInit
- func (m *MachineScope) GetClusterStorage() infrav1.Storage
- func (m *MachineScope) GetHardware() infrav1.Hardware
- func (m *MachineScope) GetImage() infrav1.Image
- func (m *MachineScope) GetInstanceStatus() *infrav1.InstanceStatus
- func (m *MachineScope) GetNetwork() infrav1.Network
- func (m *MachineScope) GetOptions() infrav1.Options
- func (m *MachineScope) GetProviderID() string
- func (m *MachineScope) GetScheduler(client *proxmox.Service) *scheduler.Scheduler
- func (m *MachineScope) GetStorage() string
- func (m *MachineScope) GetVMID() *int
- func (m *MachineScope) Name() string
- func (m *MachineScope) Namespace() string
- func (m *MachineScope) NodeName() string
- func (s *MachineScope) PatchObject() error
- func (m *MachineScope) SetConfigStatus(config api.VirtualMachineConfig)
- func (m *MachineScope) SetFailureMessage(v error)
- func (m *MachineScope) SetFailureReason(v capierrors.MachineStatusError)
- func (m *MachineScope) SetInstanceStatus(v infrav1.InstanceStatus)
- func (m *MachineScope) SetNodeName(name string)
- func (m *MachineScope) SetProviderID(uuid string) error
- func (m *MachineScope) SetReady()
- func (m *MachineScope) SetStorage(name string)
- func (m *MachineScope) SetVMID(vmid int)
- type MachineScopeParams
- type ProxmoxServices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterScope ¶
type ClusterScope struct { ProxmoxServices Cluster *clusterv1.Cluster ProxmoxCluster *infrav1.ProxmoxCluster // contains filtered or unexported fields }
func NewClusterScope ¶
func NewClusterScope(ctx context.Context, params ClusterScopeParams) (*ClusterScope, error)
func (*ClusterScope) Close ¶
func (s *ClusterScope) Close() error
func (*ClusterScope) CloudClient ¶
func (s *ClusterScope) CloudClient() *proxmox.Service
func (*ClusterScope) ControlPlaneEndpoint ¶
func (s *ClusterScope) ControlPlaneEndpoint() clusterv1.APIEndpoint
func (*ClusterScope) Name ¶
func (s *ClusterScope) Name() string
func (*ClusterScope) Namespace ¶
func (s *ClusterScope) Namespace() string
func (*ClusterScope) PatchObject ¶
func (s *ClusterScope) PatchObject() error
PatchObject persists the cluster configuration and status.
func (*ClusterScope) SetControlPlaneEndpoint ¶
func (s *ClusterScope) SetControlPlaneEndpoint(endpoint clusterv1.APIEndpoint)
func (*ClusterScope) SetReady ¶
func (s *ClusterScope) SetReady()
func (*ClusterScope) SetStorage ¶
func (s *ClusterScope) SetStorage(storage infrav1.Storage)
func (*ClusterScope) Storage ¶
func (s *ClusterScope) Storage() infrav1.Storage
return default values if they are not specified
type ClusterScopeParams ¶
type ClusterScopeParams struct { ProxmoxServices Client client.Client Cluster *clusterv1.Cluster ProxmoxCluster *infrav1.ProxmoxCluster }
type MachineScope ¶
type MachineScope struct { Machine *clusterv1.Machine ProxmoxMachine *infrav1.ProxmoxMachine ClusterGetter *ClusterScope SchedulerManager *scheduler.Manager // contains filtered or unexported fields }
func NewMachineScope ¶
func NewMachineScope(params MachineScopeParams) (*MachineScope, error)
func (*MachineScope) Annotations ¶
func (m *MachineScope) Annotations() map[string]string
func (*MachineScope) Close ¶
func (m *MachineScope) Close() error
func (*MachineScope) CloudClient ¶
func (m *MachineScope) CloudClient() *proxmox.Service
func (*MachineScope) GetBiosUUID ¶
func (m *MachineScope) GetBiosUUID() *string
func (*MachineScope) GetBootstrapData ¶
func (m *MachineScope) GetBootstrapData() (string, error)
func (*MachineScope) GetCloudInit ¶
func (m *MachineScope) GetCloudInit() infrav1.CloudInit
func (*MachineScope) GetClusterStorage ¶
func (m *MachineScope) GetClusterStorage() infrav1.Storage
func (*MachineScope) GetHardware ¶
func (m *MachineScope) GetHardware() infrav1.Hardware
func (*MachineScope) GetImage ¶
func (m *MachineScope) GetImage() infrav1.Image
func (*MachineScope) GetInstanceStatus ¶
func (m *MachineScope) GetInstanceStatus() *infrav1.InstanceStatus
func (*MachineScope) GetNetwork ¶
func (m *MachineScope) GetNetwork() infrav1.Network
func (*MachineScope) GetOptions ¶
func (m *MachineScope) GetOptions() infrav1.Options
func (*MachineScope) GetProviderID ¶
func (m *MachineScope) GetProviderID() string
func (*MachineScope) GetScheduler ¶
func (m *MachineScope) GetScheduler(client *proxmox.Service) *scheduler.Scheduler
func (*MachineScope) GetStorage ¶
func (m *MachineScope) GetStorage() string
func (*MachineScope) GetVMID ¶
func (m *MachineScope) GetVMID() *int
func (*MachineScope) Name ¶
func (m *MachineScope) Name() string
func (*MachineScope) Namespace ¶
func (m *MachineScope) Namespace() string
func (*MachineScope) NodeName ¶
func (m *MachineScope) NodeName() string
func (*MachineScope) PatchObject ¶
func (s *MachineScope) PatchObject() error
PatchObject persists the cluster configuration and status.
func (*MachineScope) SetConfigStatus ¶
func (m *MachineScope) SetConfigStatus(config api.VirtualMachineConfig)
func (*MachineScope) SetFailureMessage ¶
func (m *MachineScope) SetFailureMessage(v error)
func (*MachineScope) SetFailureReason ¶
func (m *MachineScope) SetFailureReason(v capierrors.MachineStatusError)
func (*MachineScope) SetInstanceStatus ¶
func (m *MachineScope) SetInstanceStatus(v infrav1.InstanceStatus)
SetInstanceStatus sets the ProxmoxMachine instance status.
func (*MachineScope) SetNodeName ¶
func (m *MachineScope) SetNodeName(name string)
func (*MachineScope) SetProviderID ¶
func (m *MachineScope) SetProviderID(uuid string) error
SetProviderID sets the ProxmoxMachine providerID in spec.
func (*MachineScope) SetReady ¶
func (m *MachineScope) SetReady()
func (*MachineScope) SetStorage ¶
func (m *MachineScope) SetStorage(name string)
func (*MachineScope) SetVMID ¶
func (m *MachineScope) SetVMID(vmid int)
type MachineScopeParams ¶
type MachineScopeParams struct { ProxmoxServices Client client.Client Machine *clusterv1.Machine ProxmoxMachine *infrav1.ProxmoxMachine ClusterGetter *ClusterScope SchedulerManager *scheduler.Manager }
type ProxmoxServices ¶
Click to show internal directories.
Click to hide internal directories.