Versions in this module Expand all Collapse all v0 v0.1.101 Mar 1, 2023 v0.1.100 Mar 1, 2023 v0.1.99 Feb 28, 2023 v0.0.2 Dec 20, 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 Getenv(key string, v ...string) string + func LookupIP(data string) []string + func LookupIPV4(data string) []string + func LookupIPV6(data string) []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 + Keys []string + Mode string + PGPPrivateKey []byte + Prefix string + ReloadCmd string + Src string + StageFile *os.File + Uid int + func NewTemplateResource(path string, config Config) (*TemplateResource, error) + type TemplateResourceConfig struct + TemplateResource TemplateResource