github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/extensions/services/requests.go (about)

     1  package services
     2  
     3  import (
     4  	"github.com/huaweicloud/golangsdk"
     5  	"github.com/huaweicloud/golangsdk/pagination"
     6  )
     7  
     8  // List makes a request against the API to list services.
     9  func List(client *golangsdk.ServiceClient) pagination.Pager {
    10  	return pagination.NewPager(client, listURL(client), func(r pagination.PageResult) pagination.Page {
    11  		return ServicePage{pagination.SinglePageBase(r)}
    12  	})
    13  }