proxyapp

package
v0.0.0-...-07b455f Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package proxyapp package implements the experimental plugins support. We promise interface part will not be stable until documented.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func URIParseErr

func URIParseErr(uri string) error

Types

type Config

type Config struct {
	// cmd is the optional command needed to initialize plugin.
	// By default we'll connect to its std[in, out, err].
	Command string `json:"cmd"`
	// rpc_server_uri is used to specify plugin endpoint address.
	// if not specified, we'll connect to the plugin by std[in, out, err].
	RPCServerURI string `json:"rpc_server_uri"`
	// security can be one of "none", "tls" (for server TLS) and "mtls" for mutal
	// TLS.
	Security string `json:"security"`
	// server_tls_cert points a TLS certificate used to authenticate the server.
	// If not provided, the default system certificate pool will be used.
	ServerTLSCert string `json:"server_tls_cert"`
	// transfer_file_content will send the file content as a byte array in
	// addition to the filename.
	TransferFileContent bool `json:"transfer_file_content"`
	// config is an optional remote plugin config
	ProxyAppConfig json.RawMessage `json:"config"`
}

Config is valid if at least cmd or rpc_server_uri specified.

type ProxyApp

type ProxyApp struct {
	*rpc.Client
	// contains filtered or unexported fields
}

func (*ProxyApp) Call

func (proxy *ProxyApp) Call(serviceMethod string, args, reply interface{}) error

func (*ProxyApp) CreateInstance

func (proxy *ProxyApp) CreateInstance(workdir, image string, index int) (vmimpl.Instance, error)

func (*ProxyApp) CreatePool

func (proxy *ProxyApp) CreatePool(config *Config, image string, debug bool) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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