utils

package
v1.233.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDurationEmpty = errors.New("duration string is empty")

ErrDurationEmpty is returned when the duration string is empty or blank.

Functions

func ParseDurationFlexible added in v1.197.0

func ParseDurationFlexible(durationStr string) (int64, error)

ParseDurationFlexible parses a duration string in the shared Atmos duration format (see pkg/duration): bare integers are seconds, Go durations such as "1h30m", days such as "2d", and keywords such as "daily". Returns whole seconds, or an error for values that are not positive.

func SetEnvironmentVariable

func SetEnvironmentVariable(stackInfo *schema.ConfigAndStacksInfo, key, value string)

SetEnvironmentVariable appends an environment variable to the stack info map/list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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