provider

package
v0.0.0-...-509512d Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

type Box struct {
	ID     string
	Label  string
	Group  string
	Status string
	IP     string
}

type Image

type Image struct {
	ID      string
	Label   string
	Created string
	Size    int
	Vendor  string
}

type Provider

type Provider interface {
	SpawnFleet(fleetName string, fleetCount int) error
	GetBoxes() (boxes []Box, err error)
	GetFleet(fleetName string) (fleet []Box, err error)
	GetBox(boxName string) (Box, error)
	ListImages() error
	RemoveImages(name string) error
	RunCommand(name, command string, port int, username, password string) error
	CountFleet(fleetName string, boxes []Box) (count int)
	DeleteFleet(name string) error
	DeleteBoxByID(id string) error
	DeleteBoxByLabel(label string) error
	CreateImage(diskID int, label string) error
}

Jump to

Keyboard shortcuts

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