aboutsummaryrefslogtreecommitdiff
path: root/cmd/acme/config.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-14 21:50:41 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-14 21:50:41 +0100
commitf51cf2b22e3818c432ad11744ef7ffe6066b8e2d (patch)
tree328f744b7b70b2da476db4946716d762a093cf85 /cmd/acme/config.go
parent36f3a6f8a8f17437daba42aab176fab255773502 (diff)
WIP
Diffstat (limited to 'cmd/acme/config.go')
-rw-r--r--cmd/acme/config.go47
1 files changed, 0 insertions, 47 deletions
diff --git a/cmd/acme/config.go b/cmd/acme/config.go
deleted file mode 100644
index c27b367..0000000
--- a/cmd/acme/config.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package main
-
-import (
- "log"
-
- "github.com/BurntSushi/toml"
-)
-
-type Config struct {
- Provider map[string]Provider
- Account map[string]Account
- Hook map[string]Hook
- Desire []Desire
-}
-
-type Provider struct {
- Directory string
-}
-
-type Account struct {
- Mail string
- Key string
- Provider string
-}
-
-type Desire struct {
- Altnames []string
- Key string
- Cert string
- Webroot string
- Account string
- Gracetime string
- Hook []string
-}
-
-type Hook struct {
- CMD string
-}
-
-func ReadConfig(fname string) Config {
- var c Config
- _, err := toml.DecodeFile(fname, &c)
- if err != nil {
- log.Fatal(err)
- }
- return c
-}