serverlifecycle

package
v0.16.2 Latest Latest
Warning

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

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

Documentation

Overview

Package serverlifecycle serves the ServerLifecycle RPC in front of the on-disk operation ledger in pkg/serverlifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromRPC

FromRPC converts a wire record back to the stored shape, for clients that want to reuse the store's own helpers (Done, Succeeded) on what they fetched. The verbatim record is preferred when the server sent one, so fields this schema does not name still arrive; the typed fields are the fallback.

func ToRPC

ToRPC converts a stored record to its wire shape.

Types

type Server

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

Server answers ServerLifecycle calls. Reads go straight to the file store: the executor writes there from its own process, so the files are the truth even while this server is the one being replaced.

func NewServer

func NewServer(store *lifecycle.Store, launcher lifecycle.Launcher, log *slog.Logger) *Server

func (*Server) ForRunner

func (s *Server) ForRunner() *Server

ForRunner points the CLI hints at the runner's ledger.

func (*Server) Get

func (*Server) List

func (*Server) Start

Jump to

Keyboard shortcuts

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