Commit 530db81c authored by tavit ohanian's avatar tavit ohanian

refactor after forking multiformats

parent a91c00a8
Pipeline #926 passed with stages
in 2 minutes and 40 seconds
...@@ -11,8 +11,8 @@ import ( ...@@ -11,8 +11,8 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"gitlab.dms3.io/dms3/public/go-datastore" "gitlab.dms3.io/dms3/go-datastore"
"gitlab.dms3.io/dms3/public/go-datastore/query" "gitlab.dms3.io/dms3/go-datastore/query"
) )
func UpgradeV0toV1(path string, prefixLen int) error { func UpgradeV0toV1(path string, prefixLen int) error {
......
...@@ -11,8 +11,8 @@ import ( ...@@ -11,8 +11,8 @@ import (
"testing" "testing"
"time" "time"
"gitlab.dms3.io/dms3/public/go-datastore" "gitlab.dms3.io/dms3/go-datastore"
flatfs "gitlab.dms3.io/dms3/public/go-ds-flatfs" flatfs "gitlab.dms3.io/dms3/go-ds-flatfs"
) )
func TestMove(t *testing.T) { func TestMove(t *testing.T) {
......
...@@ -18,10 +18,10 @@ import ( ...@@ -18,10 +18,10 @@ import (
"time" "time"
"github.com/jbenet/goprocess" "github.com/jbenet/goprocess"
"gitlab.dms3.io/dms3/public/go-datastore" "gitlab.dms3.io/dms3/go-datastore"
"gitlab.dms3.io/dms3/public/go-datastore/query" "gitlab.dms3.io/dms3/go-datastore/query"
logging "gitlab.dms3.io/dms3/public/go-log" logging "gitlab.dms3.io/dms3/go-log"
) )
var log = logging.Logger("flatfs") var log = logging.Logger("flatfs")
......
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"os" "os"
"strconv" "strconv"
flatfs "gitlab.dms3.io/dms3/public/go-ds-flatfs" flatfs "gitlab.dms3.io/dms3/go-ds-flatfs"
) )
// To convert from the old format to a new format with a different // To convert from the old format to a new format with a different
......
...@@ -15,11 +15,11 @@ import ( ...@@ -15,11 +15,11 @@ import (
"testing" "testing"
"time" "time"
"gitlab.dms3.io/dms3/public/go-datastore" "gitlab.dms3.io/dms3/go-datastore"
"gitlab.dms3.io/dms3/public/go-datastore/mount" "gitlab.dms3.io/dms3/go-datastore/mount"
"gitlab.dms3.io/dms3/public/go-datastore/query" "gitlab.dms3.io/dms3/go-datastore/query"
dstest "gitlab.dms3.io/dms3/public/go-datastore/test" dstest "gitlab.dms3.io/dms3/go-datastore/test"
flatfs "gitlab.dms3.io/dms3/public/go-ds-flatfs" flatfs "gitlab.dms3.io/dms3/go-ds-flatfs"
) )
func checkTemp(t *testing.T, dir string) { func checkTemp(t *testing.T, dir string) {
......
...@@ -29,11 +29,11 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ ...@@ -29,11 +29,11 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
gitlab.dms3.io/dms3/public/go-datastore v0.0.1 h1:RjZLvnqlvWDpb5ZwvkVEWGONF7zKNPe4Q0DND5oxZec= gitlab.dms3.io/dms3/go-datastore v0.0.2 h1:cLsmDEiDz+onFnbPhyLYuPECw+tJEnvpil958ps0WHw=
gitlab.dms3.io/dms3/public/go-datastore v0.0.1/go.mod h1:qSI0hpmVMo6HCp0uveHTKyQ87j1aVe2hqiTeiPCehYA= gitlab.dms3.io/dms3/go-datastore v0.0.2/go.mod h1:IOybd0feVxRiGt5idG/FzjdeK6itS0uaMgD42CmANFo=
gitlab.dms3.io/dms3/public/go-dms3-delay v0.0.1/go.mod h1:Mg+buHOoh8UruN+MMqeqBUPBKMRTmpsXAyxv5ZSt+X4= gitlab.dms3.io/dms3/go-dms3-delay v0.0.2/go.mod h1:WPBu+WALc2GAYE3KfI5QM+r3dX9gv7wHJVfTFlYBwDg=
gitlab.dms3.io/dms3/public/go-log v0.0.1 h1:jqz2g8pVdPW+Sy8CCo4rYfGEjktGhCBfgIb3oeY6yx8= gitlab.dms3.io/dms3/go-log v0.0.2 h1:vuNG5qmx6P9iK+A1+k4AmC6Q+ORm2ekWaQVbMmeL2wc=
gitlab.dms3.io/dms3/public/go-log v0.0.1/go.mod h1:OsyF7lVYe47r03v1ZCbrmz0byeGUWB0Y219jN1DJx3s= gitlab.dms3.io/dms3/go-log v0.0.2/go.mod h1:iLuW2zqJJaP1WdbME4P6AS9AIMovwGDAn3zV/riR5iE=
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw=
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
......
package flatfs package flatfs
import ( import (
"gitlab.dms3.io/dms3/public/go-datastore" "gitlab.dms3.io/dms3/go-datastore"
) )
// keyIsValid returns true if the key is valid for flatfs. // keyIsValid returns true if the key is valid for flatfs.
......
...@@ -3,7 +3,7 @@ package flatfs ...@@ -3,7 +3,7 @@ package flatfs
import ( import (
"testing" "testing"
"gitlab.dms3.io/dms3/public/go-datastore" "gitlab.dms3.io/dms3/go-datastore"
) )
var ( var (
......
package flatfs package flatfs
var README_DMS3_DEF_SHARD = `This is a repository of DMS3LD objects. Each DMS3LD object is in a single file, var README_DMS3_DEF_SHARD = `This is a repository of LD objects. Each LD object is in a single file,
named <base32 encoding of cid>.data. Where <base32 encoding of cid> is the named <base32 encoding of cid>.data. Where <base32 encoding of cid> is the
"base32" encoding of the CID (as specified in "base32" encoding of the CID (as specified in
https://github.com/multiformats/multibase) without the 'B' prefix. https://github.com/multiformats/multibase) without the 'B' prefix.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment