stencil

package
v1.45.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package stencil implements the stencil command, which is essentially a thing wrapper around the codegen package which does most of the heavy lifting.

Index

Constants

This section is empty.

Variables

View Source
var ErrFrozenLockfileFileDependency = gerrors.New(
	"cannot use frozen lockfile for file dependency, re-add replacement or run without --frozen-lockfile")

ErrFrozenLockfileFileDependency is returned when a frozen lockfile references a file dependency that can no longer be resolved.

View Source
var ErrUnsupportedMajorVersionUpgrade = gerrors.New("unsupported major version upgrade for module")

ErrUnsupportedMajorVersionUpgrade is returned when a module requires a major version upgrade that is not supported.

Functions

This section is empty.

Types

type Command

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

Command is a thin wrapper around the codegen package that implements the "stencil" command.

func NewCommand

func NewCommand(log logrus.FieldLogger, s *configuration.ServiceManifest, dryRun, frozen, usePrerelease,
	allowMajorVersionUpgrades bool, resolverRoutines int,
) *Command

NewCommand creates a new stencil command.

func (*Command) Run

func (c *Command) Run(ctx context.Context) error

Run fetches dependencies of the root modules and builds the layered filesystem, after that GenerateFiles is called to actually walk the filesystem and render the templates. This step also does minimal post-processing of the dependencies manifests.

Jump to

Keyboard shortcuts

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