Documentation
¶
Overview ¶
Package smoke_runner provides lightweight deployment health checks for ZAP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheck ¶
type HealthCheck struct {
Name string `json:"name"`
Endpoint string `json:"endpoint"`
Status string `json:"status"` // ok, error
Latency string `json:"latency"`
Message string `json:"message,omitempty"`
}
HealthCheck represents a single health or reachability check.
type SmokeParams ¶
type SmokeParams struct {
BaseURL string `json:"base_url"` // Base URL of the API
Endpoints []string `json:"endpoints,omitempty"` // Specific critical endpoints to check
Timeout int `json:"timeout_ms,omitempty"` // Timeout per request
Detailed bool `json:"detailed,omitempty"` // Whether to provide detailed health diagnostics
}
SmokeParams defines parameters for smoke testing.
type SmokeResult ¶
type SmokeResult struct {
Status string `json:"status"` // pass, fail, partial
Duration string `json:"duration"`
Checks []HealthCheck `json:"checks"`
Summary string `json:"summary"`
}
SmokeResult represents the outcome of a smoke test.
type SmokeRunnerTool ¶
type SmokeRunnerTool struct {
// contains filtered or unexported fields
}
SmokeRunnerTool performs fast health checks and core functionality verification.
func NewSmokeRunnerTool ¶
func NewSmokeRunnerTool(falconDir string, httpTool *shared.HTTPTool) *SmokeRunnerTool
NewSmokeRunnerTool creates a new smoke runner tool.
func (*SmokeRunnerTool) Description ¶
func (t *SmokeRunnerTool) Description() string
func (*SmokeRunnerTool) Name ¶
func (t *SmokeRunnerTool) Name() string
func (*SmokeRunnerTool) Parameters ¶
func (t *SmokeRunnerTool) Parameters() string
Click to show internal directories.
Click to hide internal directories.