blob: d948d8f3064ff095793ba6e5f32bb6e8a91f0f8d [file] [log] [blame]
package policies
import (
"github.com/rackspace/gophercloud"
"github.com/rackspace/gophercloud/pagination"
)
// List returns all scaling policies for a group.
func List(client *gophercloud.ServiceClient, groupID string) pagination.Pager {
url := listURL(client, groupID)
createPageFn := func(r pagination.PageResult) pagination.Page {
return PolicyPage{pagination.SinglePageBase(r)}
}
return pagination.NewPager(client, url, createPageFn)
}