plugin

package
v0.8.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingMetadata indicates that plugin.yaml is missing.
	ErrMissingMetadata     = errors.New("plugin metadata (plugin.yaml) missing")
	ErrExists              = errors.New("plugin already exists")
	ErrDoesNotExist        = errors.New("plugin does not exist")
	ErrHomeMissing         = errors.New(`plugin home "$(draft home)/plugins" does not exist`)
	ErrMissingSource       = errors.New("cannot get information about plugin source")
	ErrRepoDirty           = errors.New("plugin 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 plugins. Used to install/uninstall a plugin.

func Builtins

func Builtins() []*Builtin

Builtins fetches all built-in plugins.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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