bump go-pkgz modules, bbolt new url

This commit is contained in:
Dmitry Verkhoturov
2020-04-12 16:09:01 -05:00
committed by Umputun
parent 40eb39f8f0
commit dba77d403d
219 changed files with 43245 additions and 37379 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ package cmd
import (
"path"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
log "github.com/go-pkgz/lgr"
"github.com/pkg/errors"
+2 -2
View File
@@ -14,7 +14,7 @@ import (
"syscall"
"time"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
"github.com/dgrijalva/jwt-go"
"github.com/go-pkgz/jrpc"
log "github.com/go-pkgz/lgr"
@@ -860,7 +860,7 @@ func (s *ServerCommand) makeAuthenticator(ds *service.DataStore, avas avatar.Sto
TokenDuration: s.Auth.TTL.JWT,
CookieDuration: s.Auth.TTL.Cookie,
SecureCookies: strings.HasPrefix(s.RemarkURL, "https://"),
SecretReader: token.SecretFunc(func() (string, error) { // get secret per site
SecretReader: token.SecretFunc(func(aud string) (string, error) { // get secret per site
return admns.Key()
}),
ClaimsUpd: token.ClaimsUpdFunc(func(c token.Claims) token.Claims { // set attributes, on new token or refresh
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"testing"
"time"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"testing"
"time"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"testing"
"time"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
log "github.com/go-pkgz/lgr"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"testing"
"time"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+2 -2
View File
@@ -17,7 +17,7 @@ import (
"testing"
"time"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
"github.com/go-pkgz/auth"
"github.com/go-pkgz/auth/avatar"
"github.com/go-pkgz/auth/token"
@@ -365,7 +365,7 @@ func startupT(t *testing.T) (ts *httptest.Server, srv *Rest, teardown func()) {
DataService: dataStore,
Authenticator: auth.NewService(auth.Opts{
AdminPasswd: "password",
SecretReader: token.SecretFunc(func() (string, error) { return "secret", nil }),
SecretReader: token.SecretFunc(func(aud string) (string, error) { return "secret", nil }),
AvatarStore: avatar.NewLocalFS(tmp + "/ava-remark42"),
}),
Cache: memCache,
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strings"
"time"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
log "github.com/go-pkgz/lgr"
"github.com/hashicorp/go-multierror"
"github.com/pkg/errors"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"testing"
"time"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"path"
"time"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
log "github.com/go-pkgz/lgr"
"github.com/pkg/errors"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"testing"
"time"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+1 -1
View File
@@ -15,7 +15,7 @@ import (
"testing"
"time"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
"github.com/go-pkgz/lgr"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"