diff --git a/go.mod b/go.mod index feb4aa3..03a9a5b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/kaovilai/udistribution +module github.com/migtools/udistribution go 1.18 diff --git a/pkg/client/client.go b/pkg/client/client.go index fc28b6d..95fbe6d 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -6,8 +6,8 @@ import ( "fmt" // "github.com/distribution/distribution/v3/registry/storage/driver/factory" - uconfiguration "github.com/kaovilai/udistribution/pkg/distribution/configuration" - "github.com/kaovilai/udistribution/pkg/distribution/registry" + uconfiguration "github.com/migtools/udistribution/pkg/distribution/configuration" + "github.com/migtools/udistribution/pkg/distribution/registry" "github.com/distribution/distribution/v3/configuration" dcontext "github.com/distribution/distribution/v3/context" @@ -24,7 +24,7 @@ import ( "github.com/distribution/distribution/v3/uuid" "github.com/distribution/distribution/v3/version" - def "github.com/kaovilai/udistribution/pkg/client/default" + def "github.com/migtools/udistribution/pkg/client/default" ) type Client struct { diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index f7ecfd5..d5a0a63 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -9,7 +9,7 @@ import ( "github.com/distribution/distribution/v3/configuration" "github.com/google/go-cmp/cmp" - uconfig "github.com/kaovilai/udistribution/pkg/distribution/configuration" + uconfig "github.com/migtools/udistribution/pkg/distribution/configuration" ) func TestNewClient(t *testing.T) { diff --git a/pkg/distribution/configuration/configuration_test.go b/pkg/distribution/configuration/configuration_test.go index 2a17897..06aeecd 100644 --- a/pkg/distribution/configuration/configuration_test.go +++ b/pkg/distribution/configuration/configuration_test.go @@ -7,7 +7,7 @@ import ( "github.com/distribution/distribution/v3/configuration" "github.com/google/go-cmp/cmp" - def "github.com/kaovilai/udistribution/pkg/client/default" + def "github.com/migtools/udistribution/pkg/client/default" ) func TestParseEnvironment(t *testing.T) { diff --git a/pkg/e2e_test.go b/pkg/e2e_test.go index 9a485d6..31cf012 100644 --- a/pkg/e2e_test.go +++ b/pkg/e2e_test.go @@ -14,8 +14,8 @@ import ( "github.com/containers/image/v5/transports" "github.com/containers/image/v5/types" "github.com/distribution/distribution/v3/uuid" - "github.com/kaovilai/udistribution/pkg/image/udistribution" - "github.com/kaovilai/udistribution/pkg/internal/image/imagesource" + "github.com/migtools/udistribution/pkg/image/udistribution" + "github.com/migtools/udistribution/pkg/internal/image/imagesource" "github.com/pkg/errors" "golang.org/x/sync/semaphore" ) diff --git a/pkg/image/udistribution/archive/dest.go b/pkg/image/udistribution/archive/dest.go index 9bf6ac3..4ff8459 100644 --- a/pkg/image/udistribution/archive/dest.go +++ b/pkg/image/udistribution/archive/dest.go @@ -5,7 +5,7 @@ import ( "io" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/image/udistribution/internal/tarfile" + "github.com/migtools/udistribution/pkg/image/udistribution/internal/tarfile" "github.com/pkg/errors" ) diff --git a/pkg/image/udistribution/archive/reader.go b/pkg/image/udistribution/archive/reader.go index 37c28f4..7631c41 100644 --- a/pkg/image/udistribution/archive/reader.go +++ b/pkg/image/udistribution/archive/reader.go @@ -4,7 +4,7 @@ import ( "github.com/containers/image/v5/docker/reference" "github.com/containers/image/v5/transports" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/image/udistribution/internal/tarfile" + "github.com/migtools/udistribution/pkg/image/udistribution/internal/tarfile" "github.com/pkg/errors" ) diff --git a/pkg/image/udistribution/archive/src.go b/pkg/image/udistribution/archive/src.go index 3d3d4ce..8a49003 100644 --- a/pkg/image/udistribution/archive/src.go +++ b/pkg/image/udistribution/archive/src.go @@ -4,7 +4,7 @@ import ( "context" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/image/udistribution/internal/tarfile" + "github.com/migtools/udistribution/pkg/image/udistribution/internal/tarfile" ) type archiveImageSource struct { diff --git a/pkg/image/udistribution/archive/transport.go b/pkg/image/udistribution/archive/transport.go index a756402..cbdc16c 100644 --- a/pkg/image/udistribution/archive/transport.go +++ b/pkg/image/udistribution/archive/transport.go @@ -10,7 +10,7 @@ import ( ctrImage "github.com/containers/image/v5/image" "github.com/containers/image/v5/transports" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/image/udistribution/internal/tarfile" + "github.com/migtools/udistribution/pkg/image/udistribution/internal/tarfile" "github.com/pkg/errors" ) diff --git a/pkg/image/udistribution/archive/writer.go b/pkg/image/udistribution/archive/writer.go index 3bbcbb9..63bd5bd 100644 --- a/pkg/image/udistribution/archive/writer.go +++ b/pkg/image/udistribution/archive/writer.go @@ -6,7 +6,7 @@ import ( "github.com/containers/image/v5/docker/reference" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/image/udistribution/internal/tarfile" + "github.com/migtools/udistribution/pkg/image/udistribution/internal/tarfile" "github.com/pkg/errors" ) diff --git a/pkg/image/udistribution/daemon/daemon_dest.go b/pkg/image/udistribution/daemon/daemon_dest.go index e6243a6..8ae8e5c 100644 --- a/pkg/image/udistribution/daemon/daemon_dest.go +++ b/pkg/image/udistribution/daemon/daemon_dest.go @@ -7,7 +7,7 @@ import ( "github.com/containers/image/v5/docker/reference" "github.com/containers/image/v5/types" "github.com/docker/docker/client" - "github.com/kaovilai/udistribution/pkg/image/udistribution/internal/tarfile" + "github.com/migtools/udistribution/pkg/image/udistribution/internal/tarfile" "github.com/pkg/errors" "github.com/sirupsen/logrus" ) diff --git a/pkg/image/udistribution/daemon/daemon_src.go b/pkg/image/udistribution/daemon/daemon_src.go index 261aa5f..5d1e5ec 100644 --- a/pkg/image/udistribution/daemon/daemon_src.go +++ b/pkg/image/udistribution/daemon/daemon_src.go @@ -4,7 +4,7 @@ import ( "context" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/image/udistribution/internal/tarfile" + "github.com/migtools/udistribution/pkg/image/udistribution/internal/tarfile" "github.com/pkg/errors" ) diff --git a/pkg/image/udistribution/docker_client.go b/pkg/image/udistribution/docker_client.go index 6e9c1ca..28e233e 100644 --- a/pkg/image/udistribution/docker_client.go +++ b/pkg/image/udistribution/docker_client.go @@ -27,7 +27,7 @@ import ( "github.com/containers/storage/pkg/homedir" clientLib "github.com/distribution/distribution/v3/registry/client" "github.com/docker/go-connections/tlsconfig" - "github.com/kaovilai/udistribution/pkg/internal/image/iolimits" + "github.com/migtools/udistribution/pkg/internal/image/iolimits" digest "github.com/opencontainers/go-digest" "github.com/pkg/errors" "github.com/sirupsen/logrus" diff --git a/pkg/image/udistribution/docker_image.go b/pkg/image/udistribution/docker_image.go index 4e67dbd..21eb49a 100644 --- a/pkg/image/udistribution/docker_image.go +++ b/pkg/image/udistribution/docker_image.go @@ -11,7 +11,7 @@ import ( "github.com/containers/image/v5/image" "github.com/containers/image/v5/manifest" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/image/udistribution/reference" + "github.com/migtools/udistribution/pkg/image/udistribution/reference" "github.com/opencontainers/go-digest" "github.com/pkg/errors" ) diff --git a/pkg/image/udistribution/docker_image_dest.go b/pkg/image/udistribution/docker_image_dest.go index 287a751..e48d2a3 100644 --- a/pkg/image/udistribution/docker_image_dest.go +++ b/pkg/image/udistribution/docker_image_dest.go @@ -14,18 +14,18 @@ import ( "strings" "github.com/containers/image/v5/docker/reference" - // "github.com/kaovilai/udistribution/pkg/internal/image/blobinfocache" - "github.com/kaovilai/udistribution/pkg/internal/image/blobinfocache" - // "github.com/kaovilai/udistribution/pkg/internal/image/putblobdigest" - "github.com/kaovilai/udistribution/pkg/internal/image/putblobdigest" - // "github.com/kaovilai/udistribution/pkg/internal/image/streamdigest" - "github.com/kaovilai/udistribution/pkg/internal/image/streamdigest" - // "github.com/kaovilai/udistribution/pkg/internal/image/uploadreader" + // "github.com/migtools/udistribution/pkg/internal/image/blobinfocache" + "github.com/migtools/udistribution/pkg/internal/image/blobinfocache" + // "github.com/migtools/udistribution/pkg/internal/image/putblobdigest" + "github.com/migtools/udistribution/pkg/internal/image/putblobdigest" + // "github.com/migtools/udistribution/pkg/internal/image/streamdigest" + "github.com/migtools/udistribution/pkg/internal/image/streamdigest" + // "github.com/migtools/udistribution/pkg/internal/image/uploadreader" "github.com/containers/image/v5/manifest" "github.com/containers/image/v5/types" "github.com/distribution/distribution/v3/registry/api/errcode" v2 "github.com/distribution/distribution/v3/registry/api/v2" - "github.com/kaovilai/udistribution/pkg/internal/image/uploadreader" + "github.com/migtools/udistribution/pkg/internal/image/uploadreader" "github.com/opencontainers/go-digest" imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1" "github.com/pkg/errors" diff --git a/pkg/image/udistribution/docker_image_src.go b/pkg/image/udistribution/docker_image_src.go index 2a5ec6b..7a21f67 100644 --- a/pkg/image/udistribution/docker_image_src.go +++ b/pkg/image/udistribution/docker_image_src.go @@ -18,8 +18,8 @@ import ( "github.com/containers/image/v5/manifest" "github.com/containers/image/v5/pkg/sysregistriesv2" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/internal/image/iolimits" - "github.com/kaovilai/udistribution/pkg/internal/image/private" + "github.com/migtools/udistribution/pkg/internal/image/iolimits" + "github.com/migtools/udistribution/pkg/internal/image/private" digest "github.com/opencontainers/go-digest" "github.com/pkg/errors" "github.com/sirupsen/logrus" diff --git a/pkg/image/udistribution/docker_image_src_test.go b/pkg/image/udistribution/docker_image_src_test.go index b16dada..706fe30 100644 --- a/pkg/image/udistribution/docker_image_src_test.go +++ b/pkg/image/udistribution/docker_image_src_test.go @@ -13,7 +13,7 @@ import ( "testing" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/internal/image/private" + "github.com/migtools/udistribution/pkg/internal/image/private" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/image/udistribution/docker_transport.go b/pkg/image/udistribution/docker_transport.go index 521d786..5198237 100644 --- a/pkg/image/udistribution/docker_transport.go +++ b/pkg/image/udistribution/docker_transport.go @@ -12,8 +12,8 @@ import ( // "github.com/containers/image/v5/transports" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/client" - "github.com/kaovilai/udistribution/pkg/constants" + "github.com/migtools/udistribution/pkg/client" + "github.com/migtools/udistribution/pkg/constants" "github.com/pkg/errors" ) diff --git a/pkg/image/udistribution/docker_transport_test.go b/pkg/image/udistribution/docker_transport_test.go index 94aaadc..48d61d3 100644 --- a/pkg/image/udistribution/docker_transport_test.go +++ b/pkg/image/udistribution/docker_transport_test.go @@ -6,8 +6,8 @@ import ( "github.com/containers/image/v5/docker/reference" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/client" - "github.com/kaovilai/udistribution/pkg/constants" + "github.com/migtools/udistribution/pkg/client" + "github.com/migtools/udistribution/pkg/constants" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/image/udistribution/internal/tarfile/dest.go b/pkg/image/udistribution/internal/tarfile/dest.go index 39c4776..9404712 100644 --- a/pkg/image/udistribution/internal/tarfile/dest.go +++ b/pkg/image/udistribution/internal/tarfile/dest.go @@ -9,8 +9,8 @@ import ( "github.com/containers/image/v5/docker/reference" "github.com/containers/image/v5/manifest" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/internal/image/iolimits" - "github.com/kaovilai/udistribution/pkg/internal/image/streamdigest" + "github.com/migtools/udistribution/pkg/internal/image/iolimits" + "github.com/migtools/udistribution/pkg/internal/image/streamdigest" "github.com/opencontainers/go-digest" "github.com/pkg/errors" "github.com/sirupsen/logrus" diff --git a/pkg/image/udistribution/internal/tarfile/reader.go b/pkg/image/udistribution/internal/tarfile/reader.go index 0c6c4ae..3527e7f 100644 --- a/pkg/image/udistribution/internal/tarfile/reader.go +++ b/pkg/image/udistribution/internal/tarfile/reader.go @@ -10,8 +10,8 @@ import ( "github.com/containers/image/v5/docker/reference" "github.com/containers/image/v5/pkg/compression" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/internal/image/iolimits" - "github.com/kaovilai/udistribution/pkg/internal/image/tmpdir" + "github.com/migtools/udistribution/pkg/internal/image/iolimits" + "github.com/migtools/udistribution/pkg/internal/image/tmpdir" "github.com/pkg/errors" ) diff --git a/pkg/image/udistribution/internal/tarfile/src.go b/pkg/image/udistribution/internal/tarfile/src.go index 8dc59d9..c76097f 100644 --- a/pkg/image/udistribution/internal/tarfile/src.go +++ b/pkg/image/udistribution/internal/tarfile/src.go @@ -14,7 +14,7 @@ import ( "github.com/containers/image/v5/manifest" "github.com/containers/image/v5/pkg/compression" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/internal/image/iolimits" + "github.com/migtools/udistribution/pkg/internal/image/iolimits" digest "github.com/opencontainers/go-digest" "github.com/pkg/errors" ) diff --git a/pkg/image/udistribution/lookaside.go b/pkg/image/udistribution/lookaside.go index cad7e62..1eb1e3c 100644 --- a/pkg/image/udistribution/lookaside.go +++ b/pkg/image/udistribution/lookaside.go @@ -12,7 +12,7 @@ import ( "github.com/containers/image/v5/types" "github.com/containers/storage/pkg/homedir" "github.com/ghodss/yaml" - "github.com/kaovilai/udistribution/pkg/internal/image/rootless" + "github.com/migtools/udistribution/pkg/internal/image/rootless" "github.com/opencontainers/go-digest" "github.com/pkg/errors" "github.com/sirupsen/logrus" diff --git a/pkg/image/udistribution/tarfile/dest.go b/pkg/image/udistribution/tarfile/dest.go index 5963da6..ab7c10d 100644 --- a/pkg/image/udistribution/tarfile/dest.go +++ b/pkg/image/udistribution/tarfile/dest.go @@ -6,7 +6,7 @@ import ( "github.com/containers/image/v5/docker/reference" "github.com/containers/image/v5/types" - internal "github.com/kaovilai/udistribution/pkg/image/udistribution/internal/tarfile" + internal "github.com/migtools/udistribution/pkg/image/udistribution/internal/tarfile" "github.com/opencontainers/go-digest" ) diff --git a/pkg/image/udistribution/tarfile/src.go b/pkg/image/udistribution/tarfile/src.go index 0678f5a..420c393 100644 --- a/pkg/image/udistribution/tarfile/src.go +++ b/pkg/image/udistribution/tarfile/src.go @@ -5,7 +5,7 @@ import ( "io" "github.com/containers/image/v5/types" - internal "github.com/kaovilai/udistribution/pkg/image/udistribution/internal/tarfile" + internal "github.com/migtools/udistribution/pkg/image/udistribution/internal/tarfile" digest "github.com/opencontainers/go-digest" ) diff --git a/pkg/image/udistribution/tarfile/types.go b/pkg/image/udistribution/tarfile/types.go index ef65d22..09d332d 100644 --- a/pkg/image/udistribution/tarfile/types.go +++ b/pkg/image/udistribution/tarfile/types.go @@ -1,7 +1,7 @@ package tarfile import ( - internal "github.com/kaovilai/udistribution/pkg/image/udistribution/internal/tarfile" + internal "github.com/migtools/udistribution/pkg/image/udistribution/internal/tarfile" ) // ManifestItem is an element of the array stored in the top-level manifest.json file. diff --git a/pkg/internal/image/imagedestination/wrapper.go b/pkg/internal/image/imagedestination/wrapper.go index e10c72a..791458e 100644 --- a/pkg/internal/image/imagedestination/wrapper.go +++ b/pkg/internal/image/imagedestination/wrapper.go @@ -6,7 +6,7 @@ import ( "io" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/internal/image/private" + "github.com/migtools/udistribution/pkg/internal/image/private" ) // FromPublic(dest) returns an object that provides the private.ImageDestination API diff --git a/pkg/internal/image/imagesource/wrapper.go b/pkg/internal/image/imagesource/wrapper.go index e260804..ce020cf 100644 --- a/pkg/internal/image/imagesource/wrapper.go +++ b/pkg/internal/image/imagesource/wrapper.go @@ -6,7 +6,7 @@ import ( "io" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/internal/image/private" + "github.com/migtools/udistribution/pkg/internal/image/private" ) // FromPublic(src) returns an object that provides the private.ImageSource API diff --git a/pkg/internal/image/streamdigest/stream_digest.go b/pkg/internal/image/streamdigest/stream_digest.go index 2165080..bf32ce5 100644 --- a/pkg/internal/image/streamdigest/stream_digest.go +++ b/pkg/internal/image/streamdigest/stream_digest.go @@ -5,11 +5,11 @@ import ( "io" "os" - // "github.com/kaovilai/udistribution/pkg/internal/image/putblobdigest" - "github.com/kaovilai/udistribution/pkg/internal/image/putblobdigest" - // "github.com/kaovilai/udistribution/pkg/internal/image/tmpdir" + // "github.com/migtools/udistribution/pkg/internal/image/putblobdigest" + "github.com/migtools/udistribution/pkg/internal/image/putblobdigest" + // "github.com/migtools/udistribution/pkg/internal/image/tmpdir" "github.com/containers/image/v5/types" - "github.com/kaovilai/udistribution/pkg/internal/image/tmpdir" + "github.com/migtools/udistribution/pkg/internal/image/tmpdir" ) // ComputeBlobInfo streams a blob to a temporary file and populates Digest and Size in inputInfo. diff --git a/pkg/internal/image/tmpdir/tmpdir.go b/pkg/internal/image/tmpdir/tmpdir.go index fb14d5e..fff810b 100644 --- a/pkg/internal/image/tmpdir/tmpdir.go +++ b/pkg/internal/image/tmpdir/tmpdir.go @@ -9,7 +9,7 @@ import ( // unixTempDirForBigFiles is the directory path to store big files on non Windows systems. // You can override this at build time with -// -ldflags '-X github.com/kaovilai/udistribution/pkg/internal/tmpdir.unixTempDirForBigFiles=$your_path' +// -ldflags '-X github.com/migtools/udistribution/pkg/internal/tmpdir.unixTempDirForBigFiles=$your_path' var unixTempDirForBigFiles = builtinUnixTempDirForBigFiles // builtinUnixTempDirForBigFiles is the directory path to store big files.