Documentation
¶
Overview ¶
Package hostprep shares bounded explicit-target preparation across lifecycle compositions. Identity, namespace and projection readers never probe hosts.
Index ¶
- Variables
- func RootIdentity(root string) string
- func SelectNative(profile opencodehost.Profile, skills bool, transports []string) ([]opencodehost.Selection, error)
- type Preparer
- func (p *Preparer) Prepare(ctx context.Context, executable, root string, skills bool, transports []string) (*Snapshot, error)
- func (p *Preparer) PrepareOpenCodeHost(ctx context.Context, client domain.DetectedClient, ...) (domain.DetectedClient, error)
- func (p *Preparer) RevalidateOpenCodeHost(ctx context.Context, client domain.DetectedClient) error
- type Probe
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHostTargetRequired = errors.New("host_target_required")
View Source
var ErrPlanChanged = errors.New("host_plan_changed")
View Source
var ErrTransportUnsupported = opencodehost.ErrNativeTransportUnsupported
Functions ¶
func RootIdentity ¶
Resolve existing ancestors too: missing config roots may lie beneath symlinks.
func SelectNative ¶
func SelectNative(profile opencodehost.Profile, skills bool, transports []string) ([]opencodehost.Selection, error)
Types ¶
type Preparer ¶
type Preparer struct {
// contains filtered or unexported fields
}
func New ¶
New requires the explicit client registry and pins a private launch environment once, at trusted composition.
func (*Preparer) PrepareOpenCodeHost ¶
func (p *Preparer) PrepareOpenCodeHost(ctx context.Context, client domain.DetectedClient, envelope domain.PackageEnvelope) (domain.DetectedClient, error)
func (*Preparer) RevalidateOpenCodeHost ¶
type Probe ¶
type Probe func(context.Context, clientdetect.ProbeTarget) (clientdetect.ProbeEvidence, error)
type Snapshot ¶
type Snapshot = opencodehost.NativePrepared
Snapshot preserves the preparation API through the shared immutable authority.
Click to show internal directories.
Click to hide internal directories.