private: rename internal to private (#3573)
This commit is contained in:
parent
f1d0d0d68f
commit
ee6c1cac8a
@ -57,7 +57,7 @@ pipeline {
|
||||
stage('Tests') {
|
||||
environment {
|
||||
STORJ_POSTGRES_TEST = 'postgres://postgres@localhost/teststorj?sslmode=disable'
|
||||
COVERFLAGS = "${ env.BRANCH_NAME != 'master' ? '' : '-coverprofile=.build/coverprofile -coverpkg=-coverpkg=storj.io/storj/internal/...,storj.io/storj/lib/...,storj.io/storj/pkg/...,storj.io/storj/satellite/...,storj.io/storj/storage/...,storj.io/storj/storagenode/...,storj.io/storj/uplink/...,storj.io/storj/versioncontrol/...'}"
|
||||
COVERFLAGS = "${ env.BRANCH_NAME != 'master' ? '' : '-coverprofile=.build/coverprofile -coverpkg=-coverpkg=storj.io/storj/private/...,storj.io/storj/lib/...,storj.io/storj/pkg/...,storj.io/storj/satellite/...,storj.io/storj/storage/...,storj.io/storj/storagenode/...,storj.io/storj/uplink/...,storj.io/storj/versioncontrol/...'}"
|
||||
}
|
||||
steps {
|
||||
sh 'psql -U postgres -c \'create database teststorj;\''
|
||||
|
@ -15,11 +15,11 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/certificate/certificateclient"
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testidentity"
|
||||
"storj.io/storj/pkg/peertls/tlsopts"
|
||||
"storj.io/storj/pkg/rpc"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testidentity"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -10,9 +10,9 @@ import (
|
||||
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/internal/dbutil"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/peertls/extensions"
|
||||
"storj.io/storj/private/dbutil"
|
||||
"storj.io/storj/storage"
|
||||
"storj.io/storj/storage/boltdb"
|
||||
"storj.io/storj/storage/redis"
|
||||
|
@ -15,11 +15,11 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testidentity"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/pb"
|
||||
"storj.io/storj/pkg/rpc/rpcpeer"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testidentity"
|
||||
"storj.io/storj/storage"
|
||||
)
|
||||
|
||||
|
@ -12,8 +12,8 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/zap/zaptest"
|
||||
|
||||
"storj.io/storj/internal/errs2"
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/private/errs2"
|
||||
"storj.io/storj/private/testcontext"
|
||||
)
|
||||
|
||||
func TestEndpoint_Run_httpSuccess(t *testing.T) {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"go.uber.org/zap/zaptest"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/private/testcontext"
|
||||
)
|
||||
|
||||
func TestService_GetOrCreate(t *testing.T) {
|
||||
|
@ -9,11 +9,11 @@ import (
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/certificate/authorization"
|
||||
"storj.io/storj/internal/errs2"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/pb"
|
||||
"storj.io/storj/pkg/rpc/rpcpeer"
|
||||
"storj.io/storj/pkg/rpc/rpcstatus"
|
||||
"storj.io/storj/private/errs2"
|
||||
)
|
||||
|
||||
// Endpoint implements pb.CertificatesServer.
|
||||
|
@ -13,12 +13,12 @@ import (
|
||||
"gopkg.in/spacemonkeygo/monkit.v2"
|
||||
|
||||
"storj.io/storj/certificate/authorization"
|
||||
"storj.io/storj/internal/errs2"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/pb"
|
||||
"storj.io/storj/pkg/peertls/tlsopts"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/pkg/server"
|
||||
"storj.io/storj/private/errs2"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -17,8 +17,6 @@ import (
|
||||
"storj.io/storj/certificate"
|
||||
"storj.io/storj/certificate/authorization"
|
||||
"storj.io/storj/certificate/certificateclient"
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testidentity"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/pb"
|
||||
"storj.io/storj/pkg/peertls/tlsopts"
|
||||
@ -27,6 +25,8 @@ import (
|
||||
"storj.io/storj/pkg/rpc/rpcpeer"
|
||||
"storj.io/storj/pkg/server"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testidentity"
|
||||
)
|
||||
|
||||
// TODO: test sad path
|
||||
|
@ -10,10 +10,10 @@ import (
|
||||
|
||||
"storj.io/storj/certificate"
|
||||
"storj.io/storj/certificate/authorization"
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -11,8 +11,8 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"storj.io/storj/certificate/authorization"
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -19,14 +19,14 @@ import (
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/cmd/internal/wizard"
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/internal/version"
|
||||
"storj.io/storj/internal/version/checker"
|
||||
libuplink "storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/miniogw"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/fpath"
|
||||
"storj.io/storj/private/version"
|
||||
"storj.io/storj/private/version/checker"
|
||||
"storj.io/storj/uplink"
|
||||
)
|
||||
|
||||
|
@ -19,13 +19,13 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"golang.org/x/sync/errgroup"
|
||||
|
||||
"storj.io/storj/internal/cui"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/peertls"
|
||||
"storj.io/storj/pkg/pkcrypto"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/cui"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -15,9 +15,6 @@ import (
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/certificate/certificateclient"
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/internal/version"
|
||||
"storj.io/storj/internal/version/checker"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/peertls/extensions"
|
||||
@ -26,6 +23,9 @@ import (
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/pkg/rpc"
|
||||
"storj.io/storj/private/fpath"
|
||||
"storj.io/storj/private/version"
|
||||
"storj.io/storj/private/version/checker"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -5,7 +5,7 @@
|
||||
//
|
||||
// To use the package you would define:
|
||||
//
|
||||
// //go:generate go run ../internal/asset/generate/main.go -pkg main -dir ../../web/bootstrap -var embeddedAssets -out console.resource.go
|
||||
// //go:generate go run ../private/asset/generate/main.go -pkg main -dir ../../web/bootstrap -var embeddedAssets -out console.resource.go
|
||||
// var embeddedAssets http.FileSystem
|
||||
//
|
||||
// This will generate a new "console.resource.go" which contains the content of "../../web/bootstrap".
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/cmd/internal/asset"
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/private/testcontext"
|
||||
)
|
||||
|
||||
func TestAssets(t *testing.T) {
|
||||
|
@ -33,7 +33,7 @@ func main() {
|
||||
fmt.Fprintf(&code, "package %s\n\n", *packageName)
|
||||
|
||||
fmt.Fprintf(&code, "import (\n")
|
||||
fmt.Fprintf(&code, "\t\t\"storj.io/cmd/internal/asset\"\n")
|
||||
fmt.Fprintf(&code, "\t\t\"storj.io/cmd/private/asset\"\n")
|
||||
fmt.Fprintf(&code, ")\n\n")
|
||||
|
||||
fmt.Fprintf(&code, "func init() {\n")
|
||||
|
@ -13,12 +13,12 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/linksharing"
|
||||
"storj.io/storj/linksharing/httpserver"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
// LinkSharing defines link sharing configuration
|
||||
|
@ -16,8 +16,8 @@ import (
|
||||
|
||||
"github.com/loov/hrtime"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/internal/s3client"
|
||||
"storj.io/storj/private/memory"
|
||||
"storj.io/storj/private/s3client"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -8,9 +8,9 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/internal/version"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/version"
|
||||
"storj.io/storj/satellite"
|
||||
"storj.io/storj/satellite/accounting/live"
|
||||
"storj.io/storj/satellite/metainfo"
|
||||
|
@ -17,11 +17,11 @@ import (
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/cmd/satellite/reports"
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/internal/version"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/fpath"
|
||||
"storj.io/storj/private/version"
|
||||
"storj.io/storj/satellite"
|
||||
"storj.io/storj/satellite/accounting/live"
|
||||
"storj.io/storj/satellite/metainfo"
|
||||
|
@ -8,9 +8,9 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/internal/version"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/version"
|
||||
"storj.io/storj/satellite"
|
||||
"storj.io/storj/satellite/metainfo"
|
||||
"storj.io/storj/satellite/satellitedb"
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/private/memory"
|
||||
"storj.io/storj/satellite/attribution"
|
||||
"storj.io/storj/satellite/satellitedb"
|
||||
)
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
"github.com/zeebo/admission/admproto"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/private/memory"
|
||||
)
|
||||
|
||||
// PacketFilter inspects a packet header to determine if it should be passed
|
||||
|
@ -14,9 +14,9 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/cmd/statreceiver/luacfg"
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
// Config is the set of configuration values we care about
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
"github.com/zeebo/admission/admproto"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/private/memory"
|
||||
)
|
||||
|
||||
// Parser is a PacketDest that sends data to a MetricDest
|
||||
|
@ -26,15 +26,15 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/internal/errs2"
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/internal/sync2"
|
||||
"storj.io/storj/internal/version"
|
||||
"storj.io/storj/internal/version/checker"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/errs2"
|
||||
"storj.io/storj/private/fpath"
|
||||
"storj.io/storj/private/sync2"
|
||||
"storj.io/storj/private/version"
|
||||
"storj.io/storj/private/version/checker"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -20,12 +20,12 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/zap/zaptest"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testidentity"
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/internal/version"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testidentity"
|
||||
"storj.io/storj/private/testrand"
|
||||
"storj.io/storj/private/version"
|
||||
"storj.io/storj/versioncontrol"
|
||||
)
|
||||
|
||||
|
@ -18,11 +18,11 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/internal/version"
|
||||
"storj.io/storj/pkg/pb"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/rpc"
|
||||
"storj.io/storj/private/memory"
|
||||
"storj.io/storj/private/version"
|
||||
)
|
||||
|
||||
const contactWindow = time.Hour * 2
|
||||
|
@ -17,11 +17,11 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/pkg/pb"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/rpc"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/memory"
|
||||
)
|
||||
|
||||
type gracefulExitClient struct {
|
||||
|
@ -15,13 +15,13 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/internal/version"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/fpath"
|
||||
"storj.io/storj/private/memory"
|
||||
"storj.io/storj/private/version"
|
||||
"storj.io/storj/storagenode"
|
||||
"storj.io/storj/storagenode/storagenodedb"
|
||||
)
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
// Flags contains different flags for commands
|
||||
|
@ -22,12 +22,12 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"golang.org/x/sync/errgroup"
|
||||
|
||||
"storj.io/storj/internal/dbutil/pgutil"
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/internal/processgroup"
|
||||
"storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/dbutil/pgutil"
|
||||
"storj.io/storj/private/fpath"
|
||||
"storj.io/storj/private/processgroup"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -19,8 +19,8 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"golang.org/x/sync/errgroup"
|
||||
|
||||
"storj.io/storj/internal/processgroup"
|
||||
"storj.io/storj/internal/sync2"
|
||||
"storj.io/storj/private/processgroup"
|
||||
"storj.io/storj/private/sync2"
|
||||
)
|
||||
|
||||
// Processes contains list of processes
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -4,8 +4,8 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
func getConfDir() string {
|
||||
|
@ -17,9 +17,9 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
libuplink "storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -11,9 +11,9 @@ import (
|
||||
"sync"
|
||||
"testing"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/internal/s3client"
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/private/memory"
|
||||
"storj.io/storj/private/s3client"
|
||||
"storj.io/storj/private/testrand"
|
||||
)
|
||||
|
||||
var benchmarkCases = []struct {
|
||||
|
@ -10,10 +10,10 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
libuplink "storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -9,11 +9,11 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/fpath"
|
||||
"storj.io/storj/private/memory"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -12,9 +12,9 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testplanet"
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testplanet"
|
||||
"storj.io/storj/private/testrand"
|
||||
)
|
||||
|
||||
func min(x, y int) int {
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -8,9 +8,9 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -15,13 +15,13 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/internal/version"
|
||||
"storj.io/storj/internal/version/checker"
|
||||
libuplink "storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/fpath"
|
||||
"storj.io/storj/private/version"
|
||||
"storj.io/storj/private/version/checker"
|
||||
"storj.io/storj/uplink"
|
||||
)
|
||||
|
||||
|
@ -14,10 +14,10 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/cmd/internal/wizard"
|
||||
"storj.io/storj/internal/fpath"
|
||||
libuplink "storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -13,11 +13,11 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
libuplink "storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/macaroon"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/private/fpath"
|
||||
"storj.io/storj/uplink"
|
||||
)
|
||||
|
||||
|
@ -11,9 +11,9 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/process"
|
||||
"storj.io/storj/private/fpath"
|
||||
"storj.io/storj/versioncontrol"
|
||||
)
|
||||
|
||||
|
@ -6,7 +6,7 @@ package mobile
|
||||
import (
|
||||
"context"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
type scope struct {
|
||||
|
@ -6,9 +6,9 @@ package mobile
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
libuplink "storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/memory"
|
||||
)
|
||||
|
||||
// Config represents configuration options for an Uplink
|
||||
|
@ -13,12 +13,12 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/zap/zaptest"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testplanet"
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/memory"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testplanet"
|
||||
"storj.io/storj/private/testrand"
|
||||
)
|
||||
|
||||
type testConfig struct {
|
||||
|
@ -8,12 +8,12 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testplanet"
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/memory"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testplanet"
|
||||
"storj.io/storj/private/testrand"
|
||||
)
|
||||
|
||||
func TestAllowedPathPrefixListing(t *testing.T) {
|
||||
|
@ -10,9 +10,9 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/zap/zaptest"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testplanet"
|
||||
"storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testplanet"
|
||||
)
|
||||
|
||||
func TestBucketExamples(t *testing.T) {
|
||||
|
@ -14,10 +14,10 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/zap/zaptest"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testplanet"
|
||||
"storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testplanet"
|
||||
)
|
||||
|
||||
type expectedResult struct {
|
||||
|
@ -9,10 +9,10 @@ import (
|
||||
"github.com/skyrings/skyring-common/tools/uuid"
|
||||
"github.com/vivint/infectious"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/pkg/encryption"
|
||||
"storj.io/storj/pkg/rpc"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/memory"
|
||||
"storj.io/storj/uplink/ecclient"
|
||||
"storj.io/storj/uplink/eestream"
|
||||
"storj.io/storj/uplink/metainfo"
|
||||
|
@ -10,10 +10,10 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/zap/zaptest"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testplanet"
|
||||
"storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testplanet"
|
||||
)
|
||||
|
||||
func TestProjectListBuckets(t *testing.T) {
|
||||
|
@ -9,10 +9,10 @@ import (
|
||||
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/peertls/tlsopts"
|
||||
"storj.io/storj/pkg/rpc"
|
||||
"storj.io/storj/private/memory"
|
||||
"storj.io/storj/uplink/metainfo"
|
||||
"storj.io/storj/uplink/metainfo/kvmetainfo"
|
||||
)
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/private/testcontext"
|
||||
)
|
||||
|
||||
// TestUplinkConfigDefaults tests that the uplink configuration gets the correct defaults applied
|
||||
|
@ -12,9 +12,9 @@ import (
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"storj.io/storj/internal/errs2"
|
||||
"storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/errs2"
|
||||
)
|
||||
|
||||
// Object is a scoped uplink.Object
|
||||
|
@ -6,7 +6,7 @@ package main
|
||||
import (
|
||||
"context"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
// scope implements nesting context for foreign api.
|
||||
|
@ -14,8 +14,8 @@ import (
|
||||
"go.uber.org/zap/zapcore"
|
||||
"go.uber.org/zap/zaptest"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testplanet"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testplanet"
|
||||
)
|
||||
|
||||
func RunPlanet(t *testing.T, run func(ctx *testcontext.Context, planet *testplanet.Planet)) {
|
||||
|
@ -9,9 +9,10 @@ import "C"
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/lib/uplink"
|
||||
"time"
|
||||
|
||||
"storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/private/memory"
|
||||
)
|
||||
|
||||
var universe = newHandles()
|
||||
|
@ -14,10 +14,10 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/zap/zaptest"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testplanet"
|
||||
"storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testplanet"
|
||||
)
|
||||
|
||||
func TestNewHandler(t *testing.T) {
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
"go.uber.org/zap"
|
||||
"golang.org/x/sync/errgroup"
|
||||
|
||||
"storj.io/storj/internal/errs2"
|
||||
"storj.io/storj/private/errs2"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -21,8 +21,8 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/zap/zaptest"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/pkg/pkcrypto"
|
||||
"storj.io/storj/private/testcontext"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -14,10 +14,10 @@ import (
|
||||
pb "google.golang.org/grpc/examples/helloworld/helloworld"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
"storj.io/storj/internal/errs2"
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/pkg/auth"
|
||||
"storj.io/storj/pkg/auth/grpcauth"
|
||||
"storj.io/storj/private/errs2"
|
||||
"storj.io/storj/private/testcontext"
|
||||
)
|
||||
|
||||
func TestAPIKey(t *testing.T) {
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/memory"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -10,10 +10,10 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/pkg/bloomfilter"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/memory"
|
||||
"storj.io/storj/private/testrand"
|
||||
)
|
||||
|
||||
func TestNoFalsePositive(t *testing.T) {
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
"github.com/spf13/pflag"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/internal/version"
|
||||
"storj.io/storj/private/version"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -12,8 +12,8 @@ import (
|
||||
"github.com/spf13/pflag"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/memory"
|
||||
)
|
||||
|
||||
func assertEqual(actual, expected interface{}) {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/private/testrand"
|
||||
)
|
||||
|
||||
func TestAesGcm(t *testing.T) {
|
||||
|
@ -12,11 +12,11 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/pkg/encryption"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/memory"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testrand"
|
||||
"storj.io/storj/uplink/eestream"
|
||||
)
|
||||
|
||||
|
@ -11,8 +11,8 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"golang.org/x/crypto/argon2"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/memory"
|
||||
)
|
||||
|
||||
func sha256hmac(key, data []byte) ([]byte, error) {
|
||||
|
@ -12,9 +12,9 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/pkg/paths"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testrand"
|
||||
)
|
||||
|
||||
func newStore(key storj.Key) *Store {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/private/testrand"
|
||||
)
|
||||
|
||||
func TestSecretbox(t *testing.T) {
|
||||
|
@ -11,8 +11,8 @@ import (
|
||||
|
||||
monkit "gopkg.in/spacemonkeygo/monkit.v2"
|
||||
|
||||
"storj.io/storj/internal/readcloser"
|
||||
"storj.io/storj/pkg/ranger"
|
||||
"storj.io/storj/private/readcloser"
|
||||
)
|
||||
|
||||
var mon = monkit.Package()
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/private/testrand"
|
||||
)
|
||||
|
||||
func TestCalcEncompassingBlocks(t *testing.T) {
|
||||
|
@ -13,13 +13,13 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testidentity"
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/peertls/extensions"
|
||||
"storj.io/storj/pkg/peertls/tlsopts"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testidentity"
|
||||
"storj.io/storj/private/testrand"
|
||||
)
|
||||
|
||||
func TestNewCA(t *testing.T) {
|
||||
|
@ -18,16 +18,16 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testidentity"
|
||||
"storj.io/storj/internal/testpeertls"
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/peertls"
|
||||
"storj.io/storj/pkg/peertls/extensions"
|
||||
"storj.io/storj/pkg/peertls/tlsopts"
|
||||
"storj.io/storj/pkg/pkcrypto"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testidentity"
|
||||
"storj.io/storj/private/testpeertls"
|
||||
"storj.io/storj/private/testrand"
|
||||
)
|
||||
|
||||
func TestPeerIdentityFromCertChain(t *testing.T) {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/internal/fpath"
|
||||
"storj.io/storj/private/fpath"
|
||||
)
|
||||
|
||||
// TLSFilesStatus is the status of keys
|
||||
|
@ -15,9 +15,9 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
monkit "gopkg.in/spacemonkeygo/monkit.v2"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/memory"
|
||||
"storj.io/storj/uplink/storage/streams"
|
||||
"storj.io/storj/uplink/stream"
|
||||
)
|
||||
|
@ -19,13 +19,13 @@ import (
|
||||
"github.com/vivint/infectious"
|
||||
"go.uber.org/zap/zaptest"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testplanet"
|
||||
libuplink "storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/macaroon"
|
||||
"storj.io/storj/pkg/pb"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/memory"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testplanet"
|
||||
"storj.io/storj/satellite/console"
|
||||
"storj.io/storj/uplink/ecclient"
|
||||
"storj.io/storj/uplink/eestream"
|
||||
|
@ -17,14 +17,14 @@ import (
|
||||
"go.uber.org/zap"
|
||||
"go.uber.org/zap/zaptest"
|
||||
|
||||
"storj.io/storj/internal/s3client"
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testidentity"
|
||||
"storj.io/storj/internal/testplanet"
|
||||
libuplink "storj.io/storj/lib/uplink"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/miniogw"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/s3client"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testidentity"
|
||||
"storj.io/storj/private/testplanet"
|
||||
"storj.io/storj/satellite/console"
|
||||
"storj.io/storj/uplink"
|
||||
)
|
||||
|
@ -13,10 +13,10 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/internal/testpeertls"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/peertls/extensions"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testpeertls"
|
||||
)
|
||||
|
||||
func TestHandlers_Register(t *testing.T) {
|
||||
|
@ -12,13 +12,13 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/internal/testpeertls"
|
||||
"storj.io/storj/internal/testrevocation"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/peertls"
|
||||
"storj.io/storj/pkg/peertls/extensions"
|
||||
"storj.io/storj/pkg/peertls/tlsopts"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testpeertls"
|
||||
"storj.io/storj/private/testrevocation"
|
||||
"storj.io/storj/storage"
|
||||
)
|
||||
|
||||
|
@ -16,12 +16,12 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/internal/testpeertls"
|
||||
"storj.io/storj/internal/testrand"
|
||||
"storj.io/storj/pkg/peertls"
|
||||
"storj.io/storj/pkg/peertls/extensions"
|
||||
"storj.io/storj/pkg/pkcrypto"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testpeertls"
|
||||
"storj.io/storj/private/testrand"
|
||||
)
|
||||
|
||||
func TestNewCert_CA(t *testing.T) {
|
||||
|
@ -11,9 +11,6 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testidentity"
|
||||
"storj.io/storj/internal/testplanet"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/peertls"
|
||||
"storj.io/storj/pkg/peertls/extensions"
|
||||
@ -21,6 +18,9 @@ import (
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/pkg/rpc"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testidentity"
|
||||
"storj.io/storj/private/testplanet"
|
||||
)
|
||||
|
||||
func TestNewOptions(t *testing.T) {
|
||||
|
@ -11,15 +11,15 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testidentity"
|
||||
"storj.io/storj/internal/testpeertls"
|
||||
"storj.io/storj/internal/testrevocation"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/peertls"
|
||||
"storj.io/storj/pkg/peertls/extensions"
|
||||
"storj.io/storj/pkg/peertls/tlsopts"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testidentity"
|
||||
"storj.io/storj/private/testpeertls"
|
||||
"storj.io/storj/private/testrevocation"
|
||||
"storj.io/storj/storage"
|
||||
)
|
||||
|
||||
|
@ -15,7 +15,7 @@ import (
|
||||
"gopkg.in/spacemonkeygo/monkit.v2"
|
||||
"gopkg.in/spacemonkeygo/monkit.v2/present"
|
||||
|
||||
"storj.io/storj/internal/version/checker"
|
||||
"storj.io/storj/private/version/checker"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
// We use a blank import here to get the side effects from the init function in version
|
||||
_ "storj.io/storj/internal/version"
|
||||
_ "storj.io/storj/private/version"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -27,8 +27,8 @@ import (
|
||||
"gopkg.in/spacemonkeygo/monkit.v2/collect"
|
||||
"gopkg.in/spacemonkeygo/monkit.v2/present"
|
||||
|
||||
"storj.io/storj/internal/version"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/private/version"
|
||||
)
|
||||
|
||||
// DefaultCfgFilename is the default filename used for storing a configuration.
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/private/testcontext"
|
||||
)
|
||||
|
||||
func setenv(key, value string) func() {
|
||||
|
@ -15,10 +15,10 @@ import (
|
||||
monkit "gopkg.in/spacemonkeygo/monkit.v2"
|
||||
"gopkg.in/spacemonkeygo/monkit.v2/environment"
|
||||
|
||||
"storj.io/storj/internal/version"
|
||||
"storj.io/storj/pkg/cfgstruct"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/telemetry"
|
||||
"storj.io/storj/private/version"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/private/testcontext"
|
||||
)
|
||||
|
||||
func TestFileRanger(t *testing.T) {
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
|
||||
monkit "gopkg.in/spacemonkeygo/monkit.v2"
|
||||
|
||||
"storj.io/storj/internal/readcloser"
|
||||
"storj.io/storj/private/readcloser"
|
||||
)
|
||||
|
||||
var mon = monkit.Package()
|
||||
|
@ -4,9 +4,9 @@
|
||||
package revocation
|
||||
|
||||
import (
|
||||
"storj.io/storj/internal/dbutil"
|
||||
"storj.io/storj/pkg/peertls/extensions"
|
||||
"storj.io/storj/pkg/peertls/tlsopts"
|
||||
"storj.io/storj/private/dbutil"
|
||||
"storj.io/storj/storage/boltdb"
|
||||
"storj.io/storj/storage/redis"
|
||||
)
|
||||
|
@ -12,13 +12,13 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/storj/internal/testcontext"
|
||||
"storj.io/storj/internal/testpeertls"
|
||||
"storj.io/storj/internal/testrevocation"
|
||||
"storj.io/storj/pkg/identity"
|
||||
"storj.io/storj/pkg/peertls"
|
||||
"storj.io/storj/pkg/peertls/extensions"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/testcontext"
|
||||
"storj.io/storj/private/testpeertls"
|
||||
"storj.io/storj/private/testrevocation"
|
||||
"storj.io/storj/storage"
|
||||
)
|
||||
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
"gopkg.in/spacemonkeygo/monkit.v2"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/private/memory"
|
||||
)
|
||||
|
||||
//go:generate go run gen.go ../pb drpc compat_drpc.go
|
||||
|
@ -11,10 +11,10 @@ import (
|
||||
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/storj/internal/memory"
|
||||
"storj.io/storj/pkg/pb"
|
||||
"storj.io/storj/pkg/peertls/tlsopts"
|
||||
"storj.io/storj/pkg/storj"
|
||||
"storj.io/storj/private/memory"
|
||||
)
|
||||
|
||||
// Dialer holds configuration for dialing.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user