Documentation ¶
Index ¶
- type Cert
- type CertValidater
- type ImplCertValidaterOption
- type PEMCert
- func (cert *PEMCert) CertData() []byte
- func (ca *PEMCert) CreateAndSignCertificate(commonName string, orgUnit string, dnsnames []string) (cert Cert, err error)
- func (cert *PEMCert) KeyData() []byte
- func (cert *PEMCert) SecretData(ca Cert) map[string][]byte
- func (ca *PEMCert) SecretDataCA() map[string][]byte
- type PKI
- type PkiImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertValidater ¶
func NewCertValidater ¶
func NewCertValidater(pemData []byte, opts ...ImplCertValidaterOption) (CertValidater, error)
type ImplCertValidaterOption ¶
type ImplCertValidaterOption func(*implCertValidaterOptions)
func WithExpiryThreshold ¶
func WithExpiryThreshold(expiryThreshold time.Duration) ImplCertValidaterOption
type PEMCert ¶
type PEMCert struct {
// contains filtered or unexported fields
}
Represents a certificate with key
func (*PEMCert) CreateAndSignCertificate ¶
func (*PEMCert) SecretDataCA ¶
type PKI ¶
Click to show internal directories.
Click to hide internal directories.