Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetI18nPrinter ¶
Types ¶
type ConfigError ¶
type ConfigError struct {
// contains filtered or unexported fields
}
func (*ConfigError) Error ¶
func (e *ConfigError) Error() string
type ConfigFile ¶
type ConfigFile struct {
BasePath string `yaml:"-"`
LogFilePath string `yaml:"log_file"`
Jobs map[string]JobConfig `yaml:"jobs,omitempty"`
Services map[string]ServiceConfig `yaml:"services,omitempty"`
}
func FindAndParseConfig ¶
func FindAndParseConfig(givenPath string) (*ConfigFile, error)
func ParseConfigs ¶ added in v1.15.0
func ParseConfigs(fileContents [][]byte) (*ConfigFile, error)
type DependencyConfig ¶
type HealthcheckConfig ¶
type HealthcheckConfig struct {
Port int `yaml:"port"`
}
type JobConfig ¶
type JobConfig struct {
Steps []StepConfig `yaml:"steps"`
RunAfter []CmdConfig `yaml:"run_after,omitempty"`
}
type ServiceConfig ¶
type ServiceConfig struct {
TaskConfig `yaml:"task_config,inline"`
Healthcheck HealthcheckConfig `yaml:"healthcheck"`
AutoRestart bool `yaml:"auto_restart"`
Dependencies []DependencyConfig `yaml:"dependencies"`
OpenTarget string `yaml:"open_target"`
}
type StepConfig ¶
type StepConfig struct {
Name string `yaml:"name"`
Tasks []TaskConfig `yaml:"tasks"`
RunBefore []CmdConfig `yaml:"run_before,omitempty"`
RunAfter []CmdConfig `yaml:"run_after,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.