plugins

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List() map[string]map[string]CapabilitySpec

func RegisterCapability

func RegisterCapability(integration, name string, spec CapabilitySpec)

Types

type AllowlistEntry

type AllowlistEntry struct {
	Integration string         `json:"integration" yaml:"integration"`
	Callers     []CallerConfig `json:"callers,omitempty" yaml:"callers,omitempty"`
}

type CallRule

type CallRule struct {
	Path    string                       `json:"path" yaml:"path"`
	Methods map[string]RequestConstraint `json:"methods,omitempty" yaml:"methods,omitempty"`
}

type CallerConfig

type CallerConfig struct {
	ID           string             `json:"id" yaml:"id"`
	Capabilities []CapabilityConfig `json:"capabilities,omitempty" yaml:"capabilities,omitempty"`
	Rules        []CallRule         `json:"rules,omitempty" yaml:"rules,omitempty"`
}

CallerConfig mirrors the server structure for CLI use.

type CapabilityConfig

type CapabilityConfig struct {
	Name   string                 `json:"name" yaml:"name"`
	Params map[string]interface{} `json:"params" yaml:"params"`
}

type CapabilitySpec

type CapabilitySpec struct {
	Params []string
}

CapabilitySpec describes a capability's parameters.

type RequestConstraint

type RequestConstraint struct {
	Headers map[string][]string    `json:"headers,omitempty" yaml:"headers,omitempty"`
	Query   map[string][]string    `json:"query,omitempty" yaml:"query,omitempty"`
	Body    map[string]interface{} `json:"body,omitempty" yaml:"body,omitempty"`
}

Jump to

Keyboard shortcuts

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