daemon

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package daemon owns the daemon's process lifecycle: socket listener, graceful shutdown, signal handling, and (later) recovery of orphan containers. The actual RPC handlers live in internal/daemon/server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, opts Options) error

Run starts the daemon: binds the unix socket, serves connect-rpc until ctx is cancelled or a shutdown signal arrives, then cleans up the socket file. Blocks until the daemon exits — callers wanting a background daemon must fork the process themselves (see cli/core/start).

Types

type Options

type Options struct {
	Version    string         // daemon binary version
	SocketPath string         // override; default paths.Socket()
	Stacks     []stacks.Stack // override; default stacks.ParseEnv()
}

Options configures Run.

Directories

Path Synopsis
Package discovery parses each stack's per-service podman-compose.yaml files and exposes the result as a structured model (services, targets, infra, volumes, networks, dependency graph).
Package discovery parses each stack's per-service podman-compose.yaml files and exposes the result as a structured model (services, targets, infra, volumes, networks, dependency graph).
Package env owns the daemon's environment-variable handling: port allocation (with refcounting), value synthesis (HOST / URL for allocated ports), cross-service propagation, and operator un-prefix —.
Package env owns the daemon's environment-variable handling: port allocation (with refcounting), value synthesis (HOST / URL for allocated ports), cross-service propagation, and operator un-prefix —.
Package logs owns the daemon-side log storage and streaming hub.
Package logs owns the daemon-side log storage and streaming hub.
Package reinstall implements the daemon's reinstall-handoff checkpoint.
Package reinstall implements the daemon's reinstall-handoff checkpoint.
Package runner owns the daemon-side process supervision: spawning targets in either go-exec or container mode, tracking each instance's lifecycle (phase / exit-reason / health), and enforcing the lifecycle invariants (mutual exclusion, dependency-walk gating, idempotency).
Package runner owns the daemon-side process supervision: spawning targets in either go-exec or container mode, tracking each instance's lifecycle (phase / exit-reason / health), and enforcing the lifecycle invariants (mutual exclusion, dependency-walk gating, idempotency).
Package server implements anovel.v1.CoreService.
Package server implements anovel.v1.CoreService.
Package volumes owns the daemon-side volume operations: list, backup, restore, clear — all service-scoped.
Package volumes owns the daemon-side volume operations: list, backup, restore, clear — all service-scoped.

Jump to

Keyboard shortcuts

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