client

package
v0.0.0-...-df593d5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a object able to talk a remote footloose API server.

func New

func New(baseURI string) *Client

New creates a new Client.

func (*Client) CreateCluster

func (c *Client) CreateCluster(def *config.Cluster) error

CreateCluster creates a new cluster.

func (*Client) CreateMachine

func (c *Client) CreateMachine(cluster string, def *config.Machine) error

CreateMachine creates a new machine.

func (*Client) CreatePublicKey

func (c *Client) CreatePublicKey(def *config.PublicKey) error

CreatePublicKey creates a new public key.

func (*Client) DeleteCluster

func (c *Client) DeleteCluster(name string) error

DeleteCluster deletes a cluster and all its associated machines.

func (*Client) DeleteMachine

func (c *Client) DeleteMachine(cluster, machine string) error

DeleteMachine deletes a machine.

func (*Client) DeletePublicKey

func (c *Client) DeletePublicKey(name string) error

DeletePublicKey deletes a public key.

func (*Client) GetMachine

func (c *Client) GetMachine(clusterName, machine string) (*cluster.MachineStatus, error)

GetMachine retrieves the machine details.

XXX: This API isn't stable and will change in the future as we refine what the machine spec and status objects should be.

func (*Client) GetPublicKey

func (c *Client) GetPublicKey(name string) (*config.PublicKey, error)

GetPublicKey retrieves a public key.

Jump to

Keyboard shortcuts

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