func (c *DownloadClient) DownloadAndReadBundle(ctx context.Context, resourceURL *url.URL, archivePath string, options ...DownloadOption) (*charm.BundleArchive, error) {
	err := c.Download(ctx, resourceURL, archivePath, options...)
	if err != nil {
		return nil, errors.Trace(err)
	}

	return charm.ReadBundleArchive(archivePath)
}
// DownloadAndReadBundle returns a bundle archive retrieved from the given URL.
DownloadAndReadBundle returns a bundle archive retrieved from the given URL.
// DownloadAndReadBundle returns a bundle archive retrieved from the given URL .
func (c *DownloadClient) DownloadAndReadBundle(ctx context.Context, resourceURL *url.URL, archivePath string, options ...DownloadOption) (*charm.BundleArchive, error) {
	err := c.Download(ctx, resourceURL, archivePath, options...)
	if err != nil {
		return nil, errors.Trace(err)
	}
	return charm.ReadBundleArchive(archivePath)
}
func ( c * DownloadClient ) DownloadAndReadBundle ( ctx context . Context , resourceURL * url . URL , archivePath string , options ... DownloadOption ) ( * charm . BundleArchive , error ) { err := c . Download ( ctx , resourceURL , archivePath , options ... ) if err != nil { return nil , errors . Trace ( err ) } return charm . ReadBundleArchive ( archivePath ) }
DownloadAndReadBundle returns a bundle archive retrieved from the given URL.
DownloadAndReadBundle returns a bundle archive retrieved from the given URL .