pipeline

package
v0.1.25519 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyVal

type KeyVal struct {
	Key string `json:"key"`
	Val string `json:"val"`
}

KeyVal is a data structure specifically for passing pipeline data to GraphQL which doesn't support free-form maps.

func PrepareForGraphQL

func PrepareForGraphQL(kvMap Values) []KeyVal

PrepareForGraphQL takes a golang homogenous map, and transforms it into a list of keyval pairs, since GraphQL does not support homogenous maps.

type Parameters added in v0.1.16225

type Parameters map[string]interface{}

Static typing is bypassed using an empty interface here due to pipeline parameters supporting multiple types.

type Values

type Values map[string]string

CircleCI provides various `<< pipeline.x >>` values to be used in your config, but sometimes we need to fabricate those values when validating config.

func LocalPipelineValues added in v0.1.16225

func LocalPipelineValues() Values

vars should contain any pipeline parameters that should be accessible via << pipeline.parameters.foo >>

Jump to

Keyboard shortcuts

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