execution

package
v1.0.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Overview

Package execution defines execution and host-identity semantics shared by Ferret Wire clients and servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Sequence uint64
	Snapshot Snapshot
}

Event carries an ordered execution snapshot.

type Snapshot

type Snapshot struct {
	State   State
	Output  *api.Output
	Failure *failure.Failure
}

Snapshot is the semantic state published for a remote execution.

type State

type State uint8

State describes the lifecycle state in an execution Snapshot.

const (
	StateRunning State = iota + 1
	StateCompleted
	StateFailed
	StateCancelled
)

Execution states distinguish a running operation from its terminal outcome.

func (State) Terminal

func (state State) Terminal() bool

Terminal reports whether the execution has reached a final state.

Jump to

Keyboard shortcuts

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