gonittest

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDirToTemplateSearchPath

func AddDirToTemplateSearchPath(dir string)

AddDirToTemplateSearchPath allows adding an extra dir to look for templates

func RenderConfiguration

func RenderConfiguration(origin string, destDir string, opts CfgOpts) error

RenderConfiguration copies the files at origin into destDir, replacing templates in the process

func RenderSampleProcessCheck

func RenderSampleProcessCheck(file string, opts CfgOpts) error

RenderSampleProcessCheck writes a sample process check configuration file into file with the provided opts settings

func RenderTemplate

func RenderTemplate(id string, dest string, opts CfgOpts) error

RenderTemplate renders a built-in template into the destination dest with the provided opts settings

func Subst

func Subst(origin string, dest string, opts CfgOpts) error

Subst copies the template file at origint into the destination dest with the provided opts settings

func SubstText

func SubstText(text string, file string, opts CfgOpts) error

SubstText renders a template text into a file with the provided opts settings

Types

type CfgOpts

type CfgOpts struct {
	Name         string
	RootDir      string
	Timeout      string
	ConfFile     string
	PidFile      string
	ScriptsDir   string
	ScriptFile   string
	TempDir      string
	ConfDir      string
	TimeoutUnits string
	StopCmd      string
	StartCmd     string
}

CfgOpts defines the set of available configuration templates options

Jump to

Keyboard shortcuts

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