Help us shape the future of Go! Take the 2026 Go Developer Survey

plugin

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeAction      = "action"
	TypeIntegration = "integration"
	TypeStream      = "stream"

	InputManagementStrict  = "strict"
	InputManagementDefault = "default"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Close(ctx context.Context)
	Run(ctx context.Context, opts map[string]string) *Result
	GetPostAction() *sdk.PluginPost
}

func NewClient

func NewClient(ctx context.Context, wk workerruntime.Runtime, pluginType string, pluginName string, inputManagement string, env map[string]string) (Client, error)

NewClient create a plugin client for the given plugin

type Factory added in v0.53.1

type Factory interface {
	NewClient(ctx context.Context, wk workerruntime.Runtime, pluginType string, pluginName string, inputManagement string, env map[string]string) (Client, error)
}

type PluginFactory added in v0.53.1

type PluginFactory struct{}

func (*PluginFactory) NewClient added in v0.53.1

func (pf *PluginFactory) NewClient(ctx context.Context, wk workerruntime.Runtime, pluginType string, pluginName string, inputManagement string, env map[string]string) (Client, error)

type Result

type Result struct {
	Status  string
	Details string
	Outputs map[string]string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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