pluginmanager

package module
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DStatusFail  = "Failed"
	DStatusOk    = "Succeeded"
	DStatusSkip  = "Skipped"
	DStatusStart = "Starting"
)

Status of plugin execution used for displaying to user on console.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginAttributes

type PluginAttributes struct {
	Description string
	FileName    string
	ExecStart   string
	RequiredBy  []string
	Requires    []string
}

PluginAttributes that are supported in a plugin file.

type Plugins

type Plugins map[string]*PluginAttributes

Plugins is basically a map of file and its contents.

type PluginsStatus

type PluginsStatus []RunStatus

PluginsStatus is a list of plugins' run info.

type RunAllStatus

type RunAllStatus struct {
	Type string
	// TODO: Add Percentage to get no. of pending vs. completed run of plugins.
	Plugins   PluginsStatus `yaml:",omitempty"`
	Status    string
	StdOutErr string
}

RunAllStatus is the pm run status.

type RunStatus

type RunStatus struct {
	PluginAttributes `yaml:",inline"`
	Status           string
	StdOutErr        string
}

RunStatus is the plugin run's info: status, stdouterr.

Jump to

Keyboard shortcuts

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