go-containerregistry | Go library and CLIs for working with container registries | Continuous Deployment library

 by   google Go Version: v0.15.2 License: Apache-2.0

kandi X-RAY | go-containerregistry Summary

kandi X-RAY | go-containerregistry Summary

go-containerregistry is a Go library typically used in Devops, Continuous Deployment, Docker applications. go-containerregistry has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

The simplest use for these libraries is to read from one source and write to another. However, often you actually want to change something about an image. This is the purpose of the mutate package, which exposes some commonly useful things to change about an image. If you're trying to use this library with a different source or sink than it already supports, it can be somewhat cumbersome. The Image and Layer interfaces are pretty wide, with a lot of redundant information. This is somewhat by design, because we want to expose this information as efficiently as possible where we can, but again it is a pain to implement yourself. The purpose of the partial package is to make implementing a v1.Image much easier, by filling in all the derived accessors for you if you implement a minimal subset of v1.Image. You might think our abstractions are bad and you just want to authenticate and send requests to a registry. This is the purpose of the transport and authn packages.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              go-containerregistry has a medium active ecosystem.
              It has 2442 star(s) with 439 fork(s). There are 37 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 66 open issues and 480 have been closed. On average issues are closed in 186 days. There are 18 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of go-containerregistry is v0.15.2

            kandi-Quality Quality

              go-containerregistry has no bugs reported.

            kandi-Security Security

              go-containerregistry has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              go-containerregistry is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              go-containerregistry releases are available to install and integrate.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of go-containerregistry
            Get all kandi verified functions for this library.

            go-containerregistry Key Features

            No Key Features are available at this moment for go-containerregistry.

            go-containerregistry Examples and Code Snippets

            No Code Snippets are available at this moment for go-containerregistry.

            Community Discussions

            Trending Discussions on go-containerregistry

            QUESTION

            check existence of docker image in private registry in Go
            Asked 2019-Mar-19 at 14:22

            I'm wondering how I can check that a docker image exists in a private registry (in eu.gcr.io), without pulling it.

            I have a service, written in golang, which needs to check for the existence of a docker image in order to validate a config file passed to it by a user.

            Pulling the image using the go docker client, as shown here, works. However, I don't want to pull down images just to check they exist, as they can be large.

            I've tried using Client.ImageSearch, but his just searches for public images. the cloud.google.com/go package also doesn't seem to have anything for dealing with the container registry.

            There's possibly this and the crane tool it contains, but I'm really struggling to figure out how it works. The documentation is... not great.

            I'd like the solution to be host agnostic, and the only option I have found is to simply make a http request and use the logic from this answer.

            Are there any docker or other packages able to do this in a cleaner way?

            ...

            ANSWER

            Answered 2019-Mar-19 at 14:22

            Just realised the lib I've been using has an unhelpfully named client method DistributionInspect (link), which will just return the image digest and manifest, if it's found. so the image doesn't get pulled down.

            Source https://stackoverflow.com/questions/55242866

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install go-containerregistry

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/google/go-containerregistry.git

          • CLI

            gh repo clone google/go-containerregistry

          • sshUrl

            git@github.com:google/go-containerregistry.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link