machine

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName = "ibmcloud"
	UserDataKey  = "userData"

	TokenTTL = 60 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IbmCloudClient

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

Actuator is responsible for performing machine reconciliation

func NewActuator

func NewActuator(params ibmcloud.ActuatorParams) (*IbmCloudClient, error)

NewActuator creates a new Actuator

func (*IbmCloudClient) Create

func (ic *IbmCloudClient) Create(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) error

Create creates a machine and is invoked by the Machine Controller

func (*IbmCloudClient) Delete

func (ic *IbmCloudClient) Delete(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) error

Delete deletes a machine and is invoked by the Machine Controller

func (*IbmCloudClient) Exists

func (ic *IbmCloudClient) Exists(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) (bool, error)

Exists test for the existance of a machine and is invoked by the Machine Controller

func (*IbmCloudClient) Update

func (ic *IbmCloudClient) Update(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) error

Update updates a machine and is invoked by the Machine Controller

Jump to

Keyboard shortcuts

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