file

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandConfig

type CommandConfig struct {
	Name       string `hcl:"name,label"`
	Command    string `hcl:"command"`
	KillSignal string `hcl:"kill_signal"`
}

type ConfigFile

type ConfigFile struct {
	Template        []TemplateConfig `hcl:"template,block"`
	InitCommands    []CommandConfig  `hcl:"init,block"`
	ProcessCommands []CommandConfig  `hcl:"process,block"`
	ReloadCommands  []CommandConfig  `hcl:"reload,block"`
}

type Paths

type Paths struct {
	RootDir     string
	ProcflyFile string
}

func NewPaths

func NewPaths(root string) Paths

func (Paths) Open

func (p Paths) Open(file string, flag int, perm os.FileMode) (*os.File, error)

func (Paths) Read

func (p Paths) Read(path string) ([]byte, error)

type TemplateConfig

type TemplateConfig struct {
	Path     string `hcl:"path,label"`
	Template string `hcl:"template"`
	File     string `hcl:"file"`
}

Jump to

Keyboard shortcuts

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