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