Tilaa API Client written in Go
go-tilaa is a Go library for managing your Tilaa Services. It currently allows you to manage your Virtual Machines, Snapshots, Metadata, SSH Keys and more through a simple interface. Currently the library implements v1 of the Tilaa API.
Standard go get:
$ go get github.com/pascal-splotches/go-tilaa
For further documentation please see Godoc.
Basic Example:
package main
import (
"splotch.es/tilaa/go-tilaa"
"fmt"
)
func main() {
client := go_tilaa.New("api@example.com", "***")
presets, _ := client.Preset.List()
templates, _ := client.Template.List()
for _, template := range *templates {
fmt.Printf("\nId:\t\t%v", template.Id)
fmt.Printf("\nName:\t%v", template.Name)
fmt.Printf("\nStorage:%v", template.Storage)
fmt.Printf("\nRam:\t%v", template.Ram)
}
sites, _ := client.Site.List()
for _, site := range *sites {
fmt.Printf("\nId:\t\t%v", site.Id)
fmt.Printf("\nName:\t%v", site.Name)
}
}
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
This project is licensed under the GNU General Public License v3.0
© Pascal Scheepers