Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderReport ¶
RenderReport writes the certificate expiration report to w in two sections: leaf certificates followed by certificate authorities.
Types ¶
type Report ¶
Report holds the result of a certificate expiration check.
func BuildFullScanReport ¶
BuildFullScanReport enumerates all known control-plane certificates and kubeconfig client certificates, returning a report split into CAs and leaf certs. certsDir is the PKI directory (e.g. /etc/kubernetes/pki). kubeconfigDir is the directory containing kubeconfig files (e.g. /etc/kubernetes). Callers that want the standard layout can pass filepath.Dir(certsDir).
func BuildSingleFileReport ¶
BuildSingleFileReport inspects a single file at path. It tries kubeconfig parsing first; if that fails it falls back to PEM certificate parsing. If both parsers fail, the combined error is returned.