plugin

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer added in v0.15.0

type Consumer struct {
	// contains filtered or unexported fields
}

func NewConsumer added in v0.15.0

func NewConsumer(name string, invoker Invoker) Consumer

func (Consumer) Function added in v0.15.0

func (i Consumer) Function() *jsonnet.NativeFunction

func (Consumer) Serve added in v0.15.0

func (c Consumer) Serve()

type InvokeCloser added in v0.15.0

type InvokeCloser interface {
	Invoker
	io.Closer
}

func NewClientInvoker added in v0.15.0

func NewClientInvoker(
	name string,
	path string,
) (InvokeCloser, error)

type Invoker

type Invoker interface {
	Invoke(funcName string, args []any) (any, error)
}

func NewLocalInvoker added in v0.15.0

func NewLocalInvoker(
	functions []jsonnet.NativeFunction,
) Invoker

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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