summaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/xenolf/lego/acmev2/challenges.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/xenolf/lego/acmev2/challenges.go')
-rw-r--r--vendor/github.com/xenolf/lego/acmev2/challenges.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/xenolf/lego/acmev2/challenges.go b/vendor/github.com/xenolf/lego/acmev2/challenges.go
new file mode 100644
index 000000000..cf7bd7f75
--- /dev/null
+++ b/vendor/github.com/xenolf/lego/acmev2/challenges.go
@@ -0,0 +1,13 @@
+package acme
+
+// Challenge is a string that identifies a particular type and version of ACME challenge.
+type Challenge string
+
+const (
+ // HTTP01 is the "http-01" ACME challenge https://github.com/ietf-wg-acme/acme/blob/master/draft-ietf-acme-acme.md#http
+ // Note: HTTP01ChallengePath returns the URL path to fulfill this challenge
+ HTTP01 = Challenge("http-01")
+ // DNS01 is the "dns-01" ACME challenge https://github.com/ietf-wg-acme/acme/blob/master/draft-ietf-acme-acme.md#dns
+ // Note: DNS01Record returns a DNS record which will fulfill this challenge
+ DNS01 = Challenge("dns-01")
+)