Documentation
¶
Index ¶
- type HealthChecker
- func (h *HealthChecker) CheckService(ctx context.Context, serviceName, domain string) (*ServiceHealth, error)
- func (h *HealthChecker) MonitorSSLProvisioning(ctx context.Context, serviceName, domain string, maxWait time.Duration) error
- func (h *HealthChecker) WaitForServiceReady(ctx context.Context, serviceName, domain string, maxWait time.Duration) error
- type SSLInfo
- type ServiceHealth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthChecker ¶
type HealthChecker struct {
// contains filtered or unexported fields
}
HealthChecker performs periodic health checks on deployed services
func NewHealthChecker ¶
func NewHealthChecker(client *ssh.Client) *HealthChecker
NewHealthChecker creates a new health checker
func (*HealthChecker) CheckService ¶
func (h *HealthChecker) CheckService(ctx context.Context, serviceName, domain string) (*ServiceHealth, error)
CheckService performs a comprehensive health check on a service
func (*HealthChecker) MonitorSSLProvisioning ¶
func (h *HealthChecker) MonitorSSLProvisioning(ctx context.Context, serviceName, domain string, maxWait time.Duration) error
MonitorSSLProvisioning monitors SSL certificate provisioning with periodic checks
func (*HealthChecker) WaitForServiceReady ¶
func (h *HealthChecker) WaitForServiceReady(ctx context.Context, serviceName, domain string, maxWait time.Duration) error
WaitForServiceReady waits for a service to be fully ready
type ServiceHealth ¶
type ServiceHealth struct {
ServiceName string
Domain string
HTTPAccessible bool
HTTPSAccessible bool
SSLValid bool
SSLIssuer string
SSLExpiry time.Time
ContainerRunning bool
TraefikConfigured bool
LastChecked time.Time
Errors []string
}
ServiceHealth represents the health status of a deployed service
func (*ServiceHealth) PrintReport ¶
func (h *ServiceHealth) PrintReport()
PrintHealthReport prints a formatted health report
Click to show internal directories.
Click to hide internal directories.