provisionerclient

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 8 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 {
	// APIURL is the base API URL used. Example value:
	// 	http://wharf-cmd-provisioner.default.svc.cluster.local
	APIURL string
}

Client is a HTTP client that talks to wharf-cmd-provisioner.

func (Client) DeleteWorker

func (c Client) DeleteWorker(workerID string) error

DeleteWorker will terminate a worker based on its ID.

func (Client) ListWorkers

func (c Client) ListWorkers() ([]provisioner.Worker, error)

ListWorkers returns a slice of all workers.

func (Client) Ping

func (c Client) Ping() error

Ping pongs.

Jump to

Keyboard shortcuts

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