scaffold

package
v1.235.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package scaffold validates scaffold sources for publication.

Validation loads the scaffold manifest (scaffold.yaml at the source root) through the same loader that generation and `atmos scaffold validate` use, so a published scaffold is exactly as valid as a generated one. It parses and validates configuration only: it never renders templates, writes generated output, or runs scaffold hooks.

The package sits above pkg/artifact/produce in the dependency graph because the scaffold loader pulls in the generator, hook, and workflow packages. The scaffold command registers the validator with Register when the binary starts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

Register installs the validator as the process-wide scaffold validator of the producers.

Types

type Validator

type Validator struct{}

Validator validates scaffold sources for the scaffold producer.

func (Validator) ValidateScaffold

func (Validator) ValidateScaffold(ctx context.Context, dir string) (produce.ProducerMetadata, error)

ValidateScaffold validates the scaffold at dir and returns the name, version, and description its manifest declares. The manifest must be scaffold.yaml at the root, because generation looks only there.

Jump to

Keyboard shortcuts

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