mirror of https://github.com/containers/image.git
containers/common/libimage is in need to check whether a given input looks like a full image ID (i.e., a 64-byte hex string). Since compiling regexes has a negative impact on init- and run-time, let's expose a function to check whether a given string matches the already compiled regex in docker/reference. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com> |
||
|---|---|---|
| .. | ||
| README.md | ||
| helpers.go | ||
| normalize.go | ||
| normalize_test.go | ||
| reference.go | ||
| reference_test.go | ||
| regexp-additions.go | ||
| regexp.go | ||
| regexp_test.go | ||
README.md
This is a copy of github.com/docker/distribution/reference as of commit 3226863cbcba6dbc2f6c83a37b28126c934af3f8, except that ParseAnyReferenceWithSet has been removed to drop the dependency on github.com/docker/distribution/digestset.