distribution/registry/storage
Sebastiaan van Stijn 3dda067747
deprecate reference package, migrate to github.com/distribution/reference
This integrates the new module, which was extracted from this repository
at commit b9b19409cf458dcb9e1253ff44ba75bd0620faa6;

    # install filter-repo (https://github.com/newren/git-filter-repo/blob/main/INSTALL.md)
    brew install git-filter-repo

    # create a temporary clone of docker
    cd ~/Projects
    git clone https://github.com/distribution/distribution.git reference
    cd reference

    # commit taken from
    git rev-parse --verify HEAD
    b9b19409cf

    # remove all code, except for general files, 'reference/', and rename to /
    git filter-repo \
      --path .github/workflows/codeql-analysis.yml \
      --path .github/workflows/fossa.yml \
      --path .golangci.yml \
      --path distribution-logo.svg \
      --path CODE-OF-CONDUCT.md \
      --path CONTRIBUTING.md \
      --path GOVERNANCE.md \
      --path README.md \
      --path LICENSE \
      --path MAINTAINERS \
      --path-glob 'reference/*.*' \
      --path-rename reference/:

    # initialize go.mod
    go mod init github.com/distribution/reference
    go mod tidy -go=1.20

This commit is based on 152af63ec5 in the main branch,
but adjusted for the 2.8 branch, with some differences:

- the Sort functions have not been kept, as they were not part of the v2 package,
  and introduced in 1052518d9f
- the ParseAnyReferenceWithSet and ShortIdentifierRegexp were kept (but deprecated)
  as removing happened in 6d4f62d7fd, which is not
  in the 2.8 branch.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-22 13:25:01 +02:00
..
cache deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
driver Handle rand deprecations in go 1.20 2023-09-12 00:35:52 +02:00
blob_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
blobcachemetrics.go registry: remove dependency on logrus for client 2017-08-15 10:28:38 -07:00
blobserver.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
blobstore.go Fix gometalint errors 2021-03-23 21:03:10 +08:00
blobwriter.go track digest offset in blobwriter 2018-09-12 14:53:27 -07:00
blobwriter_nonresumable.go bump up golang v1.17 2023-05-09 10:59:38 +02:00
blobwriter_resumable.go bump up golang v1.17 2023-05-09 10:59:38 +02:00
catalog.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
catalog_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
doc.go Move storage package under registry package 2015-02-11 12:43:04 -08:00
error.go Remove old walk function 2018-01-18 13:06:07 -08:00
filereader.go Enable static checks 2018-08-06 14:49:11 -07:00
filereader_test.go Handle rand deprecations in go 1.20 2023-09-12 00:35:52 +02:00
garbagecollect.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
garbagecollect_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
io.go close the io.ReadCloser from storage driver 2021-02-23 18:48:00 +08:00
linkedblobstore.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
linkedblobstore_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
manifestlisthandler.go Fix registry stripping newlines from manifests 2018-09-05 13:40:42 -07:00
manifeststore.go Migrate to golangci-lint 2021-03-23 21:02:54 +08:00
manifeststore_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
ocimanifesthandler.go Fix gofmt warnings 2023-05-09 18:58:38 +01:00
ocimanifesthandler_test.go Migrate to golangci-lint 2021-03-23 21:02:54 +08:00
paths.go Fix gofmt warnings 2023-05-09 18:58:38 +01:00
paths_test.go Fix gometalint errors 2021-03-23 21:03:10 +08:00
purgeuploads.go Fix gometalint errors 2021-03-23 21:03:10 +08:00
purgeuploads_test.go Fix gometalint errors 2021-03-23 21:03:10 +08:00
registry.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
schema2manifesthandler.go Fix gofmt warnings 2023-05-09 18:58:38 +01:00
schema2manifesthandler_test.go Update schema2 builder to take media type 2016-12-14 16:17:20 -08:00
signedmanifesthandler.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
tagstore.go Fix gometalint errors 2021-03-23 21:03:10 +08:00
tagstore_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
v1unsupportedhandler.go disable schema1 by default, add a config flag to enable it 2017-12-19 10:23:25 -08:00
vacuum.go add possibility to clean untagged manifests 2018-01-05 12:20:01 +02:00