runners

package
v0.0.0-...-676febb Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NameTemplate = "{{.Name}}"

Functions

This section is empty.

Types

type Config

type Config struct {
	Config RunnerConfig
}

func (*Config) UnmarshalJSON

func (c *Config) UnmarshalJSON(data []byte) error

type Process

type Process struct {
	Name       string `json:"name"`
	Type       string `json:"type"`
	StartCmd   string `json:"start"`
	StopCmd    string `json:"stop"`
	RestartCmd string `json:"restart"`
	CleanupCmd string `json:"cleanup"`
	// contains filtered or unexported fields
}

func (*Process) Cleanup

func (p *Process) Cleanup() error

func (*Process) Restart

func (p *Process) Restart(runCleanup bool) error

func (*Process) Start

func (p *Process) Start() error

func (*Process) Stop

func (p *Process) Stop() error

func (*Process) UpdateExecContext

func (p *Process) UpdateExecContext(context execContext)

type Restart

type Restart struct {
	Restart    string `json:"restart"`
	RunCleanup bool   `json:"runCleanup"`
	// contains filtered or unexported fields
}

func (*Restart) Execute

func (r *Restart) Execute(triggeringFileName string) error

func (*Restart) Setup

func (r *Restart) Setup(process Restartable)

type Restartable

type Restartable interface {
	Restart(runCleanup bool) error
}

type Run

type Run struct {
	Run             []string `yaml:"run"`
	ContinueOnError bool     `yaml:"continueOnError"`
}

func (*Run) Execute

func (r *Run) Execute(triggeringFileName string) error

type RunnerConfig

type RunnerConfig interface {
	Execute(triggeringFileName string) error
}

Jump to

Keyboard shortcuts

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