helm

package
v0.0.0-...-1e8f308 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeTypeToStringMap = map[parse.NodeType]string{
		parse.NodeAction:     "action",
		parse.NodeBool:       "bool",
		parse.NodeBreak:      "break",
		parse.NodeChain:      "chain",
		parse.NodeCommand:    "command",
		parse.NodeComment:    "comment",
		parse.NodeContinue:   "continue",
		parse.NodeDot:        "dot",
		parse.NodeField:      "field",
		parse.NodeIdentifier: "identifier",
		parse.NodeIf:         "if",
		parse.NodeList:       "list",
		parse.NodeNil:        "nil",
		parse.NodeNumber:     "number",
		parse.NodePipe:       "pipe",
		parse.NodeRange:      "range",
		parse.NodeString:     "string",
		parse.NodeTemplate:   "template",
		parse.NodeText:       "text",
		parse.NodeVariable:   "variable",
		parse.NodeWith:       "with",
	}
)

Functions

func CollectFields

func CollectFields(nodes ...*parse.ListNode) map[string][]int

func Example

func Example(withSimple bool, withTemplate bool)

func FieldsTable

func FieldsTable(fields map[string]int) string

func NodeTypeToString

func NodeTypeToString(t parse.NodeType) string

func Parse

func Parse() map[string]*parse.Tree

func ParseTemplate

func ParseTemplate() []*template.Template

func Traverse

func Traverse(t *template.Template, process func(parse.Node, *Frame))

Types

type Frame

type Frame struct {
	Level  int
	Parent *Frame
	String string
}

func (*Frame) New

func (f *Frame) New() *Frame

func (*Frame) NewWithString

func (f *Frame) NewWithString(s string) *Frame

func (*Frame) StringPrefix

func (f *Frame) StringPrefix() string

Jump to

Keyboard shortcuts

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