distribution/notifications
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
..
bridge.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
bridge_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
endpoint.go Enable goimports check 2018-08-06 14:37:44 -07:00
event.go Use references terminology instead of layers. 2018-08-20 10:01:40 -07:00
event_test.go Fix gometalint errors 2021-03-23 21:03:10 +08:00
http.go Fix gometalint errors 2021-03-23 21:03:10 +08:00
http_test.go Fix unit test 2017-01-09 17:31:00 -08:00
listener.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
listener_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-09-22 13:25:01 +02:00
metrics.go Typo fixes in comments 2016-02-10 16:26:29 -08:00
metrics_test.go notifications: fix expvar for Go 1.7 2017-02-14 10:51:20 -08:00
sinks.go Fix gometalint errors 2021-03-23 21:03:10 +08:00
sinks_test.go Enable static checks 2018-08-06 14:49:11 -07:00