buildpacks / imgutil

Helpful utilities for working with images
Apache License 2.0
24 stars 41 forks source link

Expose method to parse a layout image identifier #180

Closed jjbustamante closed 1 year ago

jjbustamante commented 1 year ago

This pull request exposes a method to parse an string representation of the layout.Identifier()

Considering an image identifier with the format [path]@[digest] a new method is expose to return an layout.Identifier

classDiagram

class layout {
   ParseIdentifier(identifier string) (Identifier, error) 
}

Fixes #179