pkg

package
v0.0.0-...-22fdc77 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExamplePlugin

type ExamplePlugin struct{}

ExamplePlugin implements the Plugin interface

func (*ExamplePlugin) Exec

func (p *ExamplePlugin) Exec(ctx context.Context, command string, arguments map[string]interface{}) (plugins.ExecResult, error)

Exec executes a command

func (*ExamplePlugin) GetMetadata

func (p *ExamplePlugin) GetMetadata(ctx context.Context) (plugins.PluginMetadata, error)

GetMetadata returns plugin metadata

type Result

type Result struct {
	Output   string
	Error    string
	ExitCode int
	Data     map[string]interface{}
}

Result implements the ExecResult interface

func (*Result) GetData

func (r *Result) GetData() map[string]interface{}

func (*Result) GetError

func (r *Result) GetError() string

func (*Result) GetExitCode

func (r *Result) GetExitCode() int

func (*Result) GetOutput

func (r *Result) GetOutput() string

Jump to

Keyboard shortcuts

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