pipeline

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAndPush

func BuildAndPush(ctx context.Context, cfg *config.DeployConfig, opts *DeployOptions) (string, error)

BuildAndPush is the exported entry point for the standalone build command

func Deploy

func Deploy(ctx context.Context, opts *DeployOptions) error

Deploy executes the full deployment pipeline

func EnvDiff added in v0.2.0

func EnvDiff(existing, merged map[string]string) []string

EnvDiff renders the added/changed keys between existing and merged as sorted, human-readable lines. Values under secret-looking keys are redacted; the CITADEL_* manifest vars are exempt (they hold names, not values). Keys only ever get added or changed — MergedEnv starts from existing, so nothing is removed.

func MergedEnv added in v0.2.0

func MergedEnv(existing, declared map[string]string, secrets []string, ssmPrefix string) (map[string]string, bool)

MergedEnv builds the environment map to write to the function: the function's existing env (CDK-set keys survive), overlaid with the declared env: block (citadel keys win collisions), plus the secret manifest when any secrets are declared. changed reports whether merged differs from existing — callers skip the UpdateFunctionConfiguration call when it is false.

Types

type DeployOptions

type DeployOptions struct {
	ConfigPath  string
	Environment string
	EnvFile     string
	DeployInfra bool
	SkipSSM     bool
	SkipConfig  bool
	DryRun      bool
	StreamLogs  bool
	Wait        bool
	TailLines   int
	Message     string
}

DeployOptions configures a deployment pipeline run

type Deployer

type Deployer interface {
	Update(ctx context.Context, cfg *config.DeployConfig, env, imageURI string) error
	WaitStable(ctx context.Context, cfg *config.DeployConfig, env string) error
}

Deployer performs the runtime-specific "update to new image" step and an optional wait for the deployment to stabilize.

Jump to

Keyboard shortcuts

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