golang-maas-client

module
v0.0.0-...-28756f2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: LGPL-3.0

README

Another Golang MAAS API Client library

A lighter version fo the MAAS API client library originally from https://github.com/juju/gomaasapi. The Developers there have done and continue doing amazing work. Please review their solution before using this.

Here we present a light version for my own purposes. Feel free to contribute. Because it is light calls are more direct and there are/will be less helper code. We also leverage golang a bit more making use of json marshalling and tags.

Run sample code

First export variables that are particular to your maas setup, e.g.,

$ export MAAS_API_VERSION=2.0
$ export MAAS_API_URL=http://192.168.4.2:5240/MAAS/
$ export MAAS_API_KEY=<SOME_KEY>

and then you can simply run

$ go run ./cmd/sample.go

Reference

[1] https://github.com/juju/gomaasapi

Directories

Path Synopsis
This is an cmd on how the Go library gomaasapi can be used to interact with a real maas server.
This is an cmd on how the Go library gomaasapi can be used to interact with a real maas server.
pkg
api

Jump to

Keyboard shortcuts

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