Returns which registry from the container image name

Overview

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.

Issues
  • 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.

    opened by renovate[bot] 0
  • 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.

    opened by renovate[bot] 0
  • 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.

    opened by renovate[bot] 0
  • 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.

    opened by renovate[bot] 0
  • 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.

    opened by renovate[bot] 0
  • 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.

    opened by renovate[bot] 0
  • 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
    • github.com/docker/distribution v2.8.1+incompatible
    • github.com/jsonmaur/aws-regions/v2 v2.3.1
    • github.com/ohkinozomu/gcp-regions v0.2.0

    • [ ] Check this box to trigger a request for Renovate to run again on this repository
    opened by renovate[bot] 0
Releases(v0.2.1)
  • v0.2.1(Jun 5, 2022)

    What's Changed

    • Add GitHub Container Registry to String() by @ohkinozomu in https://github.com/ohkinozomu/which-registry/pull/19

    Full Changelog: https://github.com/ohkinozomu/which-registry/compare/v0.2.0...v0.2.1

    Source code(tar.gz)
    Source code(zip)
  • v0.2.0(Jun 2, 2022)

    What's Changed

    • Update variable name by @ohkinozomu in https://github.com/ohkinozomu/which-registry/pull/12
    • README: syntax highlight by @ohkinozomu in https://github.com/ohkinozomu/which-registry/pull/13
    • Update module github.com/ohkinozomu/gcp-regions to v0.0.2 by @renovate in https://github.com/ohkinozomu/which-registry/pull/14
    • Update module github.com/ohkinozomu/gcp-regions to v0.1.0 by @renovate in https://github.com/ohkinozomu/which-registry/pull/15
    • Update actions/checkout action to v3 by @renovate in https://github.com/ohkinozomu/which-registry/pull/16
    • Update module github.com/docker/distribution to v2.8.1 by @renovate in https://github.com/ohkinozomu/which-registry/pull/17
    • Add GitHub Container Registry by @ohkinozomu in https://github.com/ohkinozomu/which-registry/pull/18

    Full Changelog: https://github.com/ohkinozomu/which-registry/compare/v0.1.2...v0.2.0

    Source code(tar.gz)
    Source code(zip)
  • v0.1.2(Feb 16, 2022)

    What's Changed

    • Update module github.com/docker/distribution to v2.8.0 by @renovate in https://github.com/ohkinozomu/which-registry/pull/10
    • Add GCP region validation by @ohkinozomu in https://github.com/ohkinozomu/which-registry/pull/11

    New Contributors

    • @renovate made their first contribution in https://github.com/ohkinozomu/which-registry/pull/10

    Full Changelog: https://github.com/ohkinozomu/which-registry/compare/v0.1.1...v0.1.2

    Source code(tar.gz)
    Source code(zip)
  • v0.1.1(Feb 4, 2022)

    What's Changed

    • Refactoring by @ohkinozomu in https://github.com/ohkinozomu/which-registry/pull/9

    Full Changelog: https://github.com/ohkinozomu/which-registry/compare/v0.1.0...v0.1.1

    Source code(tar.gz)
    Source code(zip)
  • v0.1.0(Feb 4, 2022)

    What's Changed

    • Split the file by @ohkinozomu in https://github.com/ohkinozomu/which-registry/pull/7
    • Add Quay.io by @ohkinozomu in https://github.com/ohkinozomu/which-registry/pull/8

    Full Changelog: https://github.com/ohkinozomu/which-registry/compare/v0.0.4...v0.1.0

    Source code(tar.gz)
    Source code(zip)
  • v0.0.4(Feb 4, 2022)

    What's Changed

    • Validate AWS Region by @ohkinozomu in https://github.com/ohkinozomu/which-registry/pull/6

    Full Changelog: https://github.com/ohkinozomu/which-registry/compare/v0.0.3...v0.0.4

    Source code(tar.gz)
    Source code(zip)
  • v0.0.3(Feb 3, 2022)

    What's Changed

    • Add Google Container Registry by @ohkinozomu in https://github.com/ohkinozomu/which-registry/pull/4
    • Update README by @ohkinozomu in https://github.com/ohkinozomu/which-registry/pull/5

    Full Changelog: https://github.com/ohkinozomu/which-registry/compare/v0.0.2...v0.0.3

    Source code(tar.gz)
    Source code(zip)
  • v0.0.2(Feb 3, 2022)

    What's Changed

    • Add example by @ohkinozomu in https://github.com/ohkinozomu/which-registry/pull/2
    • Add Artifact Registry by @ohkinozomu in https://github.com/ohkinozomu/which-registry/pull/3

    Full Changelog: https://github.com/ohkinozomu/which-registry/compare/v0.0.1...v0.0.2

    Source code(tar.gz)
    Source code(zip)
  • v0.0.1(Jan 23, 2022)

Owner
Nozomu Ohki
Nozomu Ohki
registry-tools: Prints image digest from a registry

registry-tools: Prints image digest from a registry

Rashed K 1 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 is a mutating webhook for Kubernetes

Enrico Stahn 306 Jun 30, 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

Daniel Mangum 111 Jun 21, 2022
Container Registry Synchronization made easy and fast

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

Silvio Moioli 11 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

Sahadat Hossain 6 Jan 17, 2022
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

Nhat 2 May 21, 2022
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

Moby 63.4k Jul 4, 2022
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.

nitric 5 Dec 13, 2021
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

null 0 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

Fortress 0 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

Eugene 23 May 14, 2022
Kubernetes workload controller for container image deployment

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

PUBG Corporation 2 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

Jayadeep KM 0 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

Google 19 Jun 21, 2022
Container image sweeper kube

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

Latona, Inc. 0 Jan 24, 2022
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

CrazyMax 107 Jun 23, 2022
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

Manjunath Kumatagi 1 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

DeltaLaboratory 4 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

Square and Compass 0 Jan 16, 2022