template

package
v0.0.0-...-66b962f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const RsyslogAppTemplate = `` /* 326-byte string literal not displayed */
View Source
const RunitTemplate = `#!/bin/bash
cd /app
{ exec chpst -u user1 {{.Cmd}} | logger -p local{{.Num}}.info; } 2>&1 | logger -p local{{.Num}}.error
`
View Source
const SetupTemplate = `#!/bin/bash -x
{{range .SetupCommands}}
{{.}}
{{end}}
`

Variables

This section is empty.

Functions

func WriteRsyslogAppConfig

func WriteRsyslogAppConfig(path string, idx int)

func WriteRsyslogCustomConfig

func WriteRsyslogCustomConfig(path string, fac string, desc map[string]string)

func WriteRunitScript

func WriteRunitScript(path string, cmd string, idx int)

func WriteSetupScript

func WriteSetupScript(path string, manifest interface{})

Types

type CmdAndNum

type CmdAndNum struct {
	Cmd string
	Num int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL