Versions in this module Expand all Collapse all v0 v0.33.0 Jan 7, 2026 v0.32.0 Jan 7, 2026 v0.31.1 Jan 6, 2026 v0.31.0 Jan 6, 2026 v0.30.0 Sep 23, 2024 v0.20.0 Dec 16, 2023 v0.19.2 Feb 8, 2023 v0.19.1 Sep 13, 2022 v0.19.0 Apr 15, 2022 Changes in this version + var ErrEmptySrc = errors.New("empty src template") + func Base64Decode(data string) (string, error) + func Base64Encode(data string) string + func CreateMap(values ...interface{}) (map[string]interface{}, error) + func GetHostname() (string, error) + func Getenv(key string, v ...string) string + func LookupIP(data string) []string + func LookupIPV4(data string) []string + func LookupIPV6(data string) []string + func LookupIfaceIPV4(data string) (addr string) + func LookupIfaceIPV6(data string) (addr string) + func LookupSRV(service, proto, name string) []*net.SRV + func Process(config Config) error + func Reverse(values interface{}) interface + func Seq(first, last int) []int + func SortByLength(values []string) []string + func SortKVByLength(values []memkv.KVPair) []memkv.KVPair + func UnmarshalJsonArray(data string) ([]interface{}, error) + func UnmarshalJsonObject(data string) (map[string]interface{}, error) + type Config struct + ConfDir string + ConfigDir string + KeepStageFile bool + Noop bool + Prefix string + StoreClient backends.StoreClient + SyncOnly bool + TemplateDir string + type Processor interface + Process func() + func IntervalProcessor(config Config, stopChan, doneChan chan bool, errChan chan error, interval int) Processor + func WatchProcessor(config Config, stopChan, doneChan chan bool, errChan chan error) Processor + type TemplateResource struct + CheckCmd string + Dest string + FileMode os.FileMode + Gid int + Group string + Keys []string + Mode string + Owner string + Prefix string + ReloadCmd string + Src string + StageFile *os.File + Uid int + func NewTemplateResource(path string, config Config) (*TemplateResource, error) + type TemplateResourceConfig struct + TemplateResource TemplateResource