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