pluginapi

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpSet = "set"
	OpGet = "get"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecRequest

type ExecRequest struct {
	Action string `json:"action"`
	Key    string `json:"key"`
	Value  string `json:"value,omitempty"`
}

ExecRequest is the JSON request format for exec plugins

type ExecResponse

type ExecResponse struct {
	Success bool   `json:"success"`
	Value   string `json:"value,omitempty"`
	Error   string `json:"error,omitempty"`
}

ExecResponse is the JSON response format for exec plugins

type PluginConfig

type PluginConfig map[string]interface{}

PluginConfig holds configuration for a plugin

type PluginDefinition

type PluginDefinition struct {
	Type   string       `mapstructure:"type"`
	Config PluginConfig `mapstructure:",remain"`
}

PluginDefinition defines a plugin configuration from YAML

type Store

type Store interface {
	Get(ctx context.Context, key string) (string, error)
	Set(ctx context.Context, key string, value string) error
}

Jump to

Keyboard shortcuts

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