Define interfaces for reasoning about signed images. #693
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This starts to layout our augmented interfaces for reasoning about signed images and indices. The next step will be to try and shoe-horn some of the implementation of these that we currently use into a new
internal/oci/remote
package.A couple (seemingly) superficial things about how this is set up:
pkg/v1
, each in their own file, and implementations of them inpkg/v1/<name>
.v1.Image
instead of just surfacing the higher-level things, we enable folks toremote.Write
andtarball.Write
the signatures, which feels useful.oci.go
into a more aptly namedmediatypes.go
None of this stuff is carved in stone, so we'll see how far off we are as we start to use this first-stab for realz.
Signed-off-by: Matt Moore mattomata@gmail.com
Ticket Link
Related: #666
Release Note