https://github.com/pascal-splotches/go-tilaa
Tilaa API client written in GoLang
https://github.com/pascal-splotches/go-tilaa
api-client go golang tilaa vps
Last synced: 27 days ago
JSON representation
Tilaa API client written in GoLang
- Host: GitHub
- URL: https://github.com/pascal-splotches/go-tilaa
- Owner: pascal-splotches
- License: gpl-3.0
- Created: 2017-12-24T17:01:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-27T02:08:28.000Z (over 8 years ago)
- Last Synced: 2025-01-19T17:49:37.203Z (over 1 year ago)
- Topics: api-client, go, golang, tilaa, vps
- Language: Go
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-tilaa
[](https://github.com/RichardLitt/standard-readme)
[](https://travis-ci.org/pascal-splotches/go-tilaa)
> Tilaa API Client written in Go
go-tilaa is a Go library for managing your [Tilaa](https://www.tilaa.com) 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](https://www.tilaa.com/en/api/docs).
## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [Maintainers](#maintainers)
- [Contribute](#contribute)
- [License](#license)
## Install
Standard `go get`:
```
$ go get github.com/pascal-splotches/go-tilaa
```
## Usage
For further documentation please see [Godoc](https://godoc.org/github.com/pascal-splotches/go-tilaa).
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)
}
}
```
## Maintainers
[@Pascal Scheepers](https://github.com/pascal-splotches)
## Contribute
PRs accepted.
Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
## License
This project is licensed under the [GNU General Public License v3.0](LICENSE)
© Pascal Scheepers