Versions in this module Expand all Collapse all v0 v0.2.0 Jun 15, 2020 Changes in this version + var ClusterDomain = "cluster.local" + func AppendCertsFromPEM(s *x509.CertPool, pemCerts []byte) error + func Check(key []byte, cert []byte, cacert []byte, duration time.Duration, name ...string) (bool, error) + func CheckInfo(info CertificateInfo, duration time.Duration, name ...string) (bool, error) + func Equal(a CertificateInfo, b CertificateInfo) bool + func GetCertificate(info CertificateInfo) (tls.Certificate, error) + func IsValid(key []byte, cert []byte, cacert []byte, duration time.Duration, name ...string) bool + func IsValidInfo(info CertificateInfo, duration time.Duration, name ...string) bool + func NewSignedCert(cfg *cert.Config, key crypto.Signer, caCert *x509.Certificate, ...) (*x509.Certificate, error) + type CertificateAccess interface + Get func(logger.LogContext) (CertificateInfo, error) + Set func(logger.LogContext, CertificateInfo) error + type CertificateHosts interface + GetDNSNames func() []string + GetIPs func() []net.IP + type CertificateInfo interface + CACert func() []byte + CAKey func() []byte + Cert func() []byte + Key func() []byte + func GetCertificateInfo(logger logger.LogContext, access CertificateAccess, cfg *Config) (CertificateInfo, error) + func LoadCertInfo(certFile, keyFile, caFile, cakeyFile string) (CertificateInfo, error) + func NewCertInfo(cert []byte, key []byte, cacert []byte, cakey []byte) CertificateInfo + func UpdateCertificate(old CertificateInfo, cfg *Config) (CertificateInfo, error) + type CompoundHosts []CertificateHosts + func NewCompoundHosts(hosts ...CertificateHosts) CompoundHosts + func (this *CompoundHosts) Add(hosts ...CertificateHosts) *CompoundHosts + func (this CompoundHosts) GetDNSNames() []string + func (this CompoundHosts) GetIPs() []net.IP + func (this CompoundHosts) With(hosts ...CertificateHosts) CompoundHosts + type Config struct + CommonName string + ExternallyManaged bool + Hosts CertificateHosts + Organization []string + Rest time.Duration + Validity time.Duration + type DNSName struct + func NewDNSName(name string) *DNSName + func (this *DNSName) GetDNSNames() []string + type IP struct + func NewIP(name net.IP) *IP + func (this *IP) GetIPs() []net.IP + type NoHost struct + func (this *NoHost) GetDNSNames() []string + func (this *NoHost) GetIPs() []net.IP + type ServiceHosts struct + func NewServiceHosts(name, namespace string) *ServiceHosts + func (this *ServiceHosts) GetDNSNames() []string + func (this *ServiceHosts) GetName() string + func (this *ServiceHosts) GetNamespace() string