aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-17 12:26:43 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-17 12:26:43 +0100
commite5040c3b06aea9d2a02e12b8b1ae6b3f159d11a6 (patch)
treee44aa2a8a126d1afb3f32d206685d25fae0d769a /cmd
parent44203fdb737dab1c7e4aa9320e108e2426e509fd (diff)
Unexport config, remove dead code
Diffstat (limited to 'cmd')
-rw-r--r--cmd/acme/config.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/cmd/acme/config.go b/cmd/acme/config.go
index 9b15088..2c1c485 100644
--- a/cmd/acme/config.go
+++ b/cmd/acme/config.go
@@ -21,7 +21,7 @@ const (
crtPath = "certs"
)
-type Config struct {
+type config struct {
Gracetime time.Duration
Listen string
ListenTLS string
@@ -51,7 +51,6 @@ type domain struct {
}
var (
- errNoKey = errors.New("no key file specified")
errNoAltNames = errors.New("no altnames specified")
errNoMail = errors.New("no mail specified")
)
@@ -67,12 +66,12 @@ func expandHome(p string) (string, error) {
return p, nil
}
-func LoadConfig(fname string) (*Config, error) {
+func LoadConfig(fname string) (*config, error) {
conf, err := ioutil.ReadFile(fname)
if err != nil {
return nil, err
}
- c := new(Config)
+ c := new(config)
err = yaml.Unmarshal(conf, c)
if err != nil {
return nil, err
@@ -156,6 +155,6 @@ func checkWWW(altnames []string) []string {
return altnames
}
-func (c Config) dump() ([]byte, error) {
+func (c config) dump() ([]byte, error) {
return yaml.Marshal(c)
}