Documentation
¶
Index ¶
Constants ¶
const ( // LoadBalancerRunningStatus indicates the load balancer is ready. LoadBalancerRunningStatus = "running" LoadBalancerChangingStatus = "changing" LoadBalancerDegradedStatus = "degraded" LoadBalancerErrorStatus = "error" )
const InterfaceTypePublic = "public"
InterfaceTypePublic is the cloudscale.ch SDK value for a public network interface, used both as the Server.Interfaces[].Type and as InterfaceRequest.Network.
const ( // ServerStatusPollInterval is the requeue interval when waiting for server status. ServerStatusPollInterval = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudscaleClusterReconciler ¶
type CloudscaleClusterReconciler struct {
client.Client
Scheme *runtime.Scheme
WatchFilter string
Transport http.RoundTripper
Version string
MaxConcurrentReconciles int
// contains filtered or unexported fields
}
CloudscaleClusterReconciler reconciles a CloudscaleCluster object
func (*CloudscaleClusterReconciler) Reconcile ¶
func (r *CloudscaleClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
Reconcile handles CloudscaleCluster reconciliation.
func (*CloudscaleClusterReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
type CloudscaleMachineReconciler ¶
type CloudscaleMachineReconciler struct {
client.Client
Scheme *runtime.Scheme
WatchFilter string
Transport http.RoundTripper
Version string
MaxConcurrentReconciles int
// contains filtered or unexported fields
}
CloudscaleMachineReconciler reconciles a CloudscaleMachine object
func (*CloudscaleMachineReconciler) Reconcile ¶
func (r *CloudscaleMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
Reconcile handles CloudscaleMachine reconciliation.
func (*CloudscaleMachineReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
type CloudscaleMachineTemplateReconciler ¶
type CloudscaleMachineTemplateReconciler struct {
client.Client
Scheme *runtime.Scheme
FlavorInfo *cloudscale.FlavorInfo
}
CloudscaleMachineTemplateReconciler reconciles a CloudscaleMachineTemplate object
func (*CloudscaleMachineTemplateReconciler) Reconcile ¶
func (r *CloudscaleMachineTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile populates the status.capacity and status.nodeInfo fields.
func (*CloudscaleMachineTemplateReconciler) SetupWithManager ¶
func (r *CloudscaleMachineTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ServerStatus ¶
type ServerStatus string
ServerStatus represents the status of a cloudscale.ch server.
const ( // ServerStatusChanging indicates the server is being created or modified. ServerStatusChanging ServerStatus = "changing" // ServerStatusRunning indicates the server is powered on and ready. ServerStatusRunning ServerStatus = "running" // ServerStatusStopped indicates the server is powered off. ServerStatusStopped ServerStatus = "stopped" // ServerStatusPaused indicates the server has been paused. ServerStatusPaused ServerStatus = "paused" // ServerStatusRescueRunning indicates rescue mode while powered on. ServerStatusRescueRunning ServerStatus = "rescue_running" // ServerStatusRescueStopped indicates rescue mode while stopped. ServerStatusRescueStopped ServerStatus = "rescue_stopped" // ServerStatusError indicates an internal error. ServerStatusError ServerStatus = "error" // ServerStatusUnknown indicates an internal error. ServerStatusUnknown ServerStatus = "unknown" )
Server status constants from cloudscale.ch API.
Source Files
¶
- cloudscale_services.go
- cloudscale_tags.go
- cloudscalecluster_controller.go
- cloudscalecluster_floatingip.go
- cloudscalecluster_loadbalancer.go
- cloudscalecluster_network.go
- cloudscalecluster_router.go
- cloudscalecluster_servergroup.go
- cloudscalemachine_controller.go
- cloudscalemachine_server.go
- cloudscalemachine_servergroup.go
- cloudscalemachinetemplate_controller.go