mirror of
https://github.com/containers/skopeo.git
synced 2025-06-28 07:37:41 +00:00
Update for changed types.Image/types.ImageCloser
This commit is contained in:
parent
27f320b27f
commit
0543f551c7
@ -59,8 +59,8 @@ func getDockerAuth(creds string) (*types.DockerAuthConfig, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// parseImage converts image URL-like string to an initialized handler for that image.
|
// parseImage converts image URL-like string to an initialized handler for that image.
|
||||||
// The caller must call .Close() on the returned Image.
|
// The caller must call .Close() on the returned ImageCloser.
|
||||||
func parseImage(c *cli.Context) (types.Image, error) {
|
func parseImage(c *cli.Context) (types.ImageCloser, error) {
|
||||||
imgName := c.Args().First()
|
imgName := c.Args().First()
|
||||||
ref, err := alltransports.ParseImageName(imgName)
|
ref, err := alltransports.ParseImageName(imgName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user