Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpAcmeProvider ¶
type HttpAcmeProvider struct {
// contains filtered or unexported fields
}
HttpAcmeProvider sends HTTP requests to an API updating the outputted `.wellknown/acme-challenges` data
func NewHttpAcmeProvider ¶
func NewHttpAcmeProvider(tokenFile, apiUrlPresent, apiUrlCleanUp, apiUrlRefreshToken string) (*HttpAcmeProvider, error)
NewHttpAcmeProvider creates a new HttpAcmeProvider using http.DefaultTransport as the transport
func (*HttpAcmeProvider) CleanUp ¶
func (h *HttpAcmeProvider) CleanUp(domain, token, keyAuth string) error
CleanUp implements challenge.Provider and sends a delete request to the specified path along with a bearer token to authenticate
func (*HttpAcmeProvider) Present ¶
func (h *HttpAcmeProvider) Present(domain, token, keyAuth string) error
Present implements challenge.Provider and sends a put request to the specified path along with a bearer token to authenticate
Click to show internal directories.
Click to hide internal directories.