MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / checkSSLStatus

Function checkSSLStatus

agent/app/service/website_utils.go:1457–1467  ·  view source on GitHub ↗
(expireDate time.Time)

Source from the content-addressed store, hash-verified

1455}
1456
1457func checkSSLStatus(expireDate time.Time) string {
1458 now := time.Now()
1459 daysUntilExpiry := int(expireDate.Sub(now).Hours() / 24)
1460
1461 if daysUntilExpiry < 0 {
1462 return "danger"
1463 } else if daysUntilExpiry <= 10 {
1464 return "warning"
1465 }
1466 return "success"
1467}
1468
1469func getResourceContent(fileOp files.FileOp, resourcePath string) (string, error) {
1470 if fileOp.Stat(resourcePath) {

Callers 1

PageWebsiteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected