http_acme

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcmeLogin

type AcmeLogin struct {
	Access  string `yaml:"access"`
	Refresh string `yaml:"refresh"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL