github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/rds/v3/datastores/requests.go (about) 1 package datastores 2 3 import ( 4 "github.com/huaweicloud/golangsdk" 5 "github.com/huaweicloud/golangsdk/pagination" 6 ) 7 8 func List(client *golangsdk.ServiceClient, databasesname string) pagination.Pager { 9 url := listURL(client, databasesname) 10 11 pageRdsList := pagination.NewPager(client, url, func(r pagination.PageResult) pagination.Page { 12 return DataStoresPage{pagination.SinglePageBase(r)} 13 }) 14 15 rdsheader := map[string]string{"Content-Type": "application/json"} 16 pageRdsList.Headers = rdsheader 17 return pageRdsList 18 }