Documentation ¶
Index ¶
- Variables
- type AccountService
- func (a *AccountService) Deactivate(accountURL string) error
- func (a *AccountService) Get(accountURL string) (acme.Account, error)
- func (a *AccountService) New(req acme.Account) (acme.ExtendedAccount, error)
- func (a *AccountService) NewEAB(accMsg acme.Account, kid, hmacEncoded string) (acme.ExtendedAccount, error)
- func (a *AccountService) Update(accountURL string, req acme.Account) (acme.Account, error)
- type AuthorizationService
- type CertificateService
- func (c *CertificateService) Get(certURL string, bundle bool) ([]byte, []byte, error)
- func (c *CertificateService) GetAll(certURL string, bundle bool) (map[string]*acme.RawCertificate, error)
- func (c *CertificateService) GetRenewalInfo(certID string) (*http.Response, error)
- func (c *CertificateService) Revoke(req acme.RevokeCertMessage) error
- type ChallengeService
- type Core
- type OrderOptions
- type OrderService
- func (o *OrderService) Get(orderURL string) (acme.ExtendedOrder, error)
- func (o *OrderService) New(domains []string) (acme.ExtendedOrder, error)
- func (o *OrderService) NewWithOptions(domains []string, opts *OrderOptions) (acme.ExtendedOrder, error)
- func (o *OrderService) UpdateForCSR(orderURL string, csr []byte) (acme.ExtendedOrder, error)
Constants ¶
This section is empty.
Variables ¶
var ErrNoARI = errors.New("renewalInfo[get/post]: server does not advertise a renewal info endpoint")
ErrNoARI is returned when the server does not advertise a renewal info endpoint.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
type AccountService service
func (*AccountService) Deactivate ¶
func (a *AccountService) Deactivate(accountURL string) error
Deactivate Deactivates an account.
func (*AccountService) Get ¶
func (a *AccountService) Get(accountURL string) (acme.Account, error)
Get Retrieves an account.
func (*AccountService) New ¶
func (a *AccountService) New(req acme.Account) (acme.ExtendedAccount, error)
New Creates a new account.
func (*AccountService) NewEAB ¶
func (a *AccountService) NewEAB(accMsg acme.Account, kid, hmacEncoded string) (acme.ExtendedAccount, error)
NewEAB Creates a new account with an External Account Binding.
type AuthorizationService ¶
type AuthorizationService service
func (*AuthorizationService) Deactivate ¶
func (c *AuthorizationService) Deactivate(authzURL string) error
Deactivate Deactivates an authorization.
func (*AuthorizationService) Get ¶
func (c *AuthorizationService) Get(authzURL string) (acme.Authorization, error)
Get Gets an authorization.
type CertificateService ¶
type CertificateService service
func (*CertificateService) Get ¶
Get Returns the certificate and the issuer certificate. 'bundle' is only applied if the issuer is provided by the 'up' link.
func (*CertificateService) GetAll ¶ added in v4.1.2
func (c *CertificateService) GetAll(certURL string, bundle bool) (map[string]*acme.RawCertificate, error)
GetAll the certificates and the alternate certificates. bundle' is only applied if the issuer is provided by the 'up' link.
func (*CertificateService) GetRenewalInfo ¶ added in v4.12.0
func (c *CertificateService) GetRenewalInfo(certID string) (*http.Response, error)
GetRenewalInfo GETs renewal information for a certificate from the renewalInfo endpoint. This is used to determine if a certificate needs to be renewed.
Note: this endpoint is part of a draft specification, not all ACME servers will implement it. This method will return api.ErrNoARI if the server does not advertise a renewal info endpoint.
func (*CertificateService) Revoke ¶
func (c *CertificateService) Revoke(req acme.RevokeCertMessage) error
Revoke Revokes a certificate.
type ChallengeService ¶
type ChallengeService service
func (*ChallengeService) Get ¶
func (c *ChallengeService) Get(chlgURL string) (acme.ExtendedChallenge, error)
Get Gets a challenge.
func (*ChallengeService) New ¶
func (c *ChallengeService) New(chlgURL string) (acme.ExtendedChallenge, error)
New Creates a challenge.
type Core ¶
type Core struct { HTTPClient *http.Client Accounts *AccountService Authorizations *AuthorizationService Certificates *CertificateService Challenges *ChallengeService Orders *OrderService // contains filtered or unexported fields }
Core ACME/LE core API.
func New ¶
func New(httpClient *http.Client, userAgent, caDirURL, kid string, privateKey crypto.PrivateKey) (*Core, error)
New Creates a new Core.
func (*Core) GetDirectory ¶
type OrderOptions ¶ added in v4.12.0
type OrderOptions struct { NotBefore time.Time NotAfter time.Time // A string uniquely identifying a previously-issued certificate which this // order is intended to replace. // - https://datatracker.ietf.org/doc/html/draft-ietf-acme-ari-03#section-5 ReplacesCertID string }
OrderOptions used to create an order (optional).
type OrderService ¶
type OrderService service
func (*OrderService) Get ¶
func (o *OrderService) Get(orderURL string) (acme.ExtendedOrder, error)
Get Gets an order.
func (*OrderService) New ¶
func (o *OrderService) New(domains []string) (acme.ExtendedOrder, error)
New Creates a new order.
func (*OrderService) NewWithOptions ¶ added in v4.12.0
func (o *OrderService) NewWithOptions(domains []string, opts *OrderOptions) (acme.ExtendedOrder, error)
NewWithOptions Creates a new order.
func (*OrderService) UpdateForCSR ¶
func (o *OrderService) UpdateForCSR(orderURL string, csr []byte) (acme.ExtendedOrder, error)
UpdateForCSR Updates an order for a CSR.