Documentation
¶
Overview ¶
Package scaffold parses docker-compose.yml files and generates stackup.yml configs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Generate creates a stackup.yml configuration from a docker-compose.yml file, auto-detecting health check types for known images.
func ParseServices ¶
ParseServices reads a docker-compose.yml and returns a map of service name to its dependency list.
func ParseServicesRich ¶
func ParseServicesRich(composeFilePath string) (map[string][]Dependency, error)
ParseServicesRich reads a docker-compose.yml and returns dependencies with conditions. This allows stackup to understand if compose already expects service_healthy checks.
Types ¶
type Dependency ¶
type Dependency struct {
Service string
Condition string // "service_started", "service_healthy", "service_completed_successfully"
}
Dependency represents a service dependency with its condition.
type HealthDefault ¶
HealthDefault holds the detected health check configuration for a known image.
func DetectHealthDefault ¶
func DetectHealthDefault(image string) *HealthDefault
DetectHealthDefault checks if the image name contains any known pattern. Returns nil if no match found.