Start abstracting away the ACME provider (#830)

* Start abstracting away the ACME provider

* Move ACME to interface with sub-package implementations

* Addressing comments

* Library -> Provider

* Missed a couple of Library -> Provider

* One more Library -> Provider

* remove constants
This commit is contained in:
Jake Sanders
2019-10-09 16:42:05 +01:00
committed by Asim Aslam
parent 44473f954f
commit 107b7419b7
5 changed files with 69 additions and 8 deletions

View File

@@ -0,0 +1,15 @@
package autocert
import (
"testing"
)
func TestAutocert(t *testing.T) {
l := New()
if _, ok := l.(*autocertProvider); !ok {
t.Error("New() didn't return an autocertProvider")
}
if _, err := l.NewListener(); err != nil {
t.Error(err.Error())
}
}