Imports gopkg.in/mgo.v2/bson github.com/juju/loggo github.com/juju/utils github.com/juju/errors github.com/juju/txn gopkg.in/mgo.v2 gopkg.in/mgo.v2/txn Standard library imports fmt io io/ioutil math/rand os path strings sync time crypto/sha512