Documentation
¶
Index ¶
- func AssureStringArray(mod *utils.ModificationState, dst *[]string, value []string)
- func CheckDNSPropagation(nameservers []string, fqdn string, values ...string) (bool, error)
- func CreateWrapPreCheckOption(nameservers []string) dns01.ChallengeOption
- func EqualStringArray(a, b []string) bool
- func IsInDomainRange(domain, domainRange string) bool
- func IsInDomainRanges(domain string, domainRanges []string) bool
- func NormalizeDomainRange(domainRange string) string
- func PreparePrecheckNameservers(nameservers []string) []string
- type CertificateObject
- type IssuerObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssureStringArray ¶
func AssureStringArray(mod *utils.ModificationState, dst *[]string, value []string)
AssureStringArray handles modification of a string array.
func CheckDNSPropagation ¶ added in v0.2.14
CheckDNSPropagation checks if the expected TXT record has been propagated to all authoritative nameservers.
func CreateWrapPreCheckOption ¶ added in v0.2.14
func CreateWrapPreCheckOption(nameservers []string) dns01.ChallengeOption
CreateWrapPreCheckOption creates lego DNS ChallengeOption for custom Precheck function, checking the DNS propagation of the DNS challenge TXT record.
func EqualStringArray ¶
EqualStringArray compares string arrays.
func IsInDomainRange ¶
IsInDomainRange returns true if domain is in domain range.
func IsInDomainRanges ¶
IsInDomainRanges returns true if domain is in domain ranges.
func NormalizeDomainRange ¶
NormalizeDomainRange normalizes domain to lower case, drops wildcard and suffix dot.
func PreparePrecheckNameservers ¶ added in v0.2.14
PreparePrecheckNameservers collects the nameservers for checking DNS propagation. If no nameservers are provided, it tries to read them from `/etc/resolv.conf`, and last resort is to use Google public DNS servers (8.8.8.8 and 8.8.4.4)
Types ¶
type CertificateObject ¶
CertificateObject encapsulates the certificate resource object.
func Certificate ¶
func Certificate(o resources.Object) *CertificateObject
Certificate returns the certificate object
func (*CertificateObject) Certificate ¶
func (o *CertificateObject) Certificate() *api.Certificate
Certificate casts the object to certificate.
func (*CertificateObject) SafeCommonName ¶
func (o *CertificateObject) SafeCommonName() string
SafeCommonName return the common name or "".
func (*CertificateObject) Spec ¶
func (o *CertificateObject) Spec() *api.CertificateSpec
Spec returns the certificate spec
func (*CertificateObject) Status ¶
func (o *CertificateObject) Status() *api.CertificateStatus
Status returns the certificate status
type IssuerObject ¶
IssuerObject encapsulates the issuer resource object.
func (*IssuerObject) Issuer ¶
func (o *IssuerObject) Issuer() *api.Issuer
Issuer returns the issuer.
func (*IssuerObject) Spec ¶
func (o *IssuerObject) Spec() *api.IssuerSpec
Spec returns the issuer resource object spec.
func (*IssuerObject) Status ¶
func (o *IssuerObject) Status() *api.IssuerStatus
Status returns the issuer resource object status.