{"modulePath":"github.com/webong/ext/pkg/ext-go/cgoengine","version":"v0.6.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package commandscope\n\nPackage commandscope binds C-owned dependency snapshots to a local shell-call broker. Tokens identify consumers inside one live scope; they are not trust records.\n\n## Constants\n\n```go\nconst AddressEnv = \"EXT_SCOPE_ADDR\"\n```\n\n```go\nconst MaxBytes = 1 \u003c\u003c 20\n```\n\n```go\nconst SettingsEnv = \"EXT_SCOPE_SETTINGS\"\n```\n\n```go\nconst TokenEnv = \"EXT_SCOPE_TOKEN\"\n```\n\n## Functions\n\n```go\nfunc Relay(ctx context.Context, args []string, input io.Reader, out, stderr io.Writer) (int, error)\n```\nRelay forwards to the host; it never loads packages or treats the address as authority. A forged endpoint can only supply output to its own caller.\n\n## Types\n\n```go\ntype Options struct {\n\tRoot     plugin.Identity\n\tRows     []Row\n\tLayout   storelayout.Layout\n\tReview   func(packagekit.Manifest) (string, error)\n\tDispatch func(context.Context, *Scope, plugin.Identity, Request) (Result, error)\n}\n```\n\n```go\ntype Request struct {\n\tArgs     []string          `json:\"args\"`\n\tInput    []byte            `json:\"input,omitempty\"`\n\tSettings map[string]string `json:\"settings,omitempty\"`\n}\n```\n\n```go\ntype Result struct {\n\tExit   int    `json:\"exit\"`\n\tOutput []byte `json:\"output,omitempty\"`\n\tError  []byte `json:\"error,omitempty\"`\n}\n```\n\n```go\ntype Row struct {\n\tManifest  packagekit.Manifest `json:\"manifest\"`\n\tDirectory string              `json:\"directory\"`\n\tDigest    string              `json:\"digest\"`\n}\n```\n\n```go\ntype Scope struct {\n\tPlan packagekit.Plan\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc Open(ctx context.Context, lib *library.Described, options Options) (*Scope, error)\n```\nOpen must run under the application's package writer. Release that writer before launching guests: all execution now uses the reviewed private closure.\n\n```go\nfunc (s *Scope) Allows(consumer, provider plugin.Identity, contract plugin.ContractRef, operation string) bool\n```\nAllows restricts nested invocation to one explicitly resolved direct dependency.\n\n```go\nfunc (s *Scope) Close() error\n```\n\n```go\nfunc (s *Scope) Environment(id plugin.Identity) []string\n```\n\n```go\nfunc (s *Scope) Load(id plugin.Identity) (store.Installed, error)\n```\n\n```go\nfunc (s *Scope) WithEnvironment(values []string, id plugin.Identity) []string\n```\nWithEnvironment strips inherited scope hints before assigning this consumer.\n\n","path":"github.com/webong/ext/pkg/ext-go/cgoengine/plugin/host/commandscope","name":"commandscope","synopsis":"Package commandscope binds C-owned dependency snapshots to a local shell-call broker.","isRedistributable":true}
