controller

package
v0.0.0-...-27459d4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROVIDER_LINODE       = 1
	PROVIDER_DIGITALOCEAN = 2
	PROVIDER_VULTR        = 3
)

Variables

This section is empty.

Functions

func CreateImage

func CreateImage(token string, provider Provider, diskID string, label string)

func DeleteBoxByID

func DeleteBoxByID(id string, token string, provider Provider) error

func DeleteFleet

func DeleteFleet(name string, token string, provider Provider) error

DeleteFleet deletes a whole fleet or a single box

func GetBox

func GetBox(boxName string, token string, provider Provider) (provider.Box, error)

func GetFleet

func GetFleet(fleetName string, token string, provider Provider) ([]provider.Box, error)

func ListBoxes

func ListBoxes(token string, provider Provider)

ListBoxes prints all active boxes of a provider

func ListImages

func ListImages(token string, provider Provider)

ListImages prints a list of available private images of a provider

func RemoveImages

func RemoveImages(token string, provider Provider, name string)

func RunCommand

func RunCommand(name, command, token string, port int, username, password string, provider Provider) error

func SSH

func SSH(boxName, username string, port int, sshKey string, token string, provider Provider)

func SendSCP

func SendSCP(source string, destination string, IP string, PORT int, username string)

func SpawnFleet

func SpawnFleet(fleetName string, fleetCount int, image string, region string, size string, sshFingerprint string, tags []string, token string, skipWait bool, provider Provider, build bool) error

Types

type Controller

type Controller struct {
	Service provider.Provider
}

func GetProviderController

func GetProviderController(pvd Provider, token string) Controller

type Provider

type Provider int

func GetProvider

func GetProvider(name string) Provider

Jump to

Keyboard shortcuts

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