Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CAKeyName is the name of the CA private key CAKeyName = "ca-key.pem" // CACertName is the name of the CA certificate CACertName = "ca-cert.pem" // KeyName is the name of the server private key KeyName = "key.pem" // CertName is the name of the serving certificate CertName = "cert.pem" )
Variables ¶
This section is empty.
Functions ¶
func GetCertificateInfo ¶
func GetCertificateInfo(logger logger.LogContext, access CertificateAccess, commonName, dnsName string) (cert.CertificateInfo, error)
Types ¶
type CertificateAccess ¶
type CertificateAccess interface {
Get(logger.LogContext) (cert.CertificateInfo, error)
Set(logger.LogContext, cert.CertificateInfo) error
}
func NewSecret ¶
func NewSecret(cluster cluster.Interface, name resources.ObjectName) CertificateAccess
Click to show internal directories.
Click to hide internal directories.