remote

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package remote dispatches runs to another Fort over HTTP (spec 022). It implements core/runtime.Runtime: Dispatch POSTs a RunSpec to the target node's /api/exec and streams the node's RunEvents back as a runtime.Run, so remote execution is indistinguishable from local to core/engine. It is the client side of the exec/node protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

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

Runtime is a runtime.Runtime backed by a remote Fort node.

func New

func New(machineName, baseURL, token string) *Runtime

New builds a remote runtime targeting machineName at baseURL, authenticating with token.

func (*Runtime) Dispatch

func (r *Runtime) Dispatch(ctx context.Context, spec runtime.RunSpec) (runtime.Run, error)

Dispatch posts spec to the node and returns a streaming Run.

func (*Runtime) Name

func (r *Runtime) Name() string

Name implements runtime.Runtime.

Jump to

Keyboard shortcuts

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