hcplugin

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginMap = map[string]goplugin.Plugin{
	"plugin": &core.HCPlugin{},
}

Functions

func CalculateChecksum

func CalculateChecksum(file string) (string, error)

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

func New

func New() Loader

func (*Loader) DownloadPlugins

func (l *Loader) DownloadPlugins(agentPlugins map[string]string, managerHost, pluginDir, tmpDir string) ([]string, error)

DownloadPlugins downloads plugins from the manager, excluding already up to date plugins (same checksum).

func (*Loader) Kill

func (l *Loader) Kill(name string)

func (*Loader) KillAll

func (l *Loader) KillAll()

func (*Loader) Load

func (l *Loader) Load(pluginDir string)

Load loads all plugins.

func (*Loader) Update

func (l *Loader) Update(pluginDir, tmpDir string, upToDate []string) ([]types.PluginChanges, bool, error)

type PluginInfo

type PluginInfo struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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