Versions in this module Expand all Collapse all v1 v1.0.1 Nov 27, 2022 v1.0.0 Nov 27, 2022 Changes in this version + var Debug bool + var ErrMissingMetadata = errors.New("plugin metadata (plugin.yaml) missing") + var Extractors = map[string]Extractor + func Install(i Installer) error + func Update(i Installer) error + type Extractor interface + Extract func(buffer *bytes.Buffer, targetDir string) error + func NewExtractor(source string) (Extractor, error) + type HTTPInstaller struct + CacheDir string + PluginName string + func NewHTTPInstaller(source string) (*HTTPInstaller, error) + func (i *HTTPInstaller) Install() error + func (i *HTTPInstaller) Update() error + func (i HTTPInstaller) Path() string + type Installer interface + Install func() error + Path func() string + Update func() error + func FindSource(location string) (Installer, error) + func NewForSource(source, version string) (Installer, error) + type LocalInstaller struct + func NewLocalInstaller(source string) (*LocalInstaller, error) + func (b *LocalInstaller) Path() string + func (i *LocalInstaller) Install() error + func (i *LocalInstaller) Update() error + type TarGzExtractor struct + func (g *TarGzExtractor) Extract(buffer *bytes.Buffer, targetDir string) error + type VCSInstaller struct + Repo vcs.Repo + Version string + func NewVCSInstaller(source, version string) (*VCSInstaller, error) + func (b *VCSInstaller) Path() string + func (i *VCSInstaller) Install() error + func (i *VCSInstaller) Update() error