run

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package run is the Pulp runtime entry point. Deployment binaries blank-import extensions and call run.Main():

package main

import (
	_ "github.com/BananaLabs-OSS/Pulp-ext-http"
	_ "github.com/BananaLabs-OSS/Pulp-ext-docker"

	"github.com/BananaLabs-OSS/Pulp/run"
)

func main() { run.Main() }

Extensions registered via ext.Register are automatically picked up. The runtime accepts one or more manifests via repeated -manifest flags, starts one step-loop goroutine per cell, and one pollster goroutine per extension-with-Poll. Events flow from pollsters into per-cell event channels tagged by StepEvent.CellID; empty CellID broadcasts to every cell that declares the producing extension's capability.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterruptSignal

func InterruptSignal() os.Signal

InterruptSignal is the signal delivered by tests and the default stop path.

func Main

func Main()

func SendInterrupt

func SendInterrupt(pid int) error

SendInterrupt delivers SIGINT to pid.

func ShutdownSignals

func ShutdownSignals() []os.Signal

ShutdownSignals enumerates the signals Main watches to trigger a graceful shutdown. On Unix that is SIGINT (Ctrl+C) and SIGTERM.

func StartWithNewProcessGroup

func StartWithNewProcessGroup(cmd *exec.Cmd) error

StartWithNewProcessGroup is a no-op on Unix — the default Start behavior is sufficient for tests to interrupt their children.

Types

This section is empty.

Jump to

Keyboard shortcuts

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