Browse Source

macaroons: stdlib context

master
Lars Lehtonen 5 years ago
parent
commit
a22adc4a8e
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2
  1. 3
      macaroons/auth.go
  2. 3
      macaroons/constraints.go
  3. 3
      macaroons/service.go
  4. 3
      macaroons/store.go

3
macaroons/auth.go

@ -1,10 +1,9 @@
package macaroons
import (
"context"
"encoding/hex"
"golang.org/x/net/context"
macaroon "gopkg.in/macaroon.v2"
)

3
macaroons/constraints.go

@ -1,6 +1,7 @@
package macaroons
import (
"context"
"fmt"
"net"
"time"
@ -9,8 +10,6 @@ import (
"gopkg.in/macaroon-bakery.v2/bakery/checkers"
macaroon "gopkg.in/macaroon.v2"
"golang.org/x/net/context"
)
// Constraint type adds a layer of indirection over macaroon caveats.

3
macaroons/service.go

@ -1,6 +1,7 @@
package macaroons
import (
"context"
"encoding/hex"
"fmt"
"os"
@ -13,8 +14,6 @@ import (
"gopkg.in/macaroon-bakery.v2/bakery"
"gopkg.in/macaroon-bakery.v2/bakery/checkers"
macaroon "gopkg.in/macaroon.v2"
"golang.org/x/net/context"
)
var (

3
macaroons/store.go

@ -1,12 +1,11 @@
package macaroons
import (
"context"
"crypto/rand"
"fmt"
"io"
"golang.org/x/net/context"
"github.com/coreos/bbolt"
"github.com/btcsuite/btcwallet/snacl"

Loading…
Cancel
Save