func (c *Client) ResumeUploadResourceWithRevision(
	uploadId string,
	id *charm.URL,
	resourceName string,
	rev int,
	path string,
	content io.ReaderAt,
	size int64,
	progress Progress,
) (revision int, err error) {
	if progress == nil {
		progress = noProgress{}
	}
	info := &uploadInfo{
		id:           id,
		resourceName: resourceName,
		revision:     rev,
		path:         path,
		size:         size,
		progress:     progress,
		content:      content,
	}
	if size >= c.minMultipartUploadSize {
		return c.uploadMultipartResource(uploadId, info)
	}
	return c.uploadSinglePartResource(info)
}
// ResumeUploadResource is like UploadResource except that if uploadId is non-empty,
// it specifies the id of an existing upload to resume; if an upload with this ID is not
// found, an error with an ErrUploadNotFound cause is returned.
ResumeUploadResource is like UploadResource except that if uploadId is non-empty,
it specifies the id of an existing upload to resume; if an upload with this ID is not
found, an error with an ErrUploadNotFound cause is returned.
// ResumeUploadResource is like UploadResource except that if uploadId is non - empty // it specifies the id of an existing upload to resume ; if an upload with this ID is not // found an error with an ErrUploadNotFound cause is returned .
func (c *Client) ResumeUploadResourceWithRevision(
	uploadId string,
	id *charm.URL,
	resourceName string,
	rev int,
	path string,
	content io.ReaderAt,
	size int64,
	progress Progress,
) (revision int, err error) {
	if progress == nil {
		progress = noProgress{}
	}
	info := &uploadInfo{
		id:           id,
		resourceName: resourceName,
		revision:     rev,
		path:         path,
		size:         size,
		progress:     progress,
		content:      content,
	}
	if size >= c.minMultipartUploadSize {
		return c.uploadMultipartResource(uploadId, info)
	}
	return c.uploadSinglePartResource(info)
}
func ( c * Client ) ResumeUploadResourceWithRevision ( uploadId string , id * charm . URL , resourceName string , rev int , path string , content io . ReaderAt , size int64 , progress Progress , ) ( revision int , err error ) { if progress == nil { progress = noProgress { } } info := & uploadInfo { id : id , resourceName : resourceName , revision : rev , path : path , size : size , progress : progress , content : content , } if size >= c . minMultipartUploadSize { return c . uploadMultipartResource ( uploadId , info ) } return c . uploadSinglePartResource ( info ) }
ResumeUploadResource is like UploadResource except that if uploadId is non-empty,
it specifies the id of an existing upload to resume; if an upload with this ID is not
found, an error with an ErrUploadNotFound cause is returned.
ResumeUploadResource is like UploadResource except that if uploadId is non - empty it specifies the id of an existing upload to resume ; if an upload with this ID is not found an error with an ErrUploadNotFound cause is returned .