diff --git a/.gitignore b/.gitignore index 723963f2f..2ed209014 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ *.so *.dylib *.db +*.wasm # Test binary, build with `go test -c` *.test diff --git a/satellite/console/access.go b/satellite/console/consolewasm/access.go similarity index 98% rename from satellite/console/access.go rename to satellite/console/consolewasm/access.go index 5b6e54eb6..5f545190c 100644 --- a/satellite/console/access.go +++ b/satellite/console/consolewasm/access.go @@ -1,7 +1,7 @@ // Copyright (C) 2020 Storj Labs, Inc. // See LICENSE for copying information. -package console +package consolewasm import ( "crypto/sha256" diff --git a/satellite/console/access_test.go b/satellite/console/consolewasm/access_test.go similarity index 94% rename from satellite/console/access_test.go rename to satellite/console/consolewasm/access_test.go index 7c910ced6..e145160e0 100644 --- a/satellite/console/access_test.go +++ b/satellite/console/consolewasm/access_test.go @@ -1,7 +1,7 @@ // Copyright (C) 2020 Storj Labs, Inc. // See LICENSE for copying information. -package console_test +package consolewasm_test import ( "testing" @@ -10,7 +10,7 @@ import ( "storj.io/common/testcontext" "storj.io/storj/private/testplanet" - "storj.io/storj/satellite/console" + console "storj.io/storj/satellite/console/consolewasm" ) // TestGenerateAccessGrant confirms that the access grant produced by the wasm access code diff --git a/satellite/console/permission.go b/satellite/console/consolewasm/permission.go similarity index 99% rename from satellite/console/permission.go rename to satellite/console/consolewasm/permission.go index 52beb45ab..bb07af71e 100644 --- a/satellite/console/permission.go +++ b/satellite/console/consolewasm/permission.go @@ -1,7 +1,7 @@ // Copyright (C) 2020 Storj Labs, Inc. // See LICENSE for copying information. -package console +package consolewasm import ( "time" diff --git a/satellite/console/permission_test.go b/satellite/console/consolewasm/permission_test.go similarity index 98% rename from satellite/console/permission_test.go rename to satellite/console/consolewasm/permission_test.go index 35eb3f756..b522a8182 100644 --- a/satellite/console/permission_test.go +++ b/satellite/console/consolewasm/permission_test.go @@ -1,7 +1,7 @@ // Copyright (C) 2020 Storj Labs, Inc. // See LICENSE for copying information. -package console_test +package consolewasm_test import ( "testing" @@ -13,7 +13,7 @@ import ( "storj.io/common/rpc/rpcstatus" "storj.io/common/testcontext" "storj.io/storj/private/testplanet" - "storj.io/storj/satellite/console" + console "storj.io/storj/satellite/console/consolewasm" "storj.io/uplink" ) diff --git a/satellite/console/wasm/main.go b/satellite/console/wasm/main.go index 34914742a..14dad2577 100644 --- a/satellite/console/wasm/main.go +++ b/satellite/console/wasm/main.go @@ -10,7 +10,7 @@ import ( "github.com/zeebo/errs" - "storj.io/storj/satellite/console" + console "storj.io/storj/satellite/console/consolewasm" ) func main() {