Documentation ¶
Index ¶
- Constants
- func GetLine(filename string, names chan string, readerr chan error)
- func IsDirectory(path string) (bool, error)
- func ReplaceCommandVars(command string, vars map[string]string) (string, error)
- func SaveInFolder(inputPath string, outputPath string)
- func SendSCP(source, destination, ip, username string, port int, privateKeyPath string) error
- type Controller
- func (c Controller) CreateImage(token string, provider Provider, diskID string, label string)
- func (c Controller) DeleteBoxByID(id string, token string, provider Provider)
- func (c Controller) DeleteFleet(name string)
- func (c Controller) GetBox(boxName string) (provider.Box, error)
- func (c Controller) GetFleet(fleetName string) []provider.Box
- func (c Controller) ListBoxes(token string, provider Provider)
- func (c Controller) ListImages(token string, provider Provider)
- func (c Controller) RemoveImages(token string, provider Provider, name string)
- func (c Controller) RunCommand(name, command string)
- func (c Controller) SSH(boxName, username, password string, port int, sshKey string)
- func (c Controller) SpawnFleet(fleetName string, fleetCount int, skipWait bool, build bool)
- func (c Controller) Start(fleetName, command string, delete bool, ...)
- type Provider
Constants ¶
View Source
const ( PROVIDER_CUSTOM = 0 PROVIDER_LINODE = 1 PROVIDER_DIGITALOCEAN = 2 PROVIDER_VULTR = 3 )
Variables ¶
This section is empty.
Functions ¶
func IsDirectory ¶
func ReplaceCommandVars ¶
func SaveInFolder ¶
Types ¶
type Controller ¶
func NewController ¶
func NewController(configs *models.Config) Controller
func (Controller) CreateImage ¶
func (c Controller) CreateImage(token string, provider Provider, diskID string, label string)
func (Controller) DeleteBoxByID ¶
func (c Controller) DeleteBoxByID(id string, token string, provider Provider)
func (Controller) DeleteFleet ¶
func (c Controller) DeleteFleet(name string)
DeleteFleet deletes a whole fleet or a single box
func (Controller) ListBoxes ¶
func (c Controller) ListBoxes(token string, provider Provider)
ListBoxes prints all active boxes of a provider
func (Controller) ListImages ¶
func (c Controller) ListImages(token string, provider Provider)
ListImages prints a list of available private images of a provider
func (Controller) RemoveImages ¶
func (c Controller) RemoveImages(token string, provider Provider, name string)
func (Controller) RunCommand ¶
func (c Controller) RunCommand(name, command string)
func (Controller) SSH ¶
func (c Controller) SSH(boxName, username, password string, port int, sshKey string)
func (Controller) SpawnFleet ¶
func (c Controller) SpawnFleet(fleetName string, fleetCount int, skipWait bool, build bool)
Click to show internal directories.
Click to hide internal directories.