Versions in this module Expand all Collapse all v0 v0.12.4 Jun 6, 2023 v0.12.3 Apr 3, 2022 Changes in this version type Resource + OnetimeOnly bool v0.12.2 Feb 19, 2022 Changes in this version type Backend + WatchKeys []string type BackendConnector + GetBackend func() *Backend v0.12.1 Oct 19, 2020 v0.12.0 Aug 31, 2020 v0.12.0-beta.2 Nov 2, 2019 v0.12.0-beta.1 Oct 14, 2019 v0.11.1 Jul 26, 2019 v0.11.0 Dec 10, 2018 Changes in this version type ResourceConfig + ReloadCmd string + StartCmd string v0.10.0 Oct 7, 2017 Changes in this version + func RegisterCustomJsFilters(folder string) error v0.9.0 Feb 15, 2017 Changes in this version + var ErrEmptySrc = fmt.Errorf("empty src template") + type Backend struct + Interval int + Keys []string + Name string + Onetime bool + Prefix string + Watch bool + type BackendConnector interface + Connect func() (Backend, error) + type BackendConnectors []BackendConnector + func (bc BackendConnectors) ConnectAll(ctx context.Context) ([]Backend, error) + type ExecConfig struct + Command string + KillSignal string + KillTimeout int + ReloadSignal string + Splay int + type Executor struct + func NewExecutor(execCommand, reloadSignal, killSignal string, killTimeout, splay int, ...) Executor + func (e *Executor) Reload() error + func (e *Executor) SignalChild(s os.Signal) error + func (e *Executor) SpawnChild() error + func (e *Executor) StopChild() + func (e *Executor) Wait(ctx context.Context) bool + type Renderer struct + CheckCmd string + Dst string + GID int + MkDirs bool + Mode string + ReapLock *sync.RWMutex + ReloadCmd string + Src string + UID int + type Resource struct + Failed bool + SignalChan chan os.Signal + func NewResource(backends []Backend, sources []*Renderer, name string, exec Executor) (*Resource, error) + func NewResourceFromResourceConfig(ctx context.Context, reapLock *sync.RWMutex, r ResourceConfig) (*Resource, error) + func (t *Resource) Close() + func (t *Resource) Monitor(ctx context.Context) + type ResourceConfig struct + Connectors BackendConnectors + Exec ExecConfig + Name string + Template []*Renderer