1
0
mirror of https://github.com/containers/skopeo.git synced 2025-05-09 08:26:24 +00:00
skopeo/integration
Colin Walters 08b27fc50e proxy: Add OpenImageOptional
In some code I'm writing I want to be able to cleanly test if an
image exists, as distinguished from other errors like authentication
problems, network flakes etc.

As best I can tell, the containers/image abstraction doesn't
offer a clean way to do this.

For now, I chose the route of adding the ugly string error matching
here for the two cases I care about (docker v2s2 registry and oci
directories), so my Rust code can operate in terms of clean
`Option<Image>`.

Signed-off-by: Colin Walters <walters@verbum.org>
2022-10-12 21:11:55 -04:00
..
fixtures Update for the renames of sigstore to lookaside 2022-07-12 13:47:35 +02:00
blocked_test.go Update non-module dependencies 2021-08-23 15:52:48 +02:00
check_test.go Update tests for changed error texts 2022-10-12 22:56:46 +02:00
copy_test.go Update tests for changed error texts 2022-10-12 22:56:46 +02:00
decompress-dirs.sh copy: add a --all/-a flag 2019-10-22 11:05:42 -04:00
fixtures_info_test.go Remove signature/fixtures subpackage 2016-05-21 21:21:58 +02:00
openshift_shell_test.go Reformat with Go 1.19's gofmt 2022-08-10 21:19:51 +02:00
openshift.go Stop using docker/docker/pkg/homedir in tests 2022-08-23 22:30:12 +02:00
procutils_linux.go tests: Add new "procutils" that exposes PDEATHSIG 2021-11-15 21:02:14 -05:00
procutils.go tests: Add new "procutils" that exposes PDEATHSIG 2021-11-15 21:02:14 -05:00
proxy_test.go proxy: Add OpenImageOptional 2022-10-12 21:11:55 -04:00
registry.go Enable schema1 support on the test registries 2022-06-16 20:27:05 +02:00
signing_test.go Update users of deprecated io/ioutil 2022-04-13 20:13:52 +02:00
sync_test.go Remove a special case for failing to list tags in (skopeo sync) 2022-10-12 22:56:52 +02:00
utils.go Use bytes.ReplaceAll instead of bytes.Replace(..., -1) 2022-06-29 19:40:02 +02:00