func (client *Client) RenameObjectWithContext(ctx context.Context, bucketName, sourceObjectName, targetObjectName string) error {
	req := &clientRequest{
		BucketName:         bucketName,
		ObjectName:         sourceObjectName,
		QueryHeaderOptions: renameObjectOption{targetObjectName},
		Method:             HTTPPut,
	}

	resp, err := client.do(ctx, req)
	if err != nil {
		return err
	}
	defer resp.Body.Close()

	return nil
}
// RenameObjectWithContext renames sourceObjectName in bucketName to targetObjectName with context controlling
RenameObjectWithContext renames sourceObjectName in bucketName to targetObjectName with context controlling
// RenameObjectWithContext renames sourceObjectName in bucketName to targetObjectName with context controlling
func (client *Client) RenameObjectWithContext(ctx context.Context, bucketName, sourceObjectName, targetObjectName string) error {
	req := &clientRequest{
		BucketName:         bucketName,
		ObjectName:         sourceObjectName,
		QueryHeaderOptions: renameObjectOption{targetObjectName},
		Method:             HTTPPut,
	}
	resp, err := client.do(ctx, req)
	if err != nil {
		return err
	}
	defer resp.Body.Close()
	return nil
}
func ( client * Client ) RenameObjectWithContext ( ctx context . Context , bucketName , sourceObjectName , targetObjectName string ) error { req := & clientRequest { BucketName : bucketName , ObjectName : sourceObjectName , QueryHeaderOptions : renameObjectOption { targetObjectName } , Method : HTTPPut , } resp , err := client . do ( ctx , req ) if err != nil { return err } defer resp . Body . Close ( ) return nil }
RenameObjectWithContext renames sourceObjectName in bucketName to targetObjectName with context controlling
RenameObjectWithContext renames sourceObjectName in bucketName to targetObjectName with context controlling