plugin

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

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

	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
}

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