Documentation
¶
Overview ¶
Package commandscope binds C-owned dependency snapshots to a local shell-call broker. Tokens identify consumers inside one live scope; they are not trust records.
Index ¶
- Constants
- func Relay(ctx context.Context, args []string, input io.Reader, out, stderr io.Writer) (int, error)
- type Options
- type Request
- type Result
- type Row
- type Scope
- func (s *Scope) Allows(consumer, provider plugin.Identity, contract plugin.ContractRef, ...) bool
- func (s *Scope) Close() error
- func (s *Scope) Environment(id plugin.Identity) []string
- func (s *Scope) Load(id plugin.Identity) (store.Installed, error)
- func (s *Scope) WithEnvironment(values []string, id plugin.Identity) []string
Constants ¶
const AddressEnv = "EXT_SCOPE_ADDR"
const MaxBytes = 1 << 20
const SettingsEnv = "EXT_SCOPE_SETTINGS"
const TokenEnv = "EXT_SCOPE_TOKEN"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Row ¶
type Row struct {
Manifest packagekit.Manifest `json:"manifest"`
Directory string `json:"directory"`
Digest string `json:"digest"`
}
type Scope ¶
type Scope struct {
Plan packagekit.Plan
// contains filtered or unexported fields
}
func Open ¶
Open must run under the application's package writer. Release that writer before launching guests: all execution now uses the reviewed private closure.