Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DevState ¶
type DevState struct {
Version int `json:"version"`
ContainerID string `json:"containerId"`
ContainerName string `json:"containerName"`
ComposeProject string `json:"composeProject"`
Image string `json:"image"`
HostPort string `json:"hostPort"`
AppDir string `json:"appDir"`
BlueprintFile string `json:"blueprintFile"`
ServiceName string `json:"serviceName"`
Runtime string `json:"runtime"`
Handlers []HandlerSummary `json:"handlers"`
StartedAt time.Time `json:"startedAt"`
PID int `json:"pid"`
Detached bool `json:"detached"`
}
DevState tracks the running dev environment for coordination between dev run, dev stop, dev status, and dev logs commands.
func (*DevState) IsProcessAlive ¶
IsProcessAlive checks whether the PID recorded in the state is still running. Returns false for PID 0 (detached mode) or if the process is gone.
Click to show internal directories.
Click to hide internal directories.