plugin

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPluginNotFound = errors.New("plugin not found")

Functions

This section is empty.

Types

type Plugin

type Plugin interface {
	Describe(ctx context.Context) (*apiplugin.PluginDesc, error)

	// Returns nil if not found.
	Get(ctx context.Context, name string) (*apivalues.Value, error)

	GetAll(ctx context.Context) (map[string]*apivalues.Value, error)

	Call(ctx context.Context, v *apivalues.Value, args []*apivalues.Value, kwargs map[string]*apivalues.Value) (*apivalues.Value, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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