David K. Bainbridge | 528b318 | 2017-01-23 08:51:59 -0800 | [diff] [blame] | 1 | // Copyright 2012-2016 Canonical Ltd. |
2 | // Licensed under the LGPLv3, see LICENCE file for details. | ||||
3 | |||||
4 | package gomaasapi | ||||
5 | |||||
6 | // NewMAAS returns an interface to the MAAS API as a *MAASObject. | ||||
7 | func NewMAAS(client Client) *MAASObject { | ||||
8 | attrs := map[string]interface{}{resourceURI: client.APIURL.String()} | ||||
9 | obj := newJSONMAASObject(attrs, client) | ||||
10 | return &obj | ||||
11 | } |