Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChallengePath ¶
ChallengePath returns the URL path for the `http-01` challenge
Types ¶
type Challenge ¶
type Challenge struct {
// contains filtered or unexported fields
}
func NewChallenge ¶
func (*Challenge) SetProvider ¶
type ProviderServer ¶
type ProviderServer struct {
// contains filtered or unexported fields
}
ProviderServer implements ChallengeProvider for `http-01` challenge It may be instantiated without using the NewProviderServer function if you want only to use the default values.
func NewProviderServer ¶
func NewProviderServer(iface, port string) *ProviderServer
NewProviderServer creates a new ProviderServer on the selected interface and port. Setting iface and / or port to an empty string will make the server fall back to the "any" interface and port 80 respectively.
func (*ProviderServer) CleanUp ¶
func (s *ProviderServer) CleanUp(domain, token, keyAuth string) error
CleanUp closes the HTTP server and removes the token from `ChallengePath(token)`
func (*ProviderServer) GetAddress ¶
func (s *ProviderServer) GetAddress() string
func (*ProviderServer) Present ¶
func (s *ProviderServer) Present(domain, token, keyAuth string) error
Present starts a web server and makes the token available at `ChallengePath(token)` for web requests.
Click to show internal directories.
Click to hide internal directories.