beats: github.com/elastic/beats/filebeat/generator Index | Files | Directories

package generator

import "github.com/elastic/beats/filebeat/generator"

Index

Package Files

generator.go

func AppendTemplate Uses

func AppendTemplate(template, dest string, replace map[string]string) error

AppendTemplate read template, make replacement in content and append it to dest

func CopyTemplates Uses

func CopyTemplates(src, dest string, templates []string, replace map[string]string) error

CopyTemplates copy templates from source, make replacement in template content and save it to dest

func CreateDirectories Uses

func CreateDirectories(baseDir string, directories ...string) error

CreateDirectories create directories in baseDir

func DirExists Uses

func DirExists(dir string) bool

DirExists check that directory exists

func RenameConfigYml Uses

func RenameConfigYml(modulesPath, module, fileset string) error

RenameConfigYml renames config.yml to the name of the fileset, otherwise Filebeat refuses to start

Directories

PathSynopsis
fields
fileset
module

Package generator imports 5 packages (graph) and is imported by 17 packages. Updated 2019-05-10. Refresh now. Tools for package owners.