Documentation ¶
Index ¶
- Variables
- func Connect() (err error)
- func GetErrorCode(err error) (errCode int)
- func ParseError(err error) (newErr error)
- func SelectFields(obj interface{}, fields set.Set) (data bson.M)
- type CertificateError
- type Collection
- func (c *Collection) Commit(id interface{}, data interface{}) (err error)
- func (c *Collection) CommitFields(id interface{}, data interface{}, fields set.Set) (err error)
- func (c *Collection) FindOne(query interface{}, result interface{}) (err error)
- func (c *Collection) FindOneId(id interface{}, result interface{}) (err error)
- type ConnectionError
- type Database
- func (d *Database) Builds() (coll *Collection)
- func (d *Database) BuildsLog() (coll *Collection)
- func (d *Database) Close()
- func (d *Database) Events() (coll *Collection)
- func (d *Database) Nodes() (coll *Collection)
- func (d *Database) NodesSettings() (coll *Collection)
- func (d *Database) PkgBuildGrid() *mgo.GridFS
- func (d *Database) PkgGrid() *mgo.GridFS
- func (d *Database) Settings() (coll *Collection)
- func (d *Database) Sources() (coll *Collection)
- func (d *Database) SourcesState() (coll *Collection)
- type DuplicateKeyError
- type IndexError
- type NotFoundError
- type UnknownError
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Session *mgo.Session
)
Functions ¶
func ParseError ¶
Parse database error data and return error type
Types ¶
type CertificateError ¶
type CertificateError struct {
errors.DropboxError
}
type Collection ¶
type Collection struct { mgo.Collection Database *Database }
func (*Collection) Commit ¶
func (c *Collection) Commit(id interface{}, data interface{}) (err error)
func (*Collection) CommitFields ¶
func (c *Collection) CommitFields(id interface{}, data interface{}, fields set.Set) (err error)
func (*Collection) FindOne ¶
func (c *Collection) FindOne(query interface{}, result interface{}) ( err error)
func (*Collection) FindOneId ¶
func (c *Collection) FindOneId(id interface{}, result interface{}) ( err error)
type ConnectionError ¶
type ConnectionError struct {
errors.DropboxError
}
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func GetDatabase ¶
func GetDatabase() (db *Database)
func (*Database) Builds ¶
func (d *Database) Builds() (coll *Collection)
func (*Database) BuildsLog ¶
func (d *Database) BuildsLog() (coll *Collection)
func (*Database) Events ¶
func (d *Database) Events() (coll *Collection)
func (*Database) Nodes ¶
func (d *Database) Nodes() (coll *Collection)
func (*Database) NodesSettings ¶
func (d *Database) NodesSettings() (coll *Collection)
func (*Database) PkgBuildGrid ¶
func (d *Database) PkgBuildGrid() *mgo.GridFS
func (*Database) Settings ¶
func (d *Database) Settings() (coll *Collection)
func (*Database) Sources ¶
func (d *Database) Sources() (coll *Collection)
func (*Database) SourcesState ¶
func (d *Database) SourcesState() (coll *Collection)
type DuplicateKeyError ¶
type DuplicateKeyError struct {
errors.DropboxError
}
type IndexError ¶
type IndexError struct {
errors.DropboxError
}
type NotFoundError ¶
type NotFoundError struct {
errors.DropboxError
}
type UnknownError ¶
type UnknownError struct {
errors.DropboxError
}
Click to show internal directories.
Click to hide internal directories.