Help us shape the future of Go! Take the 2026 Go Developer Survey

caddycmd

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package caddycmd adapts the upstream Caddy process entry. The designated reusable surface, protected when released with its consumer contracts, is: Command, New, (*Command).Assembly and (*Command).Run. Run is process-scoped; Caddy owns os.Args, signals, output and os.Exit, exactly as in Community main.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

Command holds a distribution snapshot. Standard modules remain main imports.

func New

New constructs a fresh metadata snapshot without executing Caddy.

func (*Command) Assembly

func (c *Command) Assembly() distribution.Assembly

Assembly returns a defensive copy of the explicitly linked metadata.

func (*Command) Manifest

func (c *Command) Manifest() (distribution.Assembly, error)

Manifest validates and returns canonical, independent metadata.

func (*Command) Run

func (c *Command) Run()

Run delegates command construction, lifecycle and exit codes to upstream.

Jump to

Keyboard shortcuts

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