Imports github.com/juju/collections/set github.com/juju/errors github.com/juju/loggo github.com/juju/mgo/v2/bson github.com/juju/schema github.com/juju/version Standard library imports bufio bytes crypto/rand encoding/base64 encoding/binary encoding/json errors fmt io io/ioutil mime/multipart net net/http net/http/httptest net/url path regexp sort strconv strings sync sync/atomic text/template time