repo

package
v0.9.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const PackDirName = "packs"

Variables

View Source
var (
	ErrExists       = errors.New("pack repo already exists")
	ErrDoesNotExist = errors.New("pack repo does not exist")
	// ErrHomeMissing indicates that the packs dir is missing.
	ErrHomeMissing         = errors.New(`pack repo home "$(draft home)/packs" does not exist`)
	ErrMissingSource       = errors.New("cannot get information about pack repo source")
	ErrRepoDirty           = errors.New("pack repo was modified")
	ErrVersionDoesNotExist = errors.New("requested version does not exist")
)

Functions

This section is empty.

Types

type Builtin

type Builtin struct {
	Name    string
	URL     string
	Version string
}

Builtin contains metadata to the built-in packs. Used to install/uninstall a pack.

func Builtins

func Builtins() []*Builtin

Builtins fetches all built-in pack repositories as a map of url=>ver.

type Repository

type Repository struct {
	Name string
	Dir  string
}

Repository represents a pack repository.

func FindRepositories

func FindRepositories(path string) []Repository

FindRepositories takes a given path and returns a list of repositories.

Repositories are defined as directories with a "packs" directory present.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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