elements

package
v0.0.0-...-850346b Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(id string, inputs string) framework.Element

Types

type Filter

type Filter struct {
	ComponentID string
	Desc        string
	Inputs      string
	Condition   string
}

func (Filter) Name

func (r Filter) Name() string

func (Filter) Template

func (r Filter) Template() string

type KeyVal

type KeyVal struct {
	Key string
	Val string
}

KeyVal is an Element which can be used to generate a <key value> line in config When used with 'kv' function, can be used to omit lines for which values are not set check tests for usage

func KV

func KV(k, v string) KeyVal

func Optional

func Optional(k, v string) KeyVal

func (KeyVal) Name

func (kv KeyVal) Name() string

func (KeyVal) Template

func (kv KeyVal) Template() string

type OptElement

type OptElement = KeyVal

type Remap

type Remap struct {
	ComponentID string
	Desc        string
	Inputs      string
	VRL         string
}

func (Remap) Name

func (r Remap) Name() string

func (Remap) Template

func (r Remap) Template() string

type Route

type Route struct {
	ComponentID string
	Desc        string
	Inputs      string
	Routes      map[string]string
}

func (Route) Name

func (r Route) Name() string

func (Route) Template

func (r Route) Template() string

Jump to

Keyboard shortcuts

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