Documentation
¶
Overview ¶
Package compose wraps the docker-compose CLI for devrig managed services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverServices ¶
DiscoverServices reads a docker-compose.yml and returns the service names defined under the top-level `services:` key — without running Docker.
Types ¶
type Publisher ¶
type Publisher struct {
TargetPort uint16 `json:"TargetPort"`
PublishedPort uint16 `json:"PublishedPort"`
}
Publisher is a port binding reported by docker compose ps.
type Service ¶
type Service struct {
ID string `json:"ID"`
Name string `json:"Name"`
Service string `json:"Service"`
State string `json:"State"`
Health string `json:"Health"`
Publishers []Publisher `json:"Publishers"`
}
Service represents a running compose service from `docker compose ps --format json`.
Click to show internal directories.
Click to hide internal directories.