package
Version:
v0.0.0-...-4ddd76f
Opens a new window with list of versions in this module.
Published: Jan 8, 2018
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Action struct {
Cmd *[]string `json:"cmd" yaml:"cmd"`
Http *HTTPAction `json:"http" yaml:"http"`
}
type App struct {
Name string `json:"name" yaml:"name"`
Seq int `json:"seq" yaml:"seq"`
Env map[string]string `json:"env" yaml:"env"`
PreRun *Action `json:"preRun" yaml:"preRun"`
PostStop *Action `json:"postStop" yaml:"postStop"`
HealthCheck HealthCheck `json:"healthCheck" yaml:"healthCheck"`
}
type Config struct {
PreRun *Action `json:"preRun" yaml:"preRun"`
PreStop *Action `json:"preStop" yaml:"preStop"`
Apps []*App `json:"apps" yaml:"apps"`
SignalBinds []*SignalBind `json:"signalBinds" yaml:"signalBinds"`
}
type HTTPAction struct {
URL string `json:"url" yaml:"url"`
Method string `json:"method" yaml:"method"`
CAFile string `json:"caFile" yaml:"caFile"`
Cert string `json:"cert" yaml:"cert"`
CertKey string `json:"certKey" yaml:"certKey"`
}
type HealthCheck struct {
Action `json:",inline" yaml:",inline"`
Interval string `json:"interval" yaml:"interval"`
Timeout string `json:"timeout" yaml:"timeout"`
Retries int `json:"retries" yaml:"retries"`
}
type SignalBind struct {
Action `json:",inline" yaml:",inline"`
Signal int `json:"signal" yaml:"signal"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.