Documentation ¶
Index ¶
- Variables
- func LookupIP(data string) []string
- func LookupSRV(service, proto, name string) []*net.SRV
- func Process(config Config) error
- func UnmarshalJsonArray(data string) ([]interface{}, error)
- func UnmarshalJsonObject(data string) (map[string]interface{}, error)
- type Config
- type Processor
- type TemplateResource
- type TemplateResourceConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptySrc = errors.New("empty src template")
Functions ¶
func UnmarshalJsonArray ¶ added in v0.7.0
func UnmarshalJsonObject ¶ added in v0.7.0
Types ¶
type Processor ¶ added in v0.7.0
type Processor interface {
Process()
}
func IntervalProcessor ¶ added in v0.7.0
type TemplateResource ¶
type TemplateResource struct { CheckCmd string `toml:"check_cmd"` Dest string FileMode os.FileMode Gid int Keys []string Mode string Prefix string ReloadCmd string `toml:"reload_cmd"` Src string StageFile *os.File Uid int // contains filtered or unexported fields }
TemplateResource is the representation of a parsed template resource.
func NewTemplateResource ¶ added in v0.7.0
func NewTemplateResource(path string, config Config) (*TemplateResource, error)
NewTemplateResource creates a TemplateResource.
type TemplateResourceConfig ¶
type TemplateResourceConfig struct {
TemplateResource TemplateResource `toml:"template"`
}
TemplateResourceConfig holds the parsed template resource.
Click to show internal directories.
Click to hide internal directories.