services

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DigitaloceanService

type DigitaloceanService struct {
	Client *godo.Client
}

func (DigitaloceanService) CountFleet

func (d DigitaloceanService) CountFleet(fleetName string, boxes []provider.Box) (count int)

func (DigitaloceanService) CreateImage

func (d DigitaloceanService) CreateImage(diskID int, label string) error

func (DigitaloceanService) DeleteBoxByID

func (d DigitaloceanService) DeleteBoxByID(ID string) error

func (DigitaloceanService) DeleteBoxByLabel

func (l DigitaloceanService) DeleteBoxByLabel(label string) error

func (DigitaloceanService) DeleteFleet

func (d DigitaloceanService) DeleteFleet(name string) error

func (DigitaloceanService) GetBox

func (d DigitaloceanService) GetBox(boxName string) (provider.Box, error)

GetBox returns a single box by its label

func (DigitaloceanService) GetBoxes

func (d DigitaloceanService) GetBoxes() (boxes []provider.Box, err error)

func (DigitaloceanService) GetFleet

func (d DigitaloceanService) GetFleet(fleetName string) (fleet []provider.Box, err error)

func (DigitaloceanService) ListBoxes

func (d DigitaloceanService) ListBoxes()

func (DigitaloceanService) ListImages

func (d DigitaloceanService) ListImages() error

func (DigitaloceanService) RemoveImages

func (l DigitaloceanService) RemoveImages(name string) error

TODO

func (DigitaloceanService) RunCommand

func (d DigitaloceanService) RunCommand(name, command string, port int, username, password string) error

func (DigitaloceanService) SpawnFleet

func (d DigitaloceanService) SpawnFleet(fleetName string, fleetCount int, image string, region string, size string, sshFingerprint string, tags []string) error

type LinodeService

type LinodeService struct {
	Client linodego.Client
}

func (LinodeService) CountFleet

func (l LinodeService) CountFleet(fleetName string, boxes []provider.Box) (count int)

func (LinodeService) CreateImage

func (l LinodeService) CreateImage(diskID int, label string) error

func (LinodeService) DeleteBoxByID

func (l LinodeService) DeleteBoxByID(id string) error

func (LinodeService) DeleteBoxByLabel

func (l LinodeService) DeleteBoxByLabel(label string) error

func (LinodeService) DeleteFleet

func (l LinodeService) DeleteFleet(name string) error

func (LinodeService) GetBox

func (l LinodeService) GetBox(boxName string) (provider.Box, error)

func (LinodeService) GetBoxes

func (l LinodeService) GetBoxes() (boxes []provider.Box, err error)

func (LinodeService) GetFleet

func (l LinodeService) GetFleet(fleetName string) (fleet []provider.Box, err error)

func (LinodeService) ListBoxes

func (l LinodeService) ListBoxes()

func (LinodeService) ListImages

func (l LinodeService) ListImages() error

func (LinodeService) RemoveImages

func (l LinodeService) RemoveImages(name string) error

func (LinodeService) RunCommand

func (l LinodeService) RunCommand(name, command string, port int, username, password string) error

func (LinodeService) SpawnFleet

func (l LinodeService) SpawnFleet(fleetName string, fleetCount int, image string, region string, size string, sshFingerprint string, tags []string) error

type VultrService

type VultrService struct {
	Client *govultr.Client
}

func (VultrService) CountFleet

func (v VultrService) CountFleet(fleetName string, boxes []provider.Box) (count int)

func (VultrService) CreateImage

func (v VultrService) CreateImage(diskID int, label string) error

func (VultrService) DeleteBoxByID

func (v VultrService) DeleteBoxByID(id string) error

func (VultrService) DeleteBoxByLabel

func (v VultrService) DeleteBoxByLabel(label string) error

func (VultrService) DeleteFleet

func (v VultrService) DeleteFleet(name string) error

func (VultrService) GetBox

func (v VultrService) GetBox(boxName string) (provider.Box, error)

GetBox returns a single box by its label

func (VultrService) GetBoxes

func (v VultrService) GetBoxes() (boxes []provider.Box, err error)

GetBoxes returns a slice containg all active boxes of a Linode account

func (VultrService) GetFleet

func (v VultrService) GetFleet(fleetName string) (fleet []provider.Box, err error)

GetBoxes returns a slice containg all boxes of a given fleet

func (VultrService) GetImages

func (v VultrService) GetImages() (images []provider.Image)

GetImages returns a slice containing all snapshots of vultr account

func (VultrService) KeyCheck

func (v VultrService) KeyCheck(fleex_key string) string

func (VultrService) ListBoxes

func (v VultrService) ListBoxes()

ListBoxes prints all active boxes of a vultr account

func (VultrService) ListImages

func (v VultrService) ListImages() error

ListImages prints snapshots of vultr account

func (VultrService) RemoveImages

func (l VultrService) RemoveImages(name string) error

TODO

func (VultrService) RunCommand

func (v VultrService) RunCommand(name, command string, port int, username, password string) error

func (VultrService) SpawnFleet

func (v VultrService) SpawnFleet(fleetName string, fleetCount int, image string, region string, size string, sshFingerprint string, tags []string) error

SpawnFleet spawns a Vultr fleet

Jump to

Keyboard shortcuts

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