Documentation
¶
Index ¶
- func AsExecError(err error, target **exec.Error) bool
- func AsExitError(err error, target **exec.ExitError) bool
- func ClearHealthURLFile(alias string, root state.Root)
- func DefaultProfileDir(lookupEnv func(string) (string, bool)) (string, error)
- func LogPath(alias string, root state.Root) string
- func LogTail(pathValue string, maxLines int) string
- func NormalizeHealthBaseURL(rawHealthURL string) string
- func NormalizeProfileName(profileName string, alias string) (string, error)
- func PIDIsRunning(pid int) bool
- func ParsePortFromHealthURL(raw string) int
- func ProfileHealthURLFile(alias string, root state.Root) string
- func ReadHealthURL(path string) string
- func ResolveProfileDir(profileDir string, lookupEnv func(string) (string, bool)) (string, error)
- func TerminateProcess(pid int) error
- func TmuxAvailable(rt Runtime) (bool, error)
- func TmuxHasSessionName(rt Runtime, sessionName string) (bool, error)
- func TmuxSessionName(alias string, root state.Root) string
- func TunnelClientArgs(tunnelClientBin string, profileName string, profileDir string) []string
- func TunnelClientCommand(tunnelClientBin string, profileName string, profileDir string) string
- func WaitForProcessExit(pid int) bool
- func WriteRuntimeProfile(alias string, profileName string, tunnelID string, baseURL string, ...) (string, error)
- type CompletedProcess
- type EndpointProbe
- type HealthProbe
- type LaunchResult
- type Process
- type Runner
- type RunnerWithInput
- type Runtime
- type RuntimeObservation
- type Starter
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearHealthURLFile ¶
func DefaultProfileDir ¶
func NormalizeHealthBaseURL ¶
func NormalizeProfileName ¶
func PIDIsRunning ¶
func ParsePortFromHealthURL ¶
func ReadHealthURL ¶
func ResolveProfileDir ¶
func TerminateProcess ¶
func TmuxAvailable ¶
func TunnelClientArgs ¶
func TunnelClientCommand ¶
func WaitForProcessExit ¶
Types ¶
type CompletedProcess ¶
type EndpointProbe ¶
type HealthProbe ¶
type HealthProbe struct {
BaseURL string `json:"base_url,omitempty"`
Healthz EndpointProbe `json:"healthz"`
Readyz EndpointProbe `json:"readyz"`
}
func ProbeHealthEndpoints ¶
func ProbeHealthEndpoints(rawHealthURL string) HealthProbe
type LaunchResult ¶
type LaunchResult struct {
Mode string `json:"mode"`
Command string `json:"command"`
Launched bool `json:"launched"`
Started bool `json:"started"`
Running bool `json:"running"`
Healthy bool `json:"healthy"`
Ready bool `json:"ready"`
AlreadyRunning bool `json:"already_running"`
HealthURL string `json:"health_url,omitempty"`
SessionName string `json:"session_name,omitempty"`
PID int `json:"pid,omitempty"`
LogPath string `json:"log_path,omitempty"`
ExitCode *int `json:"exit_code,omitempty"`
LogTail string `json:"log_tail,omitempty"`
}
type RunnerWithInput ¶
type Runtime ¶
type Runtime struct {
Run Runner
RunInput RunnerWithInput
Start Starter
}
func DefaultRuntime ¶
func DefaultRuntime() Runtime
type RuntimeObservation ¶
type RuntimeObservation struct {
Running bool `json:"running"`
HealthURL string `json:"health_url,omitempty"`
Healthy bool `json:"healthy"`
Ready bool `json:"ready"`
HealthProbe HealthProbe `json:"health_probe"`
}
func WaitForRuntimeHealth ¶
Click to show internal directories.
Click to hide internal directories.