pipeline

package
v0.129.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 27 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

Index

Constants

This section is empty.

Variables

View Source
var DefaultEnvironmentLoader = environment.Load

DefaultEnvironmentLoader is used when Deps.EnvironmentLoader is nil. Tests can override this to inject a mock.

Functions

func NewCommand

func NewCommand(cfg *Config) (*cobra.Command, error)

NewCommand creates a new pipeline command with all subcommands.

Types

type Config

type Config struct {
	Logger                    logger.Logger
	Domain                    domain.Domain
	LoadChangesets            func(envName string) (*cs.ChangesetsRegistry, error)
	DecodeProposalCtxProvider func(env fdeployment.Environment) (analyzer.ProposalContext, error) // optional for run
	ConfigResolverManager     *fresolvers.ConfigResolverManager

	Deps Deps
}

Config holds the configuration for pipeline commands.

func (*Config) Validate

func (c *Config) Validate() error

Validate checks that all required configuration fields are set.

type Deps

type Deps struct {
	// EnvironmentLoader loads a deployment environment. Default: environment.Load
	EnvironmentLoader EnvironmentLoaderFunc
	// TimelockDelayCorrector corrects timelock proposal delays. Default: timelockdelay.CorrectTimelockDelays
	TimelockDelayCorrector TimelockDelayCorrectorFunc
}

Deps holds optional dependencies that can be overridden for testing.

type EnvironmentLoaderFunc

type EnvironmentLoaderFunc func(
	ctx context.Context,
	dom domain.Domain,
	envKey string,
	opts ...environment.LoadEnvironmentOption,
) (fdeployment.Environment, error)

EnvironmentLoaderFunc loads a deployment environment.

type TimelockDelayCorrectorFunc added in v0.116.0

type TimelockDelayCorrectorFunc func(
	ctx context.Context,
	lggr logger.Logger,
	blockChains chain.BlockChains,
	proposals []mcms.TimelockProposal,
) error

TimelockDelayCorrectorFunc corrects schedule proposal delays against on-chain minDelay.

Jump to

Keyboard shortcuts

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