Returns which registry from the container image name

which-registry

Returns which registry from the container image name.

Example

import(
  wr "github.com/ohkinozomu/which-registry"
)

image := "nginx:alpine"
registry, _ := wr.Which(image)

// Docker Hub
fmt.Println(registry)

Supported registry

  • Docker Hub
  • Amazon Elastic Container Registry Public
  • Amazon Elastic Container Registry(private)

License

Apache-2.0

parsers.go was copied from https://github.com/kubernetes/kubernetes.

Comments
  • Update module go to 1.19

    Update module go to 1.19

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | go (source) | golang | minor | 1.17 -> 1.19 |


    Release Notes

    golang/go

    v1.19.1

    v1.19.0

    v1.18.6

    v1.18.5

    v1.18.4

    v1.18.0


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

  • Update module github.com/ohkinozomu/gcp-regions to v0.2.0

    Update module github.com/ohkinozomu/gcp-regions to v0.2.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/ohkinozomu/gcp-regions | require | minor | v0.1.0 -> v0.2.0 |


    Release Notes

    ohkinozomu/gcp-regions

    v0.2.0

    Compare Source

    What's Changed

    Full Changelog: https://github.com/ohkinozomu/gcp-regions/compare/v0.1.0...v0.2.0


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

  • Update module github.com/docker/distribution to v2.8.1

    Update module github.com/docker/distribution to v2.8.1

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/docker/distribution | require | patch | v2.8.0+incompatible -> v2.8.1 |


    Release Notes

    docker/distribution

    v2.8.1

    Compare Source

    Welcome to the v2.8.1 release of registry!

    The 2.8.1 registry release fixes the Go module issues that have popped up in the v2.8.0

    There have been no changes made in the released binaries other than the bump of the Go runtime.

    See the changelog below for a full list of changes.

    CI
    • ci: use proper git ref for versioning #​3595
    • Go: make Go version explicit and pin it to the latest 1.16 release #​3604
    Contributors
    • CrazyMax
    • Milos Gajdos
    Changes
    6 commits

    • 96cc1fdb FIx typo
    • e744906f Update 2.8.1. release notes
    • Prepare for v2.8.1 release (#​3596)
    • [2.8 backport] ci: use proper git ref for versioning (#​3595)
      • 80acbdf0 ci: use proper git ref for versioning

    ##### Dependency Changes

    This release has no dependency changes

    The previous release can be found at v2.8.0


    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

  • Update actions/checkout action to v3

    Update actions/checkout action to v3

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | actions/checkout | action | major | v2 -> v3 |


    Release Notes

    actions/checkout

    v3

    Compare Source


    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

  • Update module github.com/ohkinozomu/gcp-regions to v0.1.0

    Update module github.com/ohkinozomu/gcp-regions to v0.1.0

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/ohkinozomu/gcp-regions | require | minor | v0.0.2 -> v0.1.0 |


    Release Notes

    ohkinozomu/gcp-regions

    v0.1.0

    Compare Source

    What's Changed

    Full Changelog: https://github.com/ohkinozomu/gcp-regions/compare/v0.0.3...v0.1.0

    v0.0.3

    Compare Source

    What's Changed

    Full Changelog: https://github.com/ohkinozomu/gcp-regions/compare/v0.0.2...v0.0.3


    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

  • Update module github.com/ohkinozomu/gcp-regions to v0.0.2

    Update module github.com/ohkinozomu/gcp-regions to v0.0.2

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/ohkinozomu/gcp-regions | require | patch | v0.0.1 -> v0.0.2 |


    Release Notes

    ohkinozomu/gcp-regions

    v0.0.2

    Compare Source

    What's Changed

    New Contributors

    Full Changelog: https://github.com/ohkinozomu/gcp-regions/compare/v0.0.1...v0.0.2


    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

  • Update module github.com/docker/distribution to v2.8.0

    Update module github.com/docker/distribution to v2.8.0

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/docker/distribution | require | minor | v2.7.1+incompatible -> v2.8.0 |


    Release Notes

    docker/distribution

    v2.8.0

    Compare Source

    registry 2.8.0

    Welcome to the v2.8.0 release of registry!

    The 2.8.0 registry release has been a long time overdue. This is the first step towards the last 2.x release. No further active development will continue on 2.x branch. Security vulnerability patches to 2.x might be considered, but all active development will be focussed on v3 release due in 2022. This release includes a security vulnerability fix along with a few minor bug fixes and improvemnts in documentation and CI.

    See changelog below for full list of changes.

    Bugfixes
    • Close the io.ReadCloser from storage driver #​3370
    • Remove empty Content-Type header #​3297
    • Make ipfilteredby not required in cloudfront storage middleware #​3088
    Features
    • Add reference.ParseDockerRef utility function #​3002
    CI build
    • First draft of actions based ci #​3347
    • Fix vndr and check #​3001
    • Improve code quality by adding linter checks #​3385
    Documentation
    Storage drivers
    • S3 Driver: add support for ceph radosgw #​3119
    Security
    Changes
    50 commits

    • Prepare for v2.8.0 release (#​3552)
      • d5d89a46 Make this releaes a beta release first.
      • 1ddad0ba Apply suggestions from code review
      • 3960a560 Prepare for v2.8.0 release
    • [2.8] Release artifacts (#​3568)
    • [2.8] Release workflow (#​3565)
      • 65ca39e6 release workflow
      • 3b7b5345 Merge pull request from GHSA-qq97-vm5h-rrhg
      • 10ade61d manifest: validate document type before unmarshal
    • [release/2.7] github.com/golang-jwt/jwt v3.2.2 (#​3466)
      • c5679da3 [release/2.7] vendor: github.com/golang-jwt/jwt v3.2.1
    • [release/2.7] vendor: github.com/opencontainers/image-spec v1.0.2 (#​3535)
      • 97f6dace [release/2.7] vendor: github.com/opencontainers/image-spec v1.0.2
    • [release/2.7]fix go check issues (#​3531)
    • [release/2.7 backport] Change should to must in v2 spec (#​3495)
      • 19b573a6 Change should to must in v2 spec
    • [release/2.7] update to go1.16 (#​3472)
      • d836b23f [release/2.7] update to go1.16
    • [backport release/2.7]Added flag for user configurable cipher suites (#​3384)
      • cc341b01 Added flag for user configurable cipher suites
    • enable ci for release/2.7 (#​3385)
    • [cherry pick]close the io.ReadCloser from storage driver (#​3370)
      • 3fe1d67a close the io.ReadCloser from storage driver
    • [backport release/2.7] First draft of actions based ci (#​3347)
      • f1bd6551 First draft of actions based ci
    • [release/2.7 backport] Remove empty Content-Type header (#​3297)
      • cf8615de Remove empty Content-Type header
    • [release/2.7 backport] docs: add redirect for old URL (#​3197)
      • 48eeac88 docs: add redirect for old URL
    • [release/2.7] Fix s3 driver for supporting ceph radosgw (#​3119)
      • e2f006ac S3 Driver: added comment for missing KeyCount workaround
      • 0a1e4a57 Fix s3 driver for supporting ceph radosgw
    • [release/2.7 backport] Bugfix: Make ipfilteredby not required (#​3088)
      • afa91463 Bugfix: Make ipfilteredby not required
    • [release/2.7 backport] Add reference.ParseDockerRef utility function (#​3002)
      • fad36ed1 Add reference.ParseDockerRef utility function
    • [release/2.7 backport] fix markdown issues on configuration page (#​3073)
    • [release/2.7] Fix vndr and check (#​3001)
    • [release/2.7] Adding deprecated schema v1 page (#​2987)
      • a3c027e6 Adding deprecated schema instructions

    ##### Dependency Changes * github.com/dgrijalva/jwt-go -> github.com/golang-jwt/jwt.git # v3.2.2 (a601269ab70c -> 4bbdd8ac624f) * github.com/opencontainers/image-spec -> github.com/opencontainers/image-spec # v1.0.2 (ab7389ef9f50 -> 67d2d5658fe0)

    Previous release can be found at v2.7.1


    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

  • Dependency Dashboard

    Dependency Dashboard

    This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

    This repository currently has no open or pending branches.

    Detected dependencies

    github-actions
    .github/workflows/test.yaml
    • actions/checkout v3
    gomod
    go.mod
    • go 1.19
    • github.com/docker/distribution v2.8.1+incompatible

    • [ ] Check this box to trigger a request for Renovate to run again on this repository
registry-tools: Prints image digest from a registry

registry-tools: Prints image digest from a registry

Dec 23, 2021
k8s-image-swapper Mirror images into your own registry and swap image references automatically.
k8s-image-swapper Mirror images into your own registry and swap image references automatically.

k8s-image-swapper Mirror images into your own registry and swap image references automatically. k8s-image-swapper is a mutating webhook for Kubernetes

Dec 27, 2022
Kubernetes Container Registry

k8scr A kubectl plugin for pushing OCI images through the Kubernetes API server. Quickstart Build kubectl-k8scr make build Move to location in PATH s

Dec 15, 2022
Container Registry Synchronization made easy and fast

?? booster - Makes synchronization of container images between registries faster.

May 12, 2022
Kubernetes controller for backing up public container images to our own registry repository

image-clone-controller Kubernetes controller which watches applications (Deployment and DaemonSet) and "caches" the images (public container images) b

Aug 28, 2022
Common Image Registry for Testcontainers-Go
Common Image Registry for Testcontainers-Go

Testcontainers-Go Common Image Registry Common Image Registry for Testcontainers-Go Prerequisites Go >= 1.16 Install go get github.com/nhatthm/testcon

Dec 15, 2022
Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Moby Project - a collaborative project for the container ecosystem to assemble container-based systems

The Moby Project Moby is an open-source project created by Docker to enable and accelerate software containerization. It provides a "Lego set" of tool

Jan 8, 2023
Boxygen is a container as code framework that allows you to build container images from code

Boxygen is a container as code framework that allows you to build container images from code, allowing integration of container image builds into other tooling such as servers or CLI tooling.

Dec 13, 2021
Amazon ECS Container Agent: a component of Amazon Elastic Container Service
Amazon ECS Container Agent: a component of Amazon Elastic Container Service

Amazon ECS Container Agent The Amazon ECS Container Agent is a component of Amazon Elastic Container Service (Amazon ECS) and is responsible for manag

Dec 28, 2021
The Container Storage Interface (CSI) Driver for Fortress Block Storage This driver allows you to use Fortress Block Storage with your container orchestrator

fortress-csi The Container Storage Interface (CSI) Driver for Fortress Block Storage This driver allows you to use Fortress Block Storage with your co

Jan 23, 2022
A tool to restart a Docker container with a newer version of the image

repull A tool to restart a Docker container with a newer version of an image used by the container Often you may need to pull a newer version of an im

Nov 28, 2022
Kubernetes workload controller for container image deployment

kube-image-deployer kube-image-deployer는 Docker Registry의 Image:Tag를 감시하는 Kubernetes Controller입니다. Keel과 유사하지만 단일 태그만 감시하며 더 간결하게 동작합니다. Container, I

Mar 8, 2022
Image clone controller is a kubernetes controller to safe guard against the risk of container images disappearing

Image clone controller image clone controller is a kubernetes controller to safe guard against the risk of container images disappearing from public r

Oct 10, 2021
Container-Explorer is a tool to explore containerd installation on a mounted image.

Container-Explorer Container-Explorer is a tool to explore containerd installation on a mounted image. Container-Explorer attempts to provide the simi

Dec 27, 2022
Container image sweeper kube

container-image-sweeper-kube container-image-sweeper-kube は、不要になった Docker イメージを自

Jan 24, 2022
Undock - Extract contents of a container image in a local folder
Undock - Extract contents of a container image in a local folder

About Undock is a CLI application that allows you to extract contents of a conta

Jan 4, 2023
This action prints "true" if image is required to update based on the base image update.

container-image-updater This action prints "true" if image is required to update based on the base image update. Inputs Name Type Description base-ima

Apr 15, 2022
An image server which automatically optimize non webp and avif images to webp and avif images

go-imageserver go-imageserver is an image server which automatically optimize no

Apr 18, 2022
Solana Token Registry - a package that allows application to query for list of tokens

Please note: This repository is being rebuilt to accept the new volume of token additions and modifications. PR merges will be delayed. @solana/spl-to

Jan 16, 2022