gantry

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gantry

type Gantry struct {
	// Allow swapping out stdout/stderr for testing.
	Out io.Writer
	Err io.Writer
}

Gantry is the logic/orchestrator.

func New

func New() *Gantry

New returns a new instance of Gantry.

func (*Gantry) Build

func (g *Gantry) Build(_ context.Context, cfg config.BuildConfig) error

Build executes the build pipeline described by cfg:

  1. For each overlay, clone or open the repository and fetch the specified files.
  2. Merge all fetched files in order using Jsonnet.
  3. Write the result to cfg.OutputPath (if cfg.Write) or print it to g.Out.

func (Gantry) Error

func (gantry Gantry) Error(msg interface{})

Error prints an error to the configured error writer.

func (Gantry) Output

func (gantry Gantry) Output(msg interface{})

Output prints a normal message to stdout.

func (Gantry) OutputHeading

func (gantry Gantry) OutputHeading(msg interface{})

OutputHeading prints a header to stdout.

Jump to

Keyboard shortcuts

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