private: rename internal to private (#3573)

This commit is contained in:
Egon Elbre 2019-11-14 21:46:15 +02:00 committed by GitHub
parent f1d0d0d68f
commit ee6c1cac8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
423 changed files with 673 additions and 670 deletions

View File

@ -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;\''

View File

@ -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 (

View File

@ -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"

View File

@ -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"
)

View File

@ -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) {

View File

@ -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) {

View File

@ -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.

View File

@ -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 (

View File

@ -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

View File

@ -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 (

View File

@ -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 (

View File

@ -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"
)

View File

@ -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 (

View File

@ -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 (

View File

@ -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".

View File

@ -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) {

View File

@ -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")

View File

@ -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

View File

@ -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() {

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"
)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 (

View File

@ -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"
)

View File

@ -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

View File

@ -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 {

View File

@ -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"
)

View File

@ -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

View File

@ -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 (

View File

@ -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

View File

@ -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() {

View File

@ -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 {

View File

@ -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 (

View File

@ -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 {

View File

@ -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 (

View File

@ -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() {

View File

@ -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() {

View File

@ -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 {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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"
)

View File

@ -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 (

View File

@ -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"
)

View File

@ -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"
)

View File

@ -6,7 +6,7 @@ package mobile
import (
"context"
"storj.io/storj/internal/fpath"
"storj.io/storj/private/fpath"
)
type scope struct {

View File

@ -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

View File

@ -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 {

View File

@ -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) {

View File

@ -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) {

View File

@ -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 {

View File

@ -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"

View File

@ -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) {

View File

@ -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"
)

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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)) {

View File

@ -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()

View File

@ -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) {

View File

@ -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 (

View File

@ -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 (

View File

@ -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) {

View File

@ -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 (

View File

@ -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) {

View File

@ -16,7 +16,7 @@ import (
"github.com/spf13/pflag"
"go.uber.org/zap"
"storj.io/storj/internal/version"
"storj.io/storj/private/version"
)
const (

View File

@ -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{}) {

View File

@ -8,7 +8,7 @@ import (
"io/ioutil"
"testing"
"storj.io/storj/internal/testrand"
"storj.io/storj/private/testrand"
)
func TestAesGcm(t *testing.T) {

View File

@ -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"
)

View File

@ -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) {

View File

@ -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 {

View File

@ -8,7 +8,7 @@ import (
"io/ioutil"
"testing"
"storj.io/storj/internal/testrand"
"storj.io/storj/private/testrand"
)
func TestSecretbox(t *testing.T) {

View File

@ -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()

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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

View File

@ -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"
)

View File

@ -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"

View File

@ -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"
)

View File

@ -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) {

View File

@ -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"
)

View File

@ -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) {

View File

@ -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) {

View File

@ -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"
)

View File

@ -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 (

View File

@ -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() {

View File

@ -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.

View File

@ -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() {

View File

@ -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 (

View File

@ -11,7 +11,7 @@ import (
"strconv"
"testing"
"storj.io/storj/internal/testcontext"
"storj.io/storj/private/testcontext"
)
func TestFileRanger(t *testing.T) {

View File

@ -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()

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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

View File

@ -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