Help us shape the future of Go! Take the 2026 Go Developer Survey

plugin

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2018 License: MIT Imports: 1 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 indicates that a plugin already exists
	ErrExists = errors.New("plugin already exists")
	// ErrDoesNotExist indicates that a plugin does not exist
	ErrDoesNotExist = errors.New("plugin does not exist")
	// ErrHomeMissing indicates that the directory expected to contain plugins does not exist
	ErrHomeMissing = errors.New(`plugin home "$(draft home)/plugins" does not exist`)
	// ErrMissingSource indicates that information about the source of the plugin was not found
	ErrMissingSource = errors.New("cannot get information about plugin source")
	// ErrRepoDirty indicates that the plugin repo was modified
	ErrRepoDirty = errors.New("plugin repo was modified")
	// ErrVersionDoesNotExist indicates that the request version does not exist
	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