// ListBucketsWithContext list all buckets with context controlling
ListBucketsWithContext list all buckets with context controlling
// ListBucketsWithContext list all buckets with context controlling
func (client *Client) ListBucketsWithContext(ctx context.Context) (*ListBucketsResponse, error) {
	result := &ListBucketsResponse{}
	req := &clientRequest{
		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 ) ListBucketsWithContext ( ctx context . Context ) ( * ListBucketsResponse , error ) { result := & ListBucketsResponse { } req := & clientRequest { Method : HTTPGet , Result : result , } resp , err := client . do ( ctx , req ) if err != nil { return nil , err } defer resp . Body . Close ( ) return result , err }
ListBucketsWithContext list all buckets with context controlling
ListBucketsWithContext list all buckets with context controlling