pkg/,private/: merge with private package
Initially there were pkg and private packages, however for all practical purposes there's no significant difference between them. It's clearer to have a single private package - and when we do get a specific abstraction that needs to be reused, we can move it to storj.io/common or storj.io/private. Change-Id: Ibc2036e67f312f5d63cb4a97f5a92e38ae413aa5
This commit is contained in:
parent
c641ddcb54
commit
7802ab714f
@ -72,7 +72,7 @@ pipeline {
|
||||
STORJ_TEST_COCKROACH_ALT = 'cockroach://root@localhost:26260/testcockroach?sslmode=disable'
|
||||
STORJ_TEST_POSTGRES = 'postgres://postgres@localhost/teststorj?sslmode=disable'
|
||||
STORJ_TEST_DATABASES = 'crdb|pgx|cockroach://root@localhost:26259/testmetabase?sslmode=disable;pg|pgx|postgres://postgres@localhost/testmetabase?sslmode=disable'
|
||||
COVERFLAGS = "${ env.BRANCH_NAME == 'main' ? '-coverprofile=.build/coverprofile -coverpkg=storj.io/storj/private/...,storj.io/storj/pkg/...,storj.io/storj/satellite/...,storj.io/storj/storage/...,storj.io/storj/storagenode/...,storj.io/storj/versioncontrol/...' : ''}"
|
||||
COVERFLAGS = "${ env.BRANCH_NAME == 'main' ? '-coverprofile=.build/coverprofile -coverpkg=storj.io/storj/private/...,storj.io/storj/satellite/...,storj.io/storj/storage/...,storj.io/storj/storagenode/...,storj.io/storj/versioncontrol/...' : ''}"
|
||||
}
|
||||
steps {
|
||||
sh 'cockroach sql --insecure --host=localhost:26256 -e \'create database testcockroach;\''
|
||||
|
@ -17,8 +17,8 @@ import (
|
||||
"storj.io/common/peertls/tlsopts"
|
||||
"storj.io/storj/certificate/authorization"
|
||||
"storj.io/storj/certificate/certificatepb"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/pkg/server"
|
||||
"storj.io/storj/private/revocation"
|
||||
"storj.io/storj/private/server"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -26,7 +26,7 @@ import (
|
||||
"storj.io/storj/certificate/authorization"
|
||||
"storj.io/storj/certificate/certificateclient"
|
||||
"storj.io/storj/certificate/certificatepb"
|
||||
"storj.io/storj/pkg/server"
|
||||
"storj.io/storj/private/server"
|
||||
)
|
||||
|
||||
// TODO: test sad path.
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
"storj.io/private/process"
|
||||
"storj.io/storj/certificate"
|
||||
"storj.io/storj/certificate/authorization"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/revocation"
|
||||
_ "storj.io/storj/private/version" // This attaches version information during release builds.
|
||||
)
|
||||
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
"storj.io/common/peertls/tlsopts"
|
||||
"storj.io/common/rpc"
|
||||
"storj.io/common/storj"
|
||||
"storj.io/storj/pkg/quic"
|
||||
"storj.io/storj/private/quic"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -15,7 +15,7 @@ import (
|
||||
"storj.io/common/peertls/extensions"
|
||||
"storj.io/private/cfgstruct"
|
||||
"storj.io/private/process"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/revocation"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -24,7 +24,7 @@ import (
|
||||
"storj.io/private/process"
|
||||
"storj.io/private/version"
|
||||
"storj.io/storj/certificate/certificateclient"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/revocation"
|
||||
_ "storj.io/storj/private/version" // This attaches version information during release builds.
|
||||
"storj.io/storj/private/version/checker"
|
||||
)
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
|
||||
"storj.io/private/cfgstruct"
|
||||
"storj.io/private/process"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/revocation"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
"storj.io/common/context2"
|
||||
"storj.io/private/process"
|
||||
"storj.io/private/version"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/revocation"
|
||||
"storj.io/storj/satellite"
|
||||
"storj.io/storj/satellite/accounting"
|
||||
"storj.io/storj/satellite/accounting/live"
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
"storj.io/private/process"
|
||||
"storj.io/private/version"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/revocation"
|
||||
"storj.io/storj/satellite"
|
||||
"storj.io/storj/satellite/metainfo"
|
||||
"storj.io/storj/satellite/satellitedb"
|
||||
|
@ -30,8 +30,8 @@ import (
|
||||
_ "storj.io/private/process/googleprofiler" // This attaches google cloud profiler.
|
||||
"storj.io/private/version"
|
||||
"storj.io/storj/cmd/satellite/reports"
|
||||
"storj.io/storj/pkg/lrucache"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/lrucache"
|
||||
"storj.io/storj/private/revocation"
|
||||
_ "storj.io/storj/private/version" // This attaches version information during release builds.
|
||||
"storj.io/storj/satellite"
|
||||
"storj.io/storj/satellite/accounting"
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"storj.io/common/errs2"
|
||||
"storj.io/private/process"
|
||||
"storj.io/private/version"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/revocation"
|
||||
"storj.io/storj/satellite"
|
||||
"storj.io/storj/satellite/metainfo"
|
||||
"storj.io/storj/satellite/orders"
|
||||
|
@ -21,7 +21,7 @@ import (
|
||||
"storj.io/private/cfgstruct"
|
||||
"storj.io/private/process"
|
||||
"storj.io/private/version"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/revocation"
|
||||
_ "storj.io/storj/private/version" // This attaches version information during release builds.
|
||||
"storj.io/storj/storagenode"
|
||||
"storj.io/storj/storagenode/apikeys"
|
||||
|
@ -24,7 +24,7 @@ import (
|
||||
"storj.io/common/storj"
|
||||
"storj.io/private/cfgstruct"
|
||||
"storj.io/private/process"
|
||||
"storj.io/storj/pkg/server"
|
||||
"storj.io/storj/private/server"
|
||||
"storj.io/storj/private/version/checker"
|
||||
"storj.io/uplink"
|
||||
privateAccess "storj.io/uplink/private/access"
|
||||
|
@ -17,7 +17,7 @@ import (
|
||||
|
||||
"storj.io/common/memory"
|
||||
"storj.io/common/rpc"
|
||||
"storj.io/storj/pkg/quic/qtls"
|
||||
"storj.io/storj/private/quic/qtls"
|
||||
)
|
||||
|
||||
// Conn is a wrapper around a quic connection and fulfills net.Conn interface.
|
@ -21,7 +21,7 @@ import (
|
||||
"storj.io/common/peertls/tlsopts"
|
||||
"storj.io/common/storj"
|
||||
"storj.io/common/testcontext"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/revocation"
|
||||
"storj.io/storj/private/testrevocation"
|
||||
"storj.io/storj/storage"
|
||||
)
|
@ -11,7 +11,7 @@ import (
|
||||
|
||||
"storj.io/common/memory"
|
||||
"storj.io/common/rpc"
|
||||
"storj.io/storj/pkg/quic"
|
||||
"storj.io/storj/private/quic"
|
||||
)
|
||||
|
||||
// HybridConnector implements a dialer that creates a connection using either
|
@ -12,7 +12,7 @@ import (
|
||||
"storj.io/common/peertls/tlsopts"
|
||||
"storj.io/common/storj"
|
||||
"storj.io/common/testcontext"
|
||||
"storj.io/storj/pkg/server"
|
||||
"storj.io/storj/private/server"
|
||||
"storj.io/storj/private/testplanet"
|
||||
)
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
|
||||
"storj.io/common/netutil"
|
||||
"storj.io/common/rpc"
|
||||
"storj.io/storj/pkg/quic"
|
||||
"storj.io/storj/private/quic"
|
||||
)
|
||||
|
||||
// defaultUserTimeout is the value we use for the TCP_USER_TIMEOUT setting.
|
@ -25,7 +25,7 @@ import (
|
||||
"storj.io/drpc/drpcmux"
|
||||
"storj.io/drpc/drpcserver"
|
||||
jaeger "storj.io/monkit-jaeger"
|
||||
"storj.io/storj/pkg/quic"
|
||||
"storj.io/storj/private/quic"
|
||||
)
|
||||
|
||||
// Config holds server specific configuration parameters.
|
@ -18,7 +18,7 @@ import (
|
||||
"storj.io/common/rpc"
|
||||
"storj.io/common/storj"
|
||||
"storj.io/common/testcontext"
|
||||
"storj.io/storj/pkg/quic"
|
||||
"storj.io/storj/private/quic"
|
||||
"storj.io/storj/private/testplanet"
|
||||
"storj.io/storj/satellite"
|
||||
"storj.io/storj/storagenode"
|
||||
|
@ -26,8 +26,8 @@ import (
|
||||
"storj.io/common/uuid"
|
||||
"storj.io/private/debug"
|
||||
"storj.io/private/version"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/pkg/server"
|
||||
"storj.io/storj/private/revocation"
|
||||
"storj.io/storj/private/server"
|
||||
"storj.io/storj/private/testredis"
|
||||
versionchecker "storj.io/storj/private/version/checker"
|
||||
"storj.io/storj/private/web"
|
||||
|
@ -21,8 +21,8 @@ import (
|
||||
"storj.io/common/peertls/tlsopts"
|
||||
"storj.io/common/storj"
|
||||
"storj.io/private/debug"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/pkg/server"
|
||||
"storj.io/storj/private/revocation"
|
||||
"storj.io/storj/private/server"
|
||||
"storj.io/storj/storage/filestore"
|
||||
"storj.io/storj/storagenode"
|
||||
"storj.io/storj/storagenode/bandwidth"
|
||||
|
@ -23,8 +23,8 @@ import (
|
||||
"storj.io/common/storj"
|
||||
"storj.io/common/testcontext"
|
||||
"storj.io/common/testrand"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/pkg/server"
|
||||
"storj.io/storj/private/revocation"
|
||||
"storj.io/storj/private/server"
|
||||
"storj.io/storj/private/testplanet"
|
||||
"storj.io/uplink"
|
||||
"storj.io/uplink/private/metainfo"
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
"storj.io/common/peertls/extensions"
|
||||
"storj.io/common/testcontext"
|
||||
"storj.io/storj/pkg/revocation"
|
||||
"storj.io/storj/private/revocation"
|
||||
"storj.io/storj/private/testredis"
|
||||
"storj.io/storj/storage"
|
||||
)
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
|
||||
"storj.io/common/memory"
|
||||
"storj.io/common/uuid"
|
||||
"storj.io/storj/pkg/lrucache"
|
||||
"storj.io/storj/private/lrucache"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -25,10 +25,10 @@ import (
|
||||
"storj.io/common/storj"
|
||||
"storj.io/private/debug"
|
||||
"storj.io/private/version"
|
||||
"storj.io/storj/pkg/server"
|
||||
"storj.io/storj/private/lifecycle"
|
||||
"storj.io/storj/private/post"
|
||||
"storj.io/storj/private/post/oauth2"
|
||||
"storj.io/storj/private/server"
|
||||
"storj.io/storj/private/version/checker"
|
||||
"storj.io/storj/satellite/accounting"
|
||||
"storj.io/storj/satellite/analytics"
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
"storj.io/common/rpc"
|
||||
"storj.io/common/rpc/rpcstatus"
|
||||
"storj.io/common/storj"
|
||||
"storj.io/storj/pkg/quic"
|
||||
"storj.io/storj/private/quic"
|
||||
"storj.io/storj/satellite/overlay"
|
||||
)
|
||||
|
||||
|
@ -22,7 +22,7 @@ import (
|
||||
"storj.io/common/signing"
|
||||
"storj.io/common/storj"
|
||||
"storj.io/common/uuid"
|
||||
"storj.io/storj/pkg/lrucache"
|
||||
"storj.io/storj/private/lrucache"
|
||||
"storj.io/storj/satellite/accounting"
|
||||
"storj.io/storj/satellite/attribution"
|
||||
"storj.io/storj/satellite/console"
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
|
||||
"storj.io/common/identity"
|
||||
"storj.io/private/debug"
|
||||
"storj.io/storj/pkg/server"
|
||||
"storj.io/storj/private/server"
|
||||
version_checker "storj.io/storj/private/version/checker"
|
||||
"storj.io/storj/satellite/accounting"
|
||||
"storj.io/storj/satellite/accounting/live"
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/common/uuid"
|
||||
"storj.io/storj/pkg/lrucache"
|
||||
"storj.io/storj/private/lrucache"
|
||||
"storj.io/storj/satellite/console"
|
||||
"storj.io/storj/satellite/satellitedb/dbx"
|
||||
)
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/pkg/lrucache"
|
||||
"storj.io/storj/private/lrucache"
|
||||
"storj.io/storj/satellite/console"
|
||||
"storj.io/storj/satellite/satellitedb/dbx"
|
||||
)
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
"storj.io/private/dbutil"
|
||||
"storj.io/private/dbutil/pgutil"
|
||||
"storj.io/private/tagsql"
|
||||
"storj.io/storj/pkg/lrucache"
|
||||
"storj.io/storj/private/lrucache"
|
||||
"storj.io/storj/private/migrate"
|
||||
"storj.io/storj/satellite"
|
||||
"storj.io/storj/satellite/accounting"
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/zeebo/errs"
|
||||
|
||||
"storj.io/storj/pkg/lrucache"
|
||||
"storj.io/storj/private/lrucache"
|
||||
"storj.io/storj/satellite/satellitedb/dbx"
|
||||
)
|
||||
|
||||
|
@ -26,9 +26,9 @@ import (
|
||||
"storj.io/common/storj"
|
||||
"storj.io/private/debug"
|
||||
"storj.io/private/version"
|
||||
"storj.io/storj/pkg/server"
|
||||
"storj.io/storj/private/lifecycle"
|
||||
"storj.io/storj/private/multinodepb"
|
||||
"storj.io/storj/private/server"
|
||||
"storj.io/storj/private/version/checker"
|
||||
"storj.io/storj/storage"
|
||||
"storj.io/storj/storage/filestore"
|
||||
|
@ -20,7 +20,7 @@ import (
|
||||
"storj.io/common/peertls/tlsopts"
|
||||
"storj.io/common/rpc"
|
||||
"storj.io/common/testcontext"
|
||||
"storj.io/storj/pkg/server"
|
||||
"storj.io/storj/private/server"
|
||||
"storj.io/storj/private/testplanet"
|
||||
"storj.io/storj/storagenode"
|
||||
"storj.io/storj/storagenode/preflight"
|
||||
|
Loading…
Reference in New Issue
Block a user