db

package
v0.0.0-...-9ceb186 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInstalled

func AddInstalled(root string, m pm.Meta) error

AddInstalled adds m to the installed package database.

func AddRemotes

func AddRemotes(root string, uris []string) error

AddRemotes appends the provided uri to the list of configured remotes.

func IsInstalled

func IsInstalled(root string, m pm.Meta) (bool, error)

IsInstalled checks if m is in the installed package database.

func ListAvailable

func ListAvailable(root string, w io.Writer) error

ListAvailable prints all installable packages

func ListInstalled

func ListInstalled(root string, w io.Writer) error

ListInstalled pretty prints the installed database to w.

func ListInstalledFiles

func ListInstalledFiles(root string, w io.Writer, names []string) error

ListInstalledFiles prints the contents of a package.

func ListRemotes

func ListRemotes(root string, w io.Writer) error

ListRemotes prints all configured remotes to w.

func LoadAvailable

func LoadAvailable(root string) (pm.Available, error)

LoadAvailable returns the collection of available packages

func LoadInstalled

func LoadInstalled(root string) (pm.Installed, error)

func Pull

func Pull(root string) error

Pull updates the available package database.

func RemoveInstalled

func RemoveInstalled(root string, m pm.Meta) error

RemoveInstalled adds m to the installed package database.

func RemoveRemotes

func RemoveRemotes(root string, uris []string) error

RemoveRemotes removes the given uri from the list of configured remotes.

Types

type DB

type DB []url.URL

DB is a slice of available URI

Jump to

Keyboard shortcuts

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