lib

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionsList

func ActionsList() ([]godo.Action, error)

func AddSshFingerprint

func AddSshFingerprint(Fingerprint string)

func Contains

func Contains(s []string, e string) bool

func DelSshFingerprint

func DelSshFingerprint(Fingerprint string)

func DropletByName

func DropletByName(Name string) (*godo.Droplet, error)

func DropletsList

func DropletsList() ([]godo.Droplet, error)

func GetClient

func GetClient() *godo.Client

func GetFingerprints

func GetFingerprints() []godo.DropletCreateSSHKey

func ImageByName

func ImageByName(Name string) (*godo.Image, error)

func ImagesList

func ImagesList() ([]godo.Image, error)

func LoadSettings

func LoadSettings()

func SaveSettings

func SaveSettings()

func SetPersonnalApiToken

func SetPersonnalApiToken(PersonnalApiToken string)

func SshDroplet

func SshDroplet(d *godo.Droplet)

func UseClientToken

func UseClientToken(Token string)

func WaitAction

func WaitAction(actionID int) error

func WaitStatus

func WaitStatus(dropletID int, Status string)

Types

type ByCost

type ByCost []godo.Size

func (ByCost) Len

func (s ByCost) Len() int

func (ByCost) Less

func (s ByCost) Less(i, j int) bool

func (ByCost) Swap

func (s ByCost) Swap(i, j int)

type Settings

type Settings struct {
	PersonnalApiToken string
	SSHFingerprints   []string
}

func GetSettings

func GetSettings() Settings

Jump to

Keyboard shortcuts

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