command

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActiveEvaluationOrchestrator *pluginkit.EvaluationOrchestrator

Functions

func NewPluginCommands

func NewPluginCommands(pluginName, buildVersion, buildGitCommitHash, buildTime string, orchestrator *pluginkit.EvaluationOrchestrator) *cobra.Command

func ReadConfig

func ReadConfig()

func SetBase

func SetBase(cmd *cobra.Command)

SetBase sets the base flags for all commands

Types

type Plugin

type Plugin struct{}

func (*Plugin) Start

func (p *Plugin) Start() error

Start will be called by Privateer via gRPC

type PluginError added in v1.11.0

type PluginError struct {
	Plugin string
	Err    error
}

PluginError retains an error object and the name of the pack that generated it

type PluginErrors added in v1.11.0

type PluginErrors struct {
	Errors []PluginError
}

PluginErrors holds a list of errors and an Error() method so it adheres to the standard Error interface

func (*PluginErrors) Error added in v1.11.0

func (e *PluginErrors) Error() string

type PluginPkg added in v1.11.0

type PluginPkg struct {
	Name          string
	Path          string
	ServiceTarget string
	Command       *exec.Cmd
	Result        string

	Available  bool
	Requested  bool
	Successful bool
	Error      error
}

func NewPluginPkg added in v1.11.0

func NewPluginPkg(pluginName string, serviceName string) *PluginPkg

Jump to

Keyboard shortcuts

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