Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<img src="https://www.codefactor.io/repository/github/berty/go-orbit-db/badge"
alt="Code Factor">
</a>
<a href="https://goreportcard.com/report/berty.tech/go-orbit-db">
<img src="https://goreportcard.com/badge/berty.tech/go-orbit-db"
<a href="https://goreportcard.com/report/github.com/stateless-minds/go-orbit-db">
<img src="https://goreportcard.com/badge/github.com/stateless-minds/go-orbit-db"
alt="Go Report Card">
</a>
<a href="https://github.com/berty/go-orbit-db/releases">
Expand All @@ -25,8 +25,8 @@
<img src="https://codecov.io/gh/berty/go-orbit-db/branch/master/graph/badge.svg"
alt="Coverage" />
</a>
<a href="https://godoc.org/berty.tech/go-orbit-db">
<img src="https://godoc.org/berty.tech/go-orbit-db?status.svg"
<a href="https://godoc.org/github.com/stateless-minds/go-orbit-db">
<img src="https://godoc.org/github.com/stateless-minds/go-orbit-db?status.svg"
alt="GoDoc">
</a>
</p>
Expand All @@ -51,15 +51,15 @@ See [GoDoc](https://godoc.org/github.com/berty/go-orbit-db).
Constraints:

* `go-orbit-db` currently only works with **go1.16** and later
* You need to use the canonical import: `berty.tech/go-orbit-db` instead of `github.com/berty/go-orbit-db`
* You need to use the canonical import: `github.com/stateless-minds/go-orbit-db` instead of `github.com/berty/go-orbit-db`
* If you have `410 gone` errors, make sure that you use a reliable `$GOPROXY` or disable it completely

Example:

```console
$ go version
go version go1.17.3 darwin/amd64
$ go get berty.tech/go-orbit-db
$ go get github.com/stateless-minds/go-orbit-db
[...]
$
```
Expand Down
2 changes: 1 addition & 1 deletion accesscontroller/doc.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// accesscontroller is a package handling permissions for OrbitDB stores
package accesscontroller // import "berty.tech/go-orbit-db/accesscontroller"
package accesscontroller // import "github.com/stateless-minds/go-orbit-db/accesscontroller"
7 changes: 5 additions & 2 deletions accesscontroller/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package accesscontroller
import (
"context"

"berty.tech/go-ipfs-log/accesscontroller"
"berty.tech/go-ipfs-log/iface"
"github.com/stateless-minds/go-ipfs-log/accesscontroller"
"github.com/stateless-minds/go-ipfs-log/iface"
"github.com/stateless-minds/go-orbit-db/address"

"go.uber.org/zap"
)
Expand All @@ -19,6 +20,8 @@ type Interface interface {
// Type Returns the type of the store as a string
Type() string

Address() address.Address

// GetAuthorizedByRole Returns the list of keys authorized for a given role
GetAuthorizedByRole(role string) ([]string, error)

Expand Down
14 changes: 7 additions & 7 deletions accesscontroller/ipfs/accesscontroller_ipfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import (
"fmt"
"sync"

logac "berty.tech/go-ipfs-log/accesscontroller"
"berty.tech/go-ipfs-log/identityprovider"
"berty.tech/go-ipfs-log/io"
"berty.tech/go-orbit-db/accesscontroller"
"berty.tech/go-orbit-db/address"
"berty.tech/go-orbit-db/iface"
cid "github.com/ipfs/go-cid"
cbornode "github.com/ipfs/go-ipld-cbor"
coreiface "github.com/ipfs/kubo/core/coreiface"
"github.com/polydawn/refmt/obj/atlas"
logac "github.com/stateless-minds/go-ipfs-log/accesscontroller"
"github.com/stateless-minds/go-ipfs-log/identityprovider"
"github.com/stateless-minds/go-ipfs-log/io"
"github.com/stateless-minds/go-orbit-db/accesscontroller"
"github.com/stateless-minds/go-orbit-db/address"
"github.com/stateless-minds/go-orbit-db/iface"
"go.uber.org/zap"
)

Expand Down Expand Up @@ -137,7 +137,7 @@ func (i *ipfsAccessController) Close() error {
}

// NewIPFSAccessController Returns an access controller for IPFS
func NewIPFSAccessController(_ context.Context, db iface.BaseOrbitDB, params accesscontroller.ManifestParams, options ...accesscontroller.Option) (accesscontroller.Interface, error) {
func NewIPFSAccessController(_ context.Context, db iface.OrbitDB, params accesscontroller.ManifestParams, options ...accesscontroller.Option) (accesscontroller.Interface, error) {
if params == nil {
return &ipfsAccessController{}, fmt.Errorf("an options object must be passed")
}
Expand Down
2 changes: 1 addition & 1 deletion accesscontroller/ipfs/doc.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// ipfs is an access controller
package ipfs // import "berty.tech/go-orbit-db/accesscontroller/ipfs"
package ipfs // import "github.com/stateless-minds/go-orbit-db/accesscontroller/ipfs"
2 changes: 1 addition & 1 deletion accesscontroller/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"strings"
"sync"

"berty.tech/go-ipfs-log/io"
cid "github.com/ipfs/go-cid"
cbornode "github.com/ipfs/go-ipld-cbor"
coreiface "github.com/ipfs/kubo/core/coreiface"
"github.com/polydawn/refmt/obj/atlas"
"github.com/stateless-minds/go-ipfs-log/io"
"go.uber.org/zap"
)

Expand Down
Loading