// WriteSignedImage writes the image and all related signatures, attestations and attachments
WriteSignedImage writes the image and all related signatures, attestations and attachments
// WriteSignedImage writes the image and all related signatures attestations and attachments
func WriteSignedImage(path string, si oci.SignedImage) error {
	layoutPath, err := layout.Write(path, empty.Index)
	if err != nil {
		return err
	}
	if err := appendImage(layoutPath, si, imageAnnotation); err != nil {
		return errors.Wrap(err, "appending signed image")
	}
	return writeSignedEntity(layoutPath, si)
}
func WriteSignedImage ( path string , si oci . SignedImage ) error { layoutPath , err := layout . Write ( path , empty . Index ) if err != nil { return err } if err := appendImage ( layoutPath , si , imageAnnotation ) ; err != nil { return errors . Wrap ( err , " " ) } return writeSignedEntity ( layoutPath , si ) }
WriteSignedImage writes the image and all related signatures, attestations and attachments
WriteSignedImage writes the image and all related signatures attestations and attachments
// First, write an empty index // write the image