Documentation ¶ Index ¶ type Database func Load(dbPath string) (*Database, error) func (d *Database) Package(name string) (gpm.Package, error) func (d *Database) PackageJSON(name string) (pkg []byte, err error) func (d *Database) Packages() (pkgs []gpm.Package, err error) func (d *Database) PutPackage(pkg gpm.Package) error func (d *Database) RemovePackage(name string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Database ¶ type Database struct { // contains filtered or unexported fields } func Load ¶ func Load(dbPath string) (*Database, error) func (*Database) Package ¶ func (d *Database) Package(name string) (gpm.Package, error) func (*Database) PackageJSON ¶ func (d *Database) PackageJSON(name string) (pkg []byte, err error) func (*Database) Packages ¶ func (d *Database) Packages() (pkgs []gpm.Package, err error) func (*Database) PutPackage ¶ func (d *Database) PutPackage(pkg gpm.Package) error func (*Database) RemovePackage ¶ func (d *Database) RemovePackage(name string) error Source Files ¶ View all Source files database.go Click to show internal directories. Click to hide internal directories.