run

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 16 Imported by: 0

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

func InterruptSignal() os.Signal

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 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