-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable the fetching of only the OCI descriptor
Some OCI artifacts need to have a specific media type (i.e. they should only be an OCI image index or an OCI image manifest). In order to determine that with a single remote call, we can just get the descriptor and then check the mediaType of that object. Signed-off-by: arewm <arewm@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
593 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
= ec.oci.descriptor | ||
|
||
Fetch a raw Image from an OCI registry. | ||
|
||
== Usage | ||
|
||
object = ec.oci.descriptor(ref: string) | ||
|
||
== Parameters | ||
|
||
* `ref` (`string`): OCI descriptor reference | ||
|
||
== Return | ||
|
||
`object` (`object`): the OCI descriptor object | ||
|
||
The object contains the following attributes: | ||
|
||
* `annotations` (`object`) | ||
** (`string`): (`string`) | ||
* `artifactType` (`string`) | ||
* `data` (`string`) | ||
* `digest` (`string`) | ||
* `mediaType` (`string`) | ||
* `platform` (`object`) | ||
** `architecture` (`string`) | ||
** `features`(`array`) | ||
*** (`string`) | ||
** `os` (`string`) | ||
** `os.features`(`array`) | ||
*** (`string`) | ||
** `os.version` (`string`) | ||
** `variant` (`string`) | ||
* `size` (`number`) | ||
* `urls`(`array`) | ||
** (`string`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.