pipeline

package
v0.86.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 21 Imported by: 0

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
}

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.

Jump to

Keyboard shortcuts

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