github.com/vnpaycloud-console/gophercloud/v2@v2.0.5/openstack/blockstorage/v3/limits/requests.go (about)

     1  package limits
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/vnpaycloud-console/gophercloud/v2"
     7  )
     8  
     9  // Get returns the limits about the currently scoped tenant.
    10  func Get(ctx context.Context, client *gophercloud.ServiceClient) (r GetResult) {
    11  	url := getURL(client)
    12  	resp, err := client.Get(ctx, url, &r.Body, nil)
    13  	_, r.Header, r.Err = gophercloud.ParseResponse(resp, err)
    14  	return
    15  }