func (client *Client) GetBucketInfoWithContext(ctx context.Context, bucketName string) (*GetBucketInfoResponse, error) {
	result := &GetBucketInfoResponse{}
	req := &clientRequest{
		BucketName: bucketName,
		Method:     HTTPGet,
		Result:     result,
	}

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

	return result, err
}
// GetBucketInfoWithContext get information of bucket with context controlling
GetBucketInfoWithContext get information of bucket with context controlling
// GetBucketInfoWithContext get information of bucket with context controlling
func (client *Client) GetBucketInfoWithContext(ctx context.Context, bucketName string) (*GetBucketInfoResponse, error) {
	result := &GetBucketInfoResponse{}
	req := &clientRequest{
		BucketName: bucketName,
		Method:     HTTPGet,
		Result:     result,
	}
	resp, err := client.do(ctx, req)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	return result, err
}
func ( client * Client ) GetBucketInfoWithContext ( ctx context . Context , bucketName string ) ( * GetBucketInfoResponse , error ) { result := & GetBucketInfoResponse { } req := & clientRequest { BucketName : bucketName , Method : HTTPGet , Result : result , } resp , err := client . do ( ctx , req ) if err != nil { return nil , err } defer resp . Body . Close ( ) return result , err }
GetBucketInfoWithContext get information of bucket with context controlling
GetBucketInfoWithContext get information of bucket with context controlling