config

package
v0.0.0-...-d47ba9e Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobConfig

type JobConfig struct {
	ID            string `json:"ID" yaml:"id"`
	Command       string `json:"Command" yaml:"command"`
	Instances     string `json:"Instances" yaml:"instances"`
	AtLaunch      string `json:"AtLaunch" yaml:"atLaunch"`
	RestartPolicy string `json:"RestartPolicy" yaml:"restartPolicy"`
	ExpectedExit  string `json:"ExpectedExit" yaml:"expectedExit"`
	StartCheckup  string `json:"StartCheckup" yaml:"startCheckup"`
	MaxRestarts   string `json:"MaxRestarts" yaml:"maxRestarts"`
	StopSignal    string `json:"StopSignal" yaml:"stopSignal"`
	StopTimeout   string `json:"StopTimeout" yaml:"stopTimeout"`
	EnvVars       string `json:"EnvVars" yaml:"envVars"`
	WorkingDir    string `json:"WorkingDir" yaml:"workingDir"`
	Umask         string `json:"Umask" yaml:"umask"`
	Redirections
}

* JobConfig represents the config struct loaded from yaml

func (JobConfig) Same

func (c JobConfig) Same(cfg *JobConfig) bool

* Same compares two configuration files for deep equality

func (JobConfig) String

func (c JobConfig) String() string

* String is the printed representation of the struct

type Redirections

type Redirections struct {
	Stdin  string `json:"Stdin"`
	Stdout string `json:"Stdout"`
	Stderr string `json:"Stderr"`
}

* Redirections store the redirection file names

Jump to

Keyboard shortcuts

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