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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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