automation-tests/image
Miloslav Trmač 272fed3bb4 Fix up the wording a bit in various places
E.g.
- Capitalize log messages
- Add a bit more context to the log messages
- Don't commit to specific fallback behavior in the API, only say that it may automatically retry.
- Fix some typos

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2020-01-06 17:23:57 +01:00
..
copy update github.com/vbauerster/mpb to v4 2019-12-02 13:38:38 +01:00
directory Fix this value is never used 2019-11-26 18:47:55 +04:00
docker Fix up the wording a bit in various places 2020-01-06 17:23:57 +01:00
docs Add registries warning to registries.conf 2019-12-13 17:51:49 -05:00
image Fix Error return value is not checked 2019-11-26 19:11:22 +04:00
internal internal/pkg/keyctl: drop deprecation warning 2019-12-04 11:01:17 +01:00
manifest Change golint to golangci-lint 2019-11-27 15:04:37 +04:00
oci Fix Error return value is not checked 2019-11-26 19:11:22 +04:00
openshift Fix Error return value is not checked 2019-11-26 19:11:22 +04:00
ostree Redefine ImageDestination.MustMatchRuntimeOS to also include architecture 2019-11-22 15:46:14 +01:00
pkg Add internal error handling 2019-11-27 15:18:24 +04:00
signature Fix Error return value is not checked 2019-11-26 19:11:22 +04:00
storage storage_test.go: check storage interfaces 2019-11-28 14:01:39 +01:00
tarball Clean up various imports 2019-10-25 22:36:44 +02:00
transports Update to major version v5 2019-10-25 22:27:45 +02:00
types Fix golangci-lint advises 2019-11-26 18:31:04 +04:00
version Move to v5.1.1-dev 2019-12-13 08:24:19 -05:00
.cirrus.yml Enable Cirrus validation tests 2019-12-04 11:01:17 +01:00
.gitignore Issue #475 Add flag for image compress layer for oci destination 2018-07-12 17:50:17 +05:30
.golangci.yml Enable Cirrus validation tests 2019-12-04 11:01:17 +01:00
.pullapprove.yml *: add pullapprove 2016-06-27 16:34:59 +02:00
.travis.Dockerfile Change golint to golangci-lint 2019-11-27 15:04:37 +04:00
.travis.yml Makefile: split tools installation 2019-12-04 11:01:17 +01:00
CONTRIBUTING.md Modify CONTRIBUTING.md to prefer smaller commits over squashing them 2017-11-06 16:13:33 +01:00
LICENSE Move to Apache 2 license 2016-06-24 11:35:34 -07:00
MAINTAINERS add @vrothberg to the list of MAINTAINERS 2019-01-11 16:33:51 +01:00
Makefile make test-skopeo: only run unit tests 2019-12-04 11:01:17 +01:00
README.md Replace `vendor.conf` by `go.mod` 2019-09-02 20:42:42 +02:00
doc.go Update to major version v5 2019-10-25 22:27:45 +02:00
go.mod Bump github.com/klauspost/compress from 1.9.5 to 1.9.7 2020-01-06 09:15:16 +00:00
go.sum Bump github.com/klauspost/compress from 1.9.5 to 1.9.7 2020-01-06 09:15:16 +00:00
registries.conf Add registries warning to registries.conf 2019-12-13 17:51:49 -05:00

README.md

GoDoc Build Status

image is a set of Go libraries aimed at working in various way with containers' images and container image registries.

The containers/image library allows application to pull and push images from container image registries, like the upstream docker registry. It also implements "simple image signing".

The containers/image library also allows you to inspect a repository on a container registry without pulling down the image. This means it fetches the repository's manifest and it is able to show you a docker inspect-like json output about a whole repository or a tag. This library, in contrast to docker inspect, helps you gather useful information about a repository or a tag without requiring you to run docker pull.

The containers/image library also allows you to translate from one image format to another, for example docker container images to OCI images. It also allows you to copy container images between various registries, possibly converting them as necessary, and to sign and verify images.

Command-line usage

The containers/image project is only a library with no user interface; you can either incorporate it into your Go programs, or use the skopeo tool:

The skopeo tool uses the containers/image library and takes advantage of many of its features, e.g. skopeo copy exposes the containers/image/copy.Image functionality.

Dependencies

This library ships as a Go module.

Building

If you want to see what the library can do, or an example of how it is called, consider starting with the skopeo tool instead.

To integrate this library into your project, include it as a Go module, put it into $GOPATH or use your preferred vendoring tool to include a copy in your project. Ensure that the dependencies documented in go.mod are also available (using those exact versions or different versions of your choosing).

This library, by default, also depends on the GpgME and libostree C libraries. Either install them:

Fedora$ dnf install gpgme-devel libassuan-devel ostree-devel
macOS$ brew install gpgme

or use the build tags described below to avoid the dependencies (e.g. using go build -tags …)

Supported build tags

  • containers_image_openpgp: Use a Golang-only OpenPGP implementation for signature verification instead of the default cgo/gpgme-based implementation; the primary downside is that creating new signatures with the Golang-only implementation is not supported.
  • containers_image_ostree: Import ostree: transport in github.com/containers/image/transports/alltransports. This builds the library requiring the libostree development libraries. Otherwise a stub which reports that the transport is not supported gets used. The github.com/containers/image/ostree package is completely disabled and impossible to import when this build tag is not in use.

Contributing

Information about contributing to this project.

When developing this library, please use make (or make … BUILDTAGS=…) to take advantage of the tests and validation.

License

Apache License 2.0

SPDX-License-Identifier: Apache-2.0

Contact