plugin

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package plugin discovers and runs external sqio plugin executables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, name string, args []string, pathEnv string) *exec.Cmd

Run executes the named plugin with args.

func ValidateName

func ValidateName(name string) error

ValidateName rejects plugin names that could escape the sqio-plugin-* naming convention.

Types

type Plugin

type Plugin struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

Plugin describes one executable plugin found on PATH.

func List

func List(pathEnv string) ([]Plugin, error)

List discovers executable files named sqio-plugin-* on PATH.

Jump to

Keyboard shortcuts

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