Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose a method to parse an image layout identifier #179

Closed
Tracked by #237
jjbustamante opened this issue Feb 17, 2023 · 0 comments · Fixed by #180
Closed
Tracked by #237

Expose a method to parse an image layout identifier #179

jjbustamante opened this issue Feb 17, 2023 · 0 comments · Fixed by #180
Assignees
Labels
type/enhancement New feature or request

Comments

@jjbustamante
Copy link
Member

jjbustamante commented Feb 17, 2023

Reason

As part of the implementation of the export to OCI Layout feature the RFC defines the
analyzed.toml file will be updated to include the reference format in case of layout is being used.

[image]
  reference = "<image reference>"

[run-image]
  reference = "<image reference>"

[previous-image]
  reference = "<image reference>"

Where

  • [image|run-image|previos-image].reference MUST be either:
    • A digest reference to an image in an OCI registry
    • The ID of an image in a docker daemon
    • The path to an image in OCI layout format

We required to translate an image reference with the format [path]@[digest] and map it to an Identifier. Because imgUtil defines the layout.Identifier() implementation the best place to offer this utility method is on imgUtil repository.

Expected behavior

Considering an image identifier with the format [path]@[digest]
Expose a method like:

classDiagram

class layout {
   ParseIdentifier(identifier string) (Identifier, error) 
}
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant