plugins

package
v0.0.0-...-53c5c15 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Explicitly extractors
	KernelExtractor  = "kernel"
	SystemExtractor  = "system"
	LibraryExtractor = "library"
	NFDExtractor     = "nfd"

	// Explicitly creators
	ClusterCreator  = "cluster"
	ArtifactCreator = "artifact"
)

Add new plugin names here. They should correspond with the package name, then NewPlugin()

Functions

This section is empty.

Types

type PluginRequest

type PluginRequest struct {
	Name     string
	Sections []string
	Plugin   pg.PluginInterface
}

A plugin request has a Name and sections

type PluginsRequest

type PluginsRequest []PluginRequest

func GetPlugins

func GetPlugins(names []string) (PluginsRequest, error)

Get plugins parses a request and returns a list of extractor plugins We honor the order that the plugins and sections are provided in

func (*PluginsRequest) Create

func (r *PluginsRequest) Create() (pg.Result, error)

Do creation

func (*PluginsRequest) Extract

func (r *PluginsRequest) Extract(allowFail bool) (pg.Result, error)

Do the extraction for a plugin request, meaning across a set of plugins

func (*PluginsRequest) List

func (r *PluginsRequest) List() error

List plugins available, print in a pretty table!

Directories

Path Synopsis
creators
extractors
nfd

Jump to

Keyboard shortcuts

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