Skip to content

Commit

Permalink
add deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kelseyhightower committed Aug 17, 2017
1 parent 9bd58f8 commit 822ff42
Show file tree
Hide file tree
Showing 1,171 changed files with 404,174 additions and 26,451 deletions.
51 changes: 51 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions Gopkg.toml
@@ -0,0 +1,42 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
name = "github.com/boltdb/bolt"
version = "1.3.1"

[[constraint]]
name = "github.com/certifi/gocertifi"
version = "2017.7.27"

[[constraint]]
name = "github.com/fsnotify/fsnotify"
version = "1.4.2"

[[constraint]]
name = "github.com/google/acme"
version = "1.1.1"

[[constraint]]
branch = "master"
name = "github.com/miekg/dns"
21 changes: 21 additions & 0 deletions tls-app/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions tls-app/Gopkg.toml
@@ -0,0 +1,26 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
name = "github.com/fsnotify/fsnotify"
version = "1.4.2"
14 changes: 7 additions & 7 deletions tls-app/certificate-manager.go
Expand Up @@ -15,7 +15,7 @@ import (
"log"
"sync"

"golang.org/x/exp/inotify"
"github.com/fsnotify/fsnotify"
)

type CertificateManager struct {
Expand All @@ -24,7 +24,7 @@ type CertificateManager struct {
keyFile string
certificate *tls.Certificate
Error chan error
watcher *inotify.Watcher
watcher *fsnotify.Watcher
}

func NewCertificateManager(certFile, keyFile string) (*CertificateManager, error) {
Expand Down Expand Up @@ -70,7 +70,7 @@ func (cm *CertificateManager) watchCertificate() error {

for {
select {
case <-cm.watcher.Event:
case <-cm.watcher.Events:
log.Println("Reloading TLS certificates...")
err := cm.setCertificate()
if err != nil {
Expand All @@ -81,23 +81,23 @@ func (cm *CertificateManager) watchCertificate() error {
if err != nil {
cm.Error <- err
}
case err := <-cm.watcher.Error:
case err := <-cm.watcher.Errors:
cm.Error <- err
}
}
}

func (cm *CertificateManager) newWatcher() error {
var err error
cm.watcher, err = inotify.NewWatcher()
cm.watcher, err = fsnotify.NewWatcher()
if err != nil {
return err
}
err = cm.watcher.AddWatch(cm.certFile, inotify.IN_IGNORED)
err = cm.watcher.Add(cm.certFile)
if err != nil {
return err
}
return cm.watcher.AddWatch(cm.keyFile, inotify.IN_IGNORED)
return cm.watcher.Add(cm.keyFile)
}

func (cm *CertificateManager) resetWatcher() error {
Expand Down
5 changes: 5 additions & 0 deletions tls-app/vendor/github.com/fsnotify/fsnotify/.editorconfig

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions tls-app/vendor/github.com/fsnotify/fsnotify/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions tls-app/vendor/github.com/fsnotify/fsnotify/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions tls-app/vendor/github.com/fsnotify/fsnotify/AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 822ff42

Please sign in to comment.