aboutsummaryrefslogtreecommitdiff
path: root/resource.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-11-28 10:15:48 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-11-28 10:15:48 +0100
commit378ffb6e34fdc05e383e0b40466469237c3f5c65 (patch)
tree08ec630d3ea7b63382adb92bb697f5289397e122 /resource.go
parent01bd20286a53827714ad819a1c2f57d28a116156 (diff)
wip
Diffstat (limited to 'resource.go')
-rw-r--r--resource.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/resource.go b/resource.go
new file mode 100644
index 0000000..b38cbca
--- /dev/null
+++ b/resource.go
@@ -0,0 +1,28 @@
+package acme
+
+type ResourceValue interface {
+ Value() string
+}
+
+type NewReg struct {
+ Contact []string `json:"contact"`
+}
+
+type RecoverReg struct{}
+type NewAuthz struct{}
+type NewCert struct{}
+type RevokeCert struct{}
+type Register struct{}
+type Authz struct{}
+type Challenge struct{}
+type Cert struct{}
+
+func (NewReg) Value() string { return "new-reg" }
+func (RecoverReg) Value() string { return "recover-reg" }
+func (NewAuthz) Value() string { return "new-authz" }
+func (NewCert) Value() string { return "new-cert" }
+func (RevokeCert) Value() string { return "revoke-cert" }
+func (Register) Value() string { return "reg" }
+func (Authz) Value() string { return "authz" }
+func (Challenge) Value() string { return "challenge" }
+func (Cert) Value() string { return "cert" }