Documentation
¶
Overview ¶
Package run is the Pulp runtime entry point, extracted from cmd/pulp/main.go so that deployment binaries can blank-import extensions and still use the standard bootstrap flow:
package main
import (
_ "github.com/BananaLabs-OSS/Pulp-ext-s3"
_ "github.com/BananaLabs-OSS/Pulp-ext-stripe"
"github.com/BananaLabs-OSS/Pulp/run"
)
func main() { run.Main() }
Extensions that registered via ext.Register are automatically picked up by host.NewRegistry — the deployment main.go does not need to enumerate them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterruptSignal ¶
InterruptSignal is the signal delivered by tests and the default stop path.
func Main ¶
func Main()
Main is the Pulp binary's entry point. It parses flags, loads the manifest, wires built-in capabilities (plus anything registered via ext.Register), instantiates the plugin, and runs the step loop until interrupted. Calls os.Exit on fatal errors.
func ShutdownSignals ¶
ShutdownSignals enumerates the signals Main watches to trigger a graceful shutdown. On Unix that is SIGINT (Ctrl+C) and SIGTERM.
func StartWithNewProcessGroup ¶
StartWithNewProcessGroup is a no-op on Unix — the default Start behavior is sufficient for tests to interrupt their children.
Types ¶
This section is empty.