maas

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterAPIMachineIDAnnotationKey = "cluster.k8s.io/providerID" // Indicates a machine has been allocated
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Controller gomaasapi.Controller
}

func New

func New(params *ClientParams) (Client, error)

func (Client) Create

func (c Client) Create(ctx context.Context, cluster *clusterv1.CnctCluster, machine *clusterv1.CnctMachine) error

Create creates a machine

func (Client) Delete

func (c Client) Delete(ctx context.Context, cluster *clusterv1.CnctCluster, machine *clusterv1.CnctMachine) error

Delete deletes a machine

func (Client) Exist

func (c Client) Exist(ctx context.Context, cluster *clusterv1.CnctCluster, machine *clusterv1.CnctMachine) (bool, error)

Exists test for the existence of a machine

func (Client) Update

func (c Client) Update(ctx context.Context, cluster *clusterv1.CnctCluster, machine *clusterv1.CnctMachine) error

Update updates a machine

type ClientParams

type ClientParams struct {
	ApiURL     string
	ApiVersion string
	ApiKey     string
}

Jump to

Keyboard shortcuts

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