Skip to content

pascal-splotches/go-tilaa

Repository files navigation

go-tilaa

standard-readme compliant Build Status

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.

Table of Contents

Install

Standard go get:

$ go get github.com/pascal-splotches/go-tilaa

Usage

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)
	}
}

Maintainers

@Pascal Scheepers

Contribute

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

This project is licensed under the GNU General Public License v3.0

© Pascal Scheepers

About

Tilaa API client written in GoLang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages