1 2 3 4 5 6 7 8 9 10 11 |
// Copyright 2013 Canonical Ltd. This software is licensed under the // GNU Lesser General Public License version 3 (see the file COPYING). package gomaasapi // NewMAAS returns an interface to the MAAS API as a *MAASObject. func NewMAAS(client Client) *MAASObject { attrs := map[string]interface{}{resourceURI: client.APIURL.String()} obj := newJSONMAASObject(attrs, client) return &obj } |