github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/identity/v3/catalog/requests.go (about)

     1  package catalog
     2  
     3  import (
     4  	"github.com/huaweicloud/golangsdk"
     5  	"github.com/huaweicloud/golangsdk/pagination"
     6  )
     7  
     8  // List enumerates the services available to a specific user.
     9  func List(client *golangsdk.ServiceClient) pagination.Pager {
    10  	url := listURL(client)
    11  	return pagination.NewPager(client, url, func(r pagination.PageResult) pagination.Page {
    12  		return CatalogPage{pagination.LinkedPageBase{PageResult: r}}
    13  	})
    14  }