parameterizer

package
v0.3.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectParamsFromPath

func CollectParamsFromPath(parameterizersDir string) (map[string][]parameterizertypes.ParameterizerT, error)

CollectParamsFromPath returns parameterizers found in a directory

func GetSubKeys

func GetSubKeys(key string) []string

GetSubKeys returns the parts of a key. Example aaa.bbb."ccc ddd".eee.fff -> {"aaa", "bbb", "ccc ddd", "eee", "fff"}

func Parameterize

func Parameterize(srcDir, outDir string, packSpecPath parameterizertypes.ParameterizerPathsT, ps []parameterizertypes.ParameterizerT) ([]string, error)

Parameterize does the parameterization based on a spec

Types

type RT

type RT struct {
	Key     []string
	Value   interface{}
	Matches map[string]string
}

RT has Key, Value and Matches

func GetAll

func GetAll(key string, resource interface{}) ([]RT, error)

GetAll returns all the keys that matched and all corresponding values

Jump to

Keyboard shortcuts

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