helpers

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TestBlacklistLayerParameters = "blacklistLayerParameters"
View Source
const TestBlacklistLayerParametersFirst = "blacklistLayerParametersFirst"
View Source
const TestBlacklistLayers = "blacklistLayers"
View Source
const TestBlacklistLayersFirst = "blacklistLayersFirst"
View Source
const TestMiddlewareSetFromDefaults = "setFromDefaults"
View Source
const TestMiddlewareUpdateFromEnv = "updateFromEnv"
View Source
const TestMiddlewareUpdateFromMap = "updateFromMap"
View Source
const TestMiddlewareUpdateFromMapAsDefault = "updateFromMapAsDefault"
View Source
const TestParseStepOptionMetadata = "metadata"
View Source
const TestParseStepOptionSource = "source"
View Source
const TestParseStepOptionValue = "value"
View Source
const TestWhitelistLayerParameters = "whitelistLayerParameters"
View Source
const TestWhitelistLayerParametersFirst = "whitelistLayerParametersFirst"
View Source
const TestWhitelistLayers = "whitelistLayers"
View Source
const TestWhitelistLayersFirst = "whitelistLayersFirst"

Variables

This section is empty.

Functions

func NewTestParameterLayer

func NewTestParameterLayer(l TestParameterLayer) layers.ParameterLayer

NewTestParameterLayer is a helper function to create a ParameterLayer from parameterDefinition

func NewTestParameterLayers

func NewTestParameterLayers(ls []TestParameterLayer) *layers.ParameterLayers

func NewTestParsedLayer

func NewTestParsedLayer(pl layers.ParameterLayer, l TestParsedLayer) *layers.ParsedLayer

NewTestParsedLayer helper function to create a ParsedLayers from TestParsedParameter

func NewTestParsedLayers

func NewTestParsedLayers(pls *layers.ParameterLayers, ls ...TestParsedLayer) *layers.ParsedLayers

func TestExpectedOutputs

func TestExpectedOutputs(t *testing.T, expectedLayers []TestExpectedLayer, parsedLayers *layers.ParsedLayers)

Types

type TestExpectedLayer

type TestExpectedLayer struct {
	Name   string                            `yaml:"name"`
	Values map[string]interface{}            `yaml:"values"`
	Logs   map[string][]parameters.ParseStep `yaml:"logs"`
}

type TestMiddleware

type TestMiddleware struct {
	Name       TestMiddlewareName                 `yaml:"name"`
	Options    []TestParseStepOption              `yaml:"options"`
	Map        *map[string]map[string]interface{} `yaml:"map"`
	Prefix     *string                            `yaml:"prefix"`
	Layers     *[]string                          `yaml:"layers"`
	Parameters *map[string][]string               `yaml:"parameters"`
}

type TestMiddlewareName

type TestMiddlewareName string

type TestMiddlewares

type TestMiddlewares []TestMiddleware

func (TestMiddlewares) ToMiddlewares

func (t TestMiddlewares) ToMiddlewares() ([]middlewares.Middleware, error)

type TestParameterLayer

type TestParameterLayer struct {
	Name        string                            `yaml:"name"`
	Definitions []*parameters.ParameterDefinition `yaml:"definitions,omitempty"`
	Prefix      string                            `yaml:"prefix"`
}

type TestParseStepOption

type TestParseStepOption struct {
	Name  TestParseStepOptionName `yaml:"name"`
	Value interface{}             `yaml:"value"`
}

type TestParseStepOptionName

type TestParseStepOptionName string

type TestParsedLayer

type TestParsedLayer struct {
	Name       string                `yaml:"name"`
	Parameters []TestParsedParameter `yaml:"parameters"`
}

type TestParsedParameter

type TestParsedParameter struct {
	Name  string      `yaml:"name"`
	Value interface{} `yaml:"value"`
}

Jump to

Keyboard shortcuts

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