Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TemplateFuncMap = template.FuncMap{ "escape_tag_key": EscapeTagKey, "format_indent": FormatIndent, "as_key_value_map": AsKeyValueMap, "to_toml_array": ToTomlArray, }
Functions ¶
func FormatIndent ¶
indent a group of values by a given amount of spaces
func ToTomlArray ¶
Types ¶
type MatcherSpec ¶
type MatcherSpec struct { }
type Template ¶
type Template struct { Spec *TemplateSpec FileName string // contains filtered or unexported fields }
func NewTemplate ¶
Create new config and populate it from environment
type TemplateSpec ¶
type TemplateSpec struct { Name string `yaml:"name"` Backend string `yaml:"backend"` Template string `yaml:"template"` TemplateType string `yaml:"templateType"` Labels []string `yaml:"labels"` Matchers []MatcherSpec `yaml:"matchers"` }
func ParseSpec ¶
func ParseSpec(raw []byte) (*TemplateSpec, error)
func ParseSpecFile ¶
func ParseSpecFile(file string) (*TemplateSpec, error)
Click to show internal directories.
Click to hide internal directories.