blob: d4bdb981319a14244fcbe66d982b2f28d3e0f6c0 [file] [log] [blame]
package vips
import (
"github.com/rackspace/gophercloud"
"github.com/rackspace/gophercloud/pagination"
)
// List is the operation responsible for returning a paginated collection of
// load balancer virtual IP addresses.
func List(client *gophercloud.ServiceClient, loadBalancerID int) pagination.Pager {
url := rootURL(client, loadBalancerID)
return pagination.NewPager(client, url, func(r pagination.PageResult) pagination.Page {
return VIPPage{pagination.SinglePageBase(r)}
})
}