plugin

package
v0.0.0-...-ed256f0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallGoCLI

func InstallGoCLI(ctx context.Context) (gocmd.CLI, error)

Types

type Builder

type Builder interface {
	Build(ctx context.Context, from string, to io.Writer) error
}

func CreateOrInstallGoBuilder

func CreateOrInstallGoBuilder(ctx context.Context, hooks *InstallHooks) (Builder, error)

type CompileOpts

type CompileOpts struct {
	CWDPath string
	Mounts  []*Mount
}

type Compiler

type Compiler interface {
	Compile(ctx context.Context, b []byte, opts CompileOpts) (Plugin, error)
}

func NewWazeroCompiler

func NewWazeroCompiler() (Compiler, error)

type Context

type Context struct {
	Ctx context.Context
}

type InstallHooks

type InstallHooks struct {
	OnDownload         func()
	OnDownloadComplete func()
}

type Interpreter

type Interpreter interface {
	WriteFile(ctx *Context, req *v1alpha1.WriteFileRequest) (*v1alpha1.WriteFileResponse, error)
}

type Mount

type Mount struct {
	GuestPath string
	Dir       fs.FS
}

type Plugin

type Plugin interface {
	// SendRequest sends a request to the plugin. Cannot be called concurrently.
	SendRequest(ctx context.Context, req *v1alpha1.Request) (*Response, error)
	Close() error
}

type Response

type Response struct {
	Body *v1alpha1.Response
	// contains filtered or unexported fields
}

func (*Response) Close

func (r *Response) Close()

func (*Response) Logs

func (r *Response) Logs() []byte

Jump to

Keyboard shortcuts

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