func createOCIRef(image string) (tempDirOCIRef, error) {
	dir, err := ioutil.TempDir(tmpdir.TemporaryDirectoryForBigFiles(), "oci")
	if err != nil {
		return tempDirOCIRef{}, errors.Wrapf(err, "error creating temp directory")
	}
	ociRef, err := ocilayout.NewReference(dir, image)
	if err != nil {
		return tempDirOCIRef{}, err
	}

	tempDirRef := tempDirOCIRef{tempDirectory: dir, ociRefExtracted: ociRef}
	return tempDirRef, nil
}
func createOCIRef(image string) (tempDirOCIRef, error) {
	dir, err := ioutil.TempDir(tmpdir.TemporaryDirectoryForBigFiles(), "oci")
	if err != nil {
		return tempDirOCIRef{}, errors.Wrapf(err, "error creating temp directory")
	}
	ociRef, err := ocilayout.NewReference(dir, image)
	if err != nil {
		return tempDirOCIRef{}, err
	}

	tempDirRef := tempDirOCIRef{tempDirectory: dir, ociRefExtracted: ociRef}
	return tempDirRef, nil
}
func createOCIRef ( image string ) ( tempDirOCIRef , error ) { dir , err := ioutil . TempDir ( tmpdir . TemporaryDirectoryForBigFiles ( ) , " " ) if err != nil { return tempDirOCIRef { } , errors . Wrapf ( err , " " ) } ociRef , err := ocilayout . NewReference ( dir , image ) if err != nil { return tempDirOCIRef { } , err } tempDirRef := tempDirOCIRef { tempDirectory : dir , ociRefExtracted : ociRef } return tempDirRef , nil }
// createOCIRef creates the oci reference of the image
createOCIRef creates the oci reference of the image