Documentation
¶
Overview ¶
Package interop plans explicit transport connections between Ext peers. It is metadata-only: it never discovers, launches, authenticates or retries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct {
Name string `json:"name"`
Frontend plugin.BackendProfile `json:"frontend"`
Backend plugin.BackendProfile `json:"backend"`
}
Bridge declares an installed, reviewed translator. Frontend faces the host; Backend faces the guest. Its public features must not overstate either side.
type Requirements ¶
type Requirements struct {
Concurrent bool
NativeStreaming bool
NativeCallbacks bool
// Boundaries are the sandbox boundaries the consumer accepts for the guest
// (plugin.Boundaries). Empty accepts any, including a guest whose profile
// states none; otherwise the guest's profile must state one of them.
Boundaries []string
}
type Route ¶
type Route struct {
Protocol string `json:"protocol"`
Host plugin.BackendProfile `json:"host"`
Guest plugin.BackendProfile `json:"guest"`
Bridge string `json:"bridge,omitempty"`
// Boundary is the guest's: a bridge does not change where the guest is
// isolated.
Boundary string `json:"boundary,omitempty"`
Concurrent bool `json:"concurrent"`
NativeStreaming bool `json:"nativeStreaming"`
NativeCallbacks bool `json:"nativeCallbacks"`
}
func Resolve ¶
func Resolve(hosts, guests []plugin.BackendProfile, bridges []Bridge, w Requirements) (Route, error)
Resolve selects direct connections first, then a single declared bridge, in caller preference order. Names identify wire bindings, never source languages. Protocols must match end-to-end; this resolver does not translate versions. Requirements describe native transport features, not domain capabilities such as Ext pull-stream operations (which can run over unary transports), and the sandbox boundaries the consumer accepts. A route that meets the transport requirements but not the boundaries is skipped; when every such route was skipped for its boundary the error is plugin.ErrDenied, else plugin.ErrUnsupported (lib/plugin/testdata/v1/route-cases.json).