params

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 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

This section is empty.

Functions

func MergeParams

func MergeParams(fileParams, inlineParams map[string]any) map[string]any

MergeParams merges file params with inline params (inline takes precedence)

func ParseInlineParams

func ParseInlineParams(params []string) (map[string]any, error)

ParseInlineParams parses key=value strings into a map

Types

type ParameterFile

type ParameterFile struct {
	// Single template format
	Template   string         `yaml:"template" json:"template"`
	Parameters map[string]any `yaml:"parameters" json:"parameters"`

	// Multi-template format
	Templates []TemplateParams `yaml:"templates" json:"templates"`

	// Secret values (kept separate from parameters for clarity)
	Secrets map[string]string `yaml:"secrets,omitempty" json:"secrets,omitempty"`
}

ParameterFile supports both single and multi-template formats

func ParseFile

func ParseFile(path string) (*ParameterFile, error)

ParseFile reads and parses a parameter file (YAML or JSON)

func (*ParameterFile) Normalize

func (pf *ParameterFile) Normalize()

Normalize converts single-template format to multi-template format

type TemplateParams

type TemplateParams struct {
	Name       string            `yaml:"name" json:"name"`
	Parameters map[string]any    `yaml:"parameters" json:"parameters"`
	Secrets    map[string]string `yaml:"secrets,omitempty" json:"secrets,omitempty"`
}

TemplateParams holds parameters for a single template

Jump to

Keyboard shortcuts

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