controller

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 38 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// LoadBalancerRunningStatus indicates the load balancer is ready.
	LoadBalancerRunningStatus  = "running"
	LoadBalancerChangingStatus = "changing"
	LoadBalancerDegradedStatus = "degraded"
	LoadBalancerErrorStatus    = "error"
)
View Source
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.

View Source
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

func (r *CloudscaleClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

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

func (r *CloudscaleMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL