{"action":"closed","issue":{"url":"https://api.github.com/repos/rackspace/gophercloud/issues/298","labels_url":"https://api.github.com/repos/rackspace/gophercloud/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/rackspace/gophercloud/issues/298/comments","events_url":"https://api.github.com/repos/rackspace/gophercloud/issues/298/events","html_url":"https://github.com/rackspace/gophercloud/issues/298","id":47425454,"number":298,"title":"Pagination: Get all the things","user":{"login":"pquerna","id":110123,"avatar_url":"https://avatars.githubusercontent.com/u/110123?v=3","gravatar_id":"","url":"https://api.github.com/users/pquerna","html_url":"https://github.com/pquerna","followers_url":"https://api.github.com/users/pquerna/followers","following_url":"https://api.github.com/users/pquerna/following{/other_user}","gists_url":"https://api.github.com/users/pquerna/gists{/gist_id}","starred_url":"https://api.github.com/users/pquerna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pquerna/subscriptions","organizations_url":"https://api.github.com/users/pquerna/orgs","repos_url":"https://api.github.com/users/pquerna/repos","events_url":"https://api.github.com/users/pquerna/events{/privacy}","received_events_url":"https://api.github.com/users/pquerna/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jrperritt","id":1733222,"avatar_url":"https://avatars.githubusercontent.com/u/1733222?v=3","gravatar_id":"","url":"https://api.github.com/users/jrperritt","html_url":"https://github.com/jrperritt","followers_url":"https://api.github.com/users/jrperritt/followers","following_url":"https://api.github.com/users/jrperritt/following{/other_user}","gists_url":"https://api.github.com/users/jrperritt/gists{/gist_id}","starred_url":"https://api.github.com/users/jrperritt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrperritt/subscriptions","organizations_url":"https://api.github.com/users/jrperritt/orgs","repos_url":"https://api.github.com/users/jrperritt/repos","events_url":"https://api.github.com/users/jrperritt/events{/privacy}","received_events_url":"https://api.github.com/users/jrperritt/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2014-10-31T17:54:51Z","updated_at":"2015-02-20T14:17:58Z","closed_at":"2015-02-20T14:17:58Z","body":"Proposed Addition to pager.Pagination:\r\n\r\n```go\r\n\r\nimport (\r\n\tidentityRoles \"github.com/rackspace/gophercloud/rackspace/identity/v2/roles\"\r\n\tidentAdminRoles \"github.com/rackspace/gophercloud/openstack/identity/v2/extensions/admin/roles\"\r\n)\r\n\r\npager := identityRoles.List(sc)\r\n\r\np, err := pager.AllPages()\r\nif err != nil {\r\n   return err\r\n}\r\n\r\nroles, err := identAdminRoles.ExtractRoles(p)\r\nif err != nil {\r\n   return err\r\n}\r\n\r\nprintln(\"Got em all\")\r\n```"}}