/docker-ref

A library for parsing Docker image references

Primary LanguageGoApache License 2.0Apache-2.0

docker-ref

GitHub Workflow Status go.dev reference built with nix

A library for parsing Docker image references.

This library is extracted from the distribution project (from this commit).

It's sole purpose is to allow parsing Docker image references without having to import the entire distribution project with all of its dependencies.

Installation

go get github.com/sagikazarmark/docker-ref

Development

For an optimal developer experience, it is recommended to install Nix and direnv.

Run the test suite:

just test

Prior art

There are some existing solutions out there, but I decided it's easier if I just fork the repo myself.

License

The project is licensed under the Apache 2.0 License.