mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 12:58:02 +08:00
refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187)
Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
+10
-10
@@ -14,16 +14,16 @@ import (
|
||||
"google.golang.org/protobuf/proto"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
|
||||
zerr "zotregistry.io/zot/errors"
|
||||
"zotregistry.io/zot/pkg/api/constants"
|
||||
zcommon "zotregistry.io/zot/pkg/common"
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
"zotregistry.io/zot/pkg/meta/common"
|
||||
mConvert "zotregistry.io/zot/pkg/meta/convert"
|
||||
proto_go "zotregistry.io/zot/pkg/meta/proto/gen"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
"zotregistry.io/zot/pkg/meta/version"
|
||||
reqCtx "zotregistry.io/zot/pkg/requestcontext"
|
||||
zerr "zotregistry.dev/zot/errors"
|
||||
"zotregistry.dev/zot/pkg/api/constants"
|
||||
zcommon "zotregistry.dev/zot/pkg/common"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
"zotregistry.dev/zot/pkg/meta/common"
|
||||
mConvert "zotregistry.dev/zot/pkg/meta/convert"
|
||||
proto_go "zotregistry.dev/zot/pkg/meta/proto/gen"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
"zotregistry.dev/zot/pkg/meta/version"
|
||||
reqCtx "zotregistry.dev/zot/pkg/requestcontext"
|
||||
)
|
||||
|
||||
type BoltDB struct {
|
||||
|
||||
@@ -14,13 +14,13 @@ import (
|
||||
"go.etcd.io/bbolt"
|
||||
"google.golang.org/protobuf/proto"
|
||||
|
||||
zerr "zotregistry.io/zot/errors"
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
"zotregistry.io/zot/pkg/meta/boltdb"
|
||||
proto_go "zotregistry.io/zot/pkg/meta/proto/gen"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
reqCtx "zotregistry.io/zot/pkg/requestcontext"
|
||||
. "zotregistry.io/zot/pkg/test/image-utils"
|
||||
zerr "zotregistry.dev/zot/errors"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
"zotregistry.dev/zot/pkg/meta/boltdb"
|
||||
proto_go "zotregistry.dev/zot/pkg/meta/proto/gen"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
reqCtx "zotregistry.dev/zot/pkg/requestcontext"
|
||||
. "zotregistry.dev/zot/pkg/test/image-utils"
|
||||
)
|
||||
|
||||
type imgTrustStore struct{}
|
||||
|
||||
@@ -7,11 +7,11 @@ import (
|
||||
godigest "github.com/opencontainers/go-digest"
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
|
||||
zerr "zotregistry.io/zot/errors"
|
||||
zcommon "zotregistry.io/zot/pkg/common"
|
||||
mConvert "zotregistry.io/zot/pkg/meta/convert"
|
||||
proto_go "zotregistry.io/zot/pkg/meta/proto/gen"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
zerr "zotregistry.dev/zot/errors"
|
||||
zcommon "zotregistry.dev/zot/pkg/common"
|
||||
mConvert "zotregistry.dev/zot/pkg/meta/convert"
|
||||
proto_go "zotregistry.dev/zot/pkg/meta/proto/gen"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
)
|
||||
|
||||
func SignatureAlreadyExists(signatureSlice []mTypes.SignatureInfo, sm mTypes.SignatureMetadata) bool {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
"zotregistry.io/zot/pkg/meta/common"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
"zotregistry.dev/zot/pkg/meta/common"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
)
|
||||
|
||||
var ErrTestError = errors.New("test error")
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
|
||||
"zotregistry.io/zot/pkg/common"
|
||||
proto_go "zotregistry.io/zot/pkg/meta/proto/gen"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
"zotregistry.dev/zot/pkg/common"
|
||||
proto_go "zotregistry.dev/zot/pkg/meta/proto/gen"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
)
|
||||
|
||||
func GetHistory(history []*proto_go.History) []ispec.History {
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
|
||||
"zotregistry.io/zot/pkg/common"
|
||||
proto_go "zotregistry.io/zot/pkg/meta/proto/gen"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
"zotregistry.dev/zot/pkg/common"
|
||||
proto_go "zotregistry.dev/zot/pkg/meta/proto/gen"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
)
|
||||
|
||||
func GetProtoRepoMeta(repo mTypes.RepoMeta) *proto_go.RepoMeta {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
"zotregistry.io/zot/pkg/meta/convert"
|
||||
"zotregistry.io/zot/pkg/meta/proto/gen"
|
||||
"zotregistry.dev/zot/pkg/meta/convert"
|
||||
"zotregistry.dev/zot/pkg/meta/proto/gen"
|
||||
)
|
||||
|
||||
func TestConvertErrors(t *testing.T) {
|
||||
|
||||
@@ -16,16 +16,16 @@ import (
|
||||
"google.golang.org/protobuf/proto"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
|
||||
zerr "zotregistry.io/zot/errors"
|
||||
"zotregistry.io/zot/pkg/api/constants"
|
||||
zcommon "zotregistry.io/zot/pkg/common"
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
"zotregistry.io/zot/pkg/meta/common"
|
||||
mConvert "zotregistry.io/zot/pkg/meta/convert"
|
||||
proto_go "zotregistry.io/zot/pkg/meta/proto/gen"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
"zotregistry.io/zot/pkg/meta/version"
|
||||
reqCtx "zotregistry.io/zot/pkg/requestcontext"
|
||||
zerr "zotregistry.dev/zot/errors"
|
||||
"zotregistry.dev/zot/pkg/api/constants"
|
||||
zcommon "zotregistry.dev/zot/pkg/common"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
"zotregistry.dev/zot/pkg/meta/common"
|
||||
mConvert "zotregistry.dev/zot/pkg/meta/convert"
|
||||
proto_go "zotregistry.dev/zot/pkg/meta/proto/gen"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
"zotregistry.dev/zot/pkg/meta/version"
|
||||
reqCtx "zotregistry.dev/zot/pkg/requestcontext"
|
||||
)
|
||||
|
||||
type DynamoDB struct {
|
||||
|
||||
@@ -12,9 +12,9 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
"zotregistry.io/zot/pkg/log" //nolint:go-staticcheck
|
||||
"zotregistry.io/zot/pkg/meta/version"
|
||||
tskip "zotregistry.io/zot/pkg/test/skip"
|
||||
"zotregistry.dev/zot/pkg/log" //nolint:go-staticcheck
|
||||
"zotregistry.dev/zot/pkg/meta/version"
|
||||
tskip "zotregistry.dev/zot/pkg/test/skip"
|
||||
)
|
||||
|
||||
func TestWrapperErrors(t *testing.T) {
|
||||
|
||||
@@ -17,13 +17,13 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
"zotregistry.io/zot/pkg/extensions/imagetrust"
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
mdynamodb "zotregistry.io/zot/pkg/meta/dynamodb"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
reqCtx "zotregistry.io/zot/pkg/requestcontext"
|
||||
. "zotregistry.io/zot/pkg/test/image-utils"
|
||||
tskip "zotregistry.io/zot/pkg/test/skip"
|
||||
"zotregistry.dev/zot/pkg/extensions/imagetrust"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
mdynamodb "zotregistry.dev/zot/pkg/meta/dynamodb"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
reqCtx "zotregistry.dev/zot/pkg/requestcontext"
|
||||
. "zotregistry.dev/zot/pkg/test/image-utils"
|
||||
tskip "zotregistry.dev/zot/pkg/test/skip"
|
||||
)
|
||||
|
||||
const badTablename = "bad tablename"
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/aws/aws-sdk-go-v2/service/dynamodb"
|
||||
"github.com/aws/aws-sdk-go-v2/service/dynamodb/types"
|
||||
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
)
|
||||
|
||||
type AttributesIterator interface {
|
||||
|
||||
+4
-4
@@ -6,10 +6,10 @@ import (
|
||||
godigest "github.com/opencontainers/go-digest"
|
||||
v1 "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
|
||||
zcommon "zotregistry.io/zot/pkg/common"
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
"zotregistry.io/zot/pkg/storage"
|
||||
zcommon "zotregistry.dev/zot/pkg/common"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
"zotregistry.dev/zot/pkg/storage"
|
||||
)
|
||||
|
||||
// OnUpdateManifest is called when a new manifest is added. It updates metadb according to the type
|
||||
|
||||
@@ -8,14 +8,14 @@ import (
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
"zotregistry.io/zot/pkg/extensions/monitoring"
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
"zotregistry.io/zot/pkg/meta"
|
||||
"zotregistry.io/zot/pkg/meta/boltdb"
|
||||
"zotregistry.io/zot/pkg/storage"
|
||||
"zotregistry.io/zot/pkg/storage/local"
|
||||
. "zotregistry.io/zot/pkg/test/image-utils"
|
||||
"zotregistry.io/zot/pkg/test/mocks"
|
||||
"zotregistry.dev/zot/pkg/extensions/monitoring"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
"zotregistry.dev/zot/pkg/meta"
|
||||
"zotregistry.dev/zot/pkg/meta/boltdb"
|
||||
"zotregistry.dev/zot/pkg/storage"
|
||||
"zotregistry.dev/zot/pkg/storage/local"
|
||||
. "zotregistry.dev/zot/pkg/test/image-utils"
|
||||
"zotregistry.dev/zot/pkg/test/mocks"
|
||||
)
|
||||
|
||||
var ErrTestError = errors.New("test error")
|
||||
|
||||
+6
-6
@@ -4,12 +4,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go-v2/service/dynamodb"
|
||||
"go.etcd.io/bbolt"
|
||||
|
||||
"zotregistry.io/zot/errors"
|
||||
"zotregistry.io/zot/pkg/api/config"
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
"zotregistry.io/zot/pkg/meta/boltdb"
|
||||
mdynamodb "zotregistry.io/zot/pkg/meta/dynamodb"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
"zotregistry.dev/zot/errors"
|
||||
"zotregistry.dev/zot/pkg/api/config"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
"zotregistry.dev/zot/pkg/meta/boltdb"
|
||||
mdynamodb "zotregistry.dev/zot/pkg/meta/dynamodb"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
)
|
||||
|
||||
func New(storageConfig config.StorageConfig, log log.Logger) (mTypes.MetaDB, error) {
|
||||
|
||||
+14
-14
@@ -20,20 +20,20 @@ import (
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
zcommon "zotregistry.io/zot/pkg/common"
|
||||
"zotregistry.io/zot/pkg/extensions/imagetrust"
|
||||
"zotregistry.io/zot/pkg/extensions/search/convert"
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
"zotregistry.io/zot/pkg/meta"
|
||||
"zotregistry.io/zot/pkg/meta/boltdb"
|
||||
"zotregistry.io/zot/pkg/meta/common"
|
||||
mdynamodb "zotregistry.io/zot/pkg/meta/dynamodb"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
reqCtx "zotregistry.io/zot/pkg/requestcontext"
|
||||
tCommon "zotregistry.io/zot/pkg/test/common"
|
||||
. "zotregistry.io/zot/pkg/test/image-utils"
|
||||
"zotregistry.io/zot/pkg/test/signature"
|
||||
tskip "zotregistry.io/zot/pkg/test/skip"
|
||||
zcommon "zotregistry.dev/zot/pkg/common"
|
||||
"zotregistry.dev/zot/pkg/extensions/imagetrust"
|
||||
"zotregistry.dev/zot/pkg/extensions/search/convert"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
"zotregistry.dev/zot/pkg/meta"
|
||||
"zotregistry.dev/zot/pkg/meta/boltdb"
|
||||
"zotregistry.dev/zot/pkg/meta/common"
|
||||
mdynamodb "zotregistry.dev/zot/pkg/meta/dynamodb"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
reqCtx "zotregistry.dev/zot/pkg/requestcontext"
|
||||
tCommon "zotregistry.dev/zot/pkg/test/common"
|
||||
. "zotregistry.dev/zot/pkg/test/image-utils"
|
||||
"zotregistry.dev/zot/pkg/test/signature"
|
||||
tskip "zotregistry.dev/zot/pkg/test/skip"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
+6
-6
@@ -9,12 +9,12 @@ import (
|
||||
godigest "github.com/opencontainers/go-digest"
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
|
||||
zerr "zotregistry.io/zot/errors"
|
||||
zcommon "zotregistry.io/zot/pkg/common"
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
"zotregistry.io/zot/pkg/meta/convert"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
stypes "zotregistry.io/zot/pkg/storage/types"
|
||||
zerr "zotregistry.dev/zot/errors"
|
||||
zcommon "zotregistry.dev/zot/pkg/common"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
"zotregistry.dev/zot/pkg/meta/convert"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
stypes "zotregistry.dev/zot/pkg/storage/types"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
+16
-16
@@ -15,22 +15,22 @@ import (
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
zcommon "zotregistry.io/zot/pkg/common"
|
||||
"zotregistry.io/zot/pkg/extensions/monitoring"
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
"zotregistry.io/zot/pkg/meta"
|
||||
"zotregistry.io/zot/pkg/meta/boltdb"
|
||||
"zotregistry.io/zot/pkg/meta/dynamodb"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
"zotregistry.io/zot/pkg/storage"
|
||||
"zotregistry.io/zot/pkg/storage/local"
|
||||
storageTypes "zotregistry.io/zot/pkg/storage/types"
|
||||
tcommon "zotregistry.io/zot/pkg/test/common"
|
||||
. "zotregistry.io/zot/pkg/test/image-utils"
|
||||
"zotregistry.io/zot/pkg/test/mocks"
|
||||
ociutils "zotregistry.io/zot/pkg/test/oci-utils"
|
||||
"zotregistry.io/zot/pkg/test/signature"
|
||||
tskip "zotregistry.io/zot/pkg/test/skip"
|
||||
zcommon "zotregistry.dev/zot/pkg/common"
|
||||
"zotregistry.dev/zot/pkg/extensions/monitoring"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
"zotregistry.dev/zot/pkg/meta"
|
||||
"zotregistry.dev/zot/pkg/meta/boltdb"
|
||||
"zotregistry.dev/zot/pkg/meta/dynamodb"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
"zotregistry.dev/zot/pkg/storage"
|
||||
"zotregistry.dev/zot/pkg/storage/local"
|
||||
storageTypes "zotregistry.dev/zot/pkg/storage/types"
|
||||
tcommon "zotregistry.dev/zot/pkg/test/common"
|
||||
. "zotregistry.dev/zot/pkg/test/image-utils"
|
||||
"zotregistry.dev/zot/pkg/test/mocks"
|
||||
ociutils "zotregistry.dev/zot/pkg/test/oci-utils"
|
||||
"zotregistry.dev/zot/pkg/test/signature"
|
||||
tskip "zotregistry.dev/zot/pkg/test/skip"
|
||||
)
|
||||
|
||||
const repo = "repo"
|
||||
|
||||
@@ -15,11 +15,11 @@ import (
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
"go.etcd.io/bbolt"
|
||||
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
"zotregistry.io/zot/pkg/meta/boltdb"
|
||||
mdynamodb "zotregistry.io/zot/pkg/meta/dynamodb"
|
||||
"zotregistry.io/zot/pkg/meta/version"
|
||||
tskip "zotregistry.io/zot/pkg/test/skip"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
"zotregistry.dev/zot/pkg/meta/boltdb"
|
||||
mdynamodb "zotregistry.dev/zot/pkg/meta/dynamodb"
|
||||
"zotregistry.dev/zot/pkg/meta/version"
|
||||
tskip "zotregistry.dev/zot/pkg/test/skip"
|
||||
)
|
||||
|
||||
var ErrTestError = errors.New("test error")
|
||||
|
||||
Reference in New Issue
Block a user