Documentation
¶
Index ¶
Constants ¶
View Source
const Version = `0.7.0`
Variables ¶
View Source
var InfluxdbTagValueCharCompress = regexp.MustCompile(`[\s,]+`)
View Source
var InfluxdbTagValueCharFilter = regexp.MustCompile(`\s{2,}`)
View Source
var RenderAsTemplatePrefix = `@`
View Source
var RenderPatterns = []string{
`any/any`,
`any/${arch}`,
`${os.platform}/any`,
`${os.platform}/${arch}`,
`${os.family}/any`,
`${os.family}/${arch}`,
`${os.distribution}/any`,
`${os.distribution}/${arch}`,
`${os.distribution}-${os.version}/any`,
`${os.distribution}-${os.version}/${arch}`,
}
Functions ¶
func Render ¶ added in v0.7.0
func Render(basedir string, options *RenderOptions) error
Types ¶
type InfluxdbPayload ¶
type InfluxdbPayload []string
type RenderOptions ¶ added in v0.7.0
type RenderOptions struct {
DestDir string `default:"~"`
DefaultDirMode int `default:"493"`
DefaultFileMode int `default:"420"`
Owner string
Group string
DryRun bool
// contains filtered or unexported fields
}
func (*RenderOptions) Enforce ¶ added in v0.7.0
func (self *RenderOptions) Enforce(path string) error
type Reporter ¶
type Reporter struct {
Plugins []plugins.Plugin
FieldPrefix string
KeyFormat ReporterKeyFormat
}
func NewReporter ¶
Create a new Reporter instance that can be configured.
type ReporterKeyFormat ¶ added in v0.6.2
type ReporterKeyFormat int
const ( FormatUnderscore ReporterKeyFormat = iota FormatPascalize FormatCamelize )
Click to show internal directories.
Click to hide internal directories.