Documentation
¶
Overview ¶
Package plugingo is the umbrella of the Go plugin library: the module that requires every part at matching versions. The parts are modules of their own, so an application imports only what it needs:
github.com/webong/ext/pkg/ext-go/engine contract, sessions, packages, bridges (standard library only) github.com/webong/ext/pkg/ext-go/cgoengine the C engine binding, with a pure-Go build of the same API github.com/webong/ext/pkg/ext-go/wasm the engine binding for res/web/host/engine/wasm github.com/webong/ext/pkg/ext-go/hashicorp the HashiCorp go-plugin (gRPC) backend
What lives here, rather than in a part, is whatever needs more than one of them, such as the code that joins package plans to the host graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlanGraph ¶
func PlanGraph(p packagekit.Plan, namespace string) store.Transaction
PlanGraph creates a graph transaction for the caller's namespace from a resolved plan. Apply it through the host's graph policy. Records express dependencies, never permissions.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
c2goengine
module
|
|
|
cengine
module
|
|
|
cgoengine
module
|
|
|
cmd
|
|
|
ext-plugin-bridge
command
ext-plugin-bridge exposes a reviewed HashiCorp-backed endpoint over CTX JSON lines.
|
ext-plugin-bridge exposes a reviewed HashiCorp-backed endpoint over CTX JSON lines. |
|
Package core chooses which implementation of the plugin engine runs a program's sessions.
|
Package core chooses which implementation of the plugin engine runs a program's sessions. |
|
engine
module
|
|
|
examples
|
|
|
adapters/go_echo
command
|
|
|
plugin
command
This example hosts a consumer-owned contract over an in-memory duplex connection.
|
This example hosts a consumer-owned contract over an in-memory duplex connection. |
|
plugin-hashicorp
command
This example runs the same CTX guest over either HashiCorp RPC protocol.
|
This example runs the same CTX guest over either HashiCorp RPC protocol. |
|
plugin-runtimes/cshared
command
Build with -buildmode=c-shared.
|
Build with -buildmode=c-shared. |
|
plugin-runtimes/echo
Package echo contains the single typed implementation shared by all runtime examples.
|
Package echo contains the single typed implementation shared by all runtime examples. |
|
plugin-runtimes/host
command
One host and typed contract, three dynamically loaded runtime implementations.
|
One host and typed contract, three dynamically loaded runtime implementations. |
|
plugin-runtimes/nativego
command
Build with: go build -buildmode=plugin -o echo.so ./pkg/ext-go/examples/plugin-runtimes/nativego
|
Build with: go build -buildmode=plugin -o echo.so ./pkg/ext-go/examples/plugin-runtimes/nativego |
|
plugin-runtimes/wasi
command
Build with GOOS=wasip1 GOARCH=wasm.
|
Build with GOOS=wasip1 GOARCH=wasm. |
|
plugin-sdk
command
A runnable host/guest template covering typed methods, configuration, instance leases, health, streams and a separately authorized host callback.
|
A runnable host/guest template covering typed methods, configuration, instance leases, health, streams and a separately authorized host callback. |
|
plugin-typescript
command
Run from the CTX repository root: go run ./pkg/ext-go/examples/plugin-typescript.
|
Run from the CTX repository root: go run ./pkg/ext-go/examples/plugin-typescript. |
|
hashicorp
module
|
|
|
inference
module
|
|
|
model
module
|
|
|
perception
module
|
|
|
realtime
module
|
|
|
wasm
module
|
|
|
yaegi
module
|