runtimeexecutorprocess

package
v0.40.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package runtimeexecutorprocess implements the account-free, digest-pinned standard execution-channel process boundary. It owns no provider, endpoint, credential, or transport lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvokeReadOnly

func InvokeReadOnly(ctx context.Context, binding Binding, workspace, planPath, planHash, action string) ([]byte, error)

InvokeReadOnly uses the existing digest-pinned process custody for the two fixed native CLI read operations. Remote callers cannot choose flags, paths, executables or an environment. The caller must first admit the current plan.

func ValidateBinding

func ValidateBinding(binding Binding) error

Types

type Binding

type Binding struct {
	ChannelRef       string
	SiteRef          string
	NodeRef          string
	Executable       string
	ExecutableSHA256 string
}

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

func New

func New(runtimeVersion string, binding Binding) (*Executor, error)

func (*Executor) Execute

func (e *Executor) Execute(ctx context.Context, request runtimeexecutor.ExecutionRequest) (runtimeexecutor.ExecutionOutcome, error)

func (*Executor) Identity

func (e *Executor) Identity() runtimeexecutor.ExecutorIdentity

func (*Executor) RemoveWorkload

func (e *Executor) RemoveWorkload(ctx context.Context, request workloadremoval.Request) (workloadremoval.Result, error)

RemoveWorkload invokes the same digest-pinned Standard execution channel with a distinct closed protocol. It never reinterprets Apply as deletion and accepts only a fresh Owner-signed request bound to one previously applied workload.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL