health

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 SSLInfo

type SSLInfo struct {
	Valid  bool
	Issuer string
	Expiry time.Time
	Error  string
}

SSLInfo contains SSL certificate information

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL