Documentation
¶
Overview ¶
Package config loads and validates reconD workload configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitProvider ¶
type HealthCheck ¶
type HealthCheck struct {
Type HealthCheckType `yaml:"type"`
URL string `yaml:"url"`
Retries int `yaml:"retries"`
Interval Duration `yaml:"interval"`
Timeout Duration `yaml:"timeout"`
}
type HealthCheckType ¶
type HealthCheckType string
const ( HealthCheckNone HealthCheckType = "none" HealthCheckHTTP HealthCheckType = "http" HealthCheckTCP HealthCheckType = "tcp" HealthCheckCommand HealthCheckType = "command" )
type Strategy ¶
type Strategy struct {
Type StrategyType `yaml:"type"`
EnvFilePath string `yaml:"env_file_path"`
ImageTagKey string `yaml:"image_tag_key"`
}
type StrategyType ¶
type StrategyType string
const ( StrategyNone StrategyType = "none" StrategyEnvFile StrategyType = "env_file" )
type Workload ¶
type Workload struct {
Name string `yaml:"name"`
Environment string `yaml:"environment"`
ContainerName string `yaml:"container_name"`
NotificationURL string `yaml:"notification_url"`
DeployCommand string `yaml:"deploy_command"`
CheckInterval Duration `yaml:"check_interval"`
StateDir string `yaml:"state_dir"`
GitProvider GitProvider `yaml:"git_provider"`
HealthCheck HealthCheck `yaml:"health_check"`
Strategy Strategy `yaml:"strategy"`
// Labels optionally scope docker image pruning to this workload's images.
Labels map[string]string `yaml:"labels"`
}
Click to show internal directories.
Click to hide internal directories.