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