Documentation ¶
Index ¶
- func IsErrPackageNotFound(err error) bool
- type Database
- func (d *Database) Package(name string) (vanity.Package, error)
- func (d *Database) PackageJSON(name string) (pkg []byte, err error)
- func (d *Database) Packages() (pkgs []vanity.Package, err error)
- func (d *Database) PutPackage(pkg vanity.Package) error
- func (d *Database) RemovePackage(name string) error
- type ErrPackageNotFound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
type ErrPackageNotFound ¶
type ErrPackageNotFound struct {
Name string
}
func (ErrPackageNotFound) Error ¶
func (e ErrPackageNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.