utils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandEnvironments added in v1.2.0

func ExpandEnvironments(pipeline *gen.DeploymentPipeline) []string

ExpandEnvironments returns every environment referenced by the pipeline's promotion paths (each path's source followed by its targets), de-duplicated while preserving first-seen order. A pipeline that declares no promotion paths yields no environments; that is a valid state, not an error.

func FindLowestEnvironment added in v1.2.0

func FindLowestEnvironment(pipeline *gen.DeploymentPipeline) (string, error)

FindLowestEnvironment finds the environment that is not a target in any promotion path.

func FindSourceEnvironment added in v1.2.0

func FindSourceEnvironment(pipeline *gen.DeploymentPipeline, targetEnv string) (string, error)

FindSourceEnvironment finds the source environment for a given target environment in the pipeline.

func FormatAge

func FormatAge(t time.Time) string

FormatAge returns a human-readable age string for a given timestamp.

Types

This section is empty.

Jump to

Keyboard shortcuts

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