tmplfunc

package
v0.4.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HCLMap

func HCLMap(meta ServicesMeta) template.FuncMap

HCLMap is the map of template functions for rendering HCL to their respective implementations

Types

type ByName

type ByName []*dep.CatalogSnippet

ByName is a sortable slice of CatalogSnippet structs.

func (ByName) Len

func (s ByName) Len() int

func (ByName) Less

func (s ByName) Less(i, j int) bool

func (ByName) Swap

func (s ByName) Swap(i, j int)

type ByNodeThenID added in v0.3.0

type ByNodeThenID []*dep.HealthService

ByNodeThenID is a sortable slice of Service

func (ByNodeThenID) Len added in v0.3.0

func (s ByNodeThenID) Len() int

Len, Swap, and Less are used to implement the sort.Sort interface.

func (ByNodeThenID) Less added in v0.3.0

func (s ByNodeThenID) Less(i, j int) bool

func (ByNodeThenID) Swap added in v0.3.0

func (s ByNodeThenID) Swap(i, j int)

type ServicesMeta

type ServicesMeta map[string]map[string]string

ServicesMeta is a useful type to abstract from the nested map of string which represents the user defined meta for each service a task monitors

Jump to

Keyboard shortcuts

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