Skip to content

Commit

Permalink
update go module org to migtools
Browse files Browse the repository at this point in the history
Signed-off-by: Tiger Kaovilai <[email protected]>
  • Loading branch information
kaovilai committed Jul 12, 2023
1 parent fec5cb0 commit c5ec68e
Show file tree
Hide file tree
Showing 30 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/kaovilai/udistribution
module github.com/migtools/udistribution

go 1.18

Expand Down
6 changes: 3 additions & 3 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/distribution/configuration/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/archive/dest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/archive/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/archive/src.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/archive/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/archive/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/daemon/daemon_dest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/daemon/daemon_src.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/docker_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/docker_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
16 changes: 8 additions & 8 deletions pkg/image/udistribution/docker_image_dest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions pkg/image/udistribution/docker_image_src.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/docker_image_src_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/image/udistribution/docker_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/image/udistribution/docker_transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/image/udistribution/internal/tarfile/dest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions pkg/image/udistribution/internal/tarfile/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/internal/tarfile/src.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/lookaside.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/tarfile/dest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/tarfile/src.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/image/udistribution/tarfile/types.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/image/imagedestination/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/image/imagesource/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions pkg/internal/image/streamdigest/stream_digest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/image/tmpdir/tmpdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c5ec68e

Please sign in to comment.