Documentation ¶
Index ¶
Constants ¶
View Source
const ( VaultAccountKeyUri = "uri" VaultAccountKeyEmail = "email" VaultAccountKeyAccount = "account" VaultAccountKeyKey = "key" )
Variables ¶
View Source
var ErrAccountNotFound = errors.New("account not found")
View Source
var ErrNotFound = errors.New("not found")
View Source
var ErrPermissionDenied = errors.New("permission denied")
Functions ¶
func CertToMap ¶
func CertToMap(res *AcmeCertificate) map[string]interface{}
func ConvertToPem ¶
func ConvertToPem(privateKey crypto.PrivateKey) (string, error)
Types ¶
type AcmeAccount ¶
type AcmeAccount struct { Email string Key crypto.PrivateKey Registration *registration.Resource }
func (AcmeAccount) GetEmail ¶
func (account AcmeAccount) GetEmail() string
func (AcmeAccount) GetPrivateKey ¶
func (account AcmeAccount) GetPrivateKey() crypto.PrivateKey
func (AcmeAccount) GetRegistration ¶
func (account AcmeAccount) GetRegistration() *registration.Resource
func (AcmeAccount) IsInitialized ¶
func (account AcmeAccount) IsInitialized() bool
func (AcmeAccount) Validate ¶
func (account AcmeAccount) Validate()
type AcmeCertificate ¶
type AcmeCertificate struct { Domain string `json:"domain"` CertURL string `json:"certUrl"` CertStableURL string `json:"certStableUrl"` PrivateKey []byte `json:"-"` Certificate []byte `json:"-"` IssuerCertificate []byte `json:"-"` CSR []byte `json:"-"` }
func MapToCert ¶
func MapToCert(data map[string]interface{}) (*AcmeCertificate, error)
func (*AcmeCertificate) GetDurationUntilExpiry ¶
func (cert *AcmeCertificate) GetDurationUntilExpiry() (time.Duration, error)
func (*AcmeCertificate) GetExpiryTimestamp ¶
func (cert *AcmeCertificate) GetExpiryTimestamp() (time.Time, error)
func (*AcmeCertificate) NeedsRenewal ¶ added in v1.10.0
func (cert *AcmeCertificate) NeedsRenewal() (bool, error)
type CertMetadata ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.