proctemplate

package
v0.0.0-...-31600e6 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplateFuncs = template.FuncMap{
	"to_lower":            strings.ToLower,
	"to_exported_go_type": goTypeName,
	"to_title":            strings.Title,
	"description":         descriptionToComment,
	"select_defaults":     selectDefaults,
	"quote_strings":       quoteStrings,
	"config_type_imports": configTypeImports,
	"trim_import":         trimImportPrefix,
	"bool_to_x":           boolToX,
	"replace":             strings.ReplaceAll,
}

Functions

This section is empty.

Types

type ConfigurationOption

type ConfigurationOption struct {
	Name        string
	Type        string
	Required    bool
	Optional    bool
	Default     interface{}
	Description string
}

type Processor

type Processor struct {
	Description   string
	Configuration []ConfigurationOption
}

type Processors

type Processors struct {
	CommonFields map[string]interface{} `yaml:"common_fields"`
	Processors   []map[string]Processor
}

func ReadProcessorsYAMLFile

func ReadProcessorsYAMLFile(path string) (*Processors, error)

Jump to

Keyboard shortcuts

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