database

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL