machine

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: BSD-3-Clause Imports: 15 Imported by: 1 module, 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actuator

type Actuator struct {
	// contains filtered or unexported fields
}

Actuator is responsible for performing machine reconciliation. It creates, updates, and deletes machines. Currently changing machine spec is not supported. The user data is rendered using Jsonnet with the machine and secret data as context. Machines are automatically spread across server groups on create based on the AntiAffinityKey.

func NewActuator

func NewActuator(params ActuatorParams) *Actuator

NewActuator returns an actuator.

func (*Actuator) Create

func (a *Actuator) Create(ctx context.Context, machine *machinev1beta1.Machine) error

Create creates a machine and is invoked by the machine controller.

func (*Actuator) Delete

func (a *Actuator) Delete(ctx context.Context, machine *machinev1beta1.Machine) error

func (*Actuator) Exists

func (a *Actuator) Exists(ctx context.Context, machine *machinev1beta1.Machine) (bool, error)

func (*Actuator) Update

func (a *Actuator) Update(ctx context.Context, machine *machinev1beta1.Machine) error

type ActuatorParams

type ActuatorParams struct {
	K8sClient client.Client

	DefaultCloudscaleAPIToken string

	ServerClientFactory      func(token string) cloudscale.ServerService
	ServerGroupClientFactory func(token string) cloudscale.ServerGroupService
}

ActuatorParams holds parameter information for Actuator.

Directories

Path Synopsis
Package csmock is a generated GoMock package.
Package csmock is a generated GoMock package.

Jump to

Keyboard shortcuts

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