equinixmetal-archive / packngo

[Deprecated] A Golang client for the Equinix Metal API. (Packet is now Equinix Metal)
https://deploy.equinix.com/labs/equinix-sdk-go/
Other
79 stars 60 forks source link

handle pagination in IP list responses #352

Open displague opened 1 year ago

displague commented 1 year ago

Fixes #334

How was this tested:

# clone metal-cli along side packngo
# in metal-cli modify go.mod, add:
# replace github.com/packethost/packngo => ../packngo
# run against a project with > 10 ips:
PACKNGO_DEBUG=1 go run ./cmd/metal/ ips get --filter=per_page=10 
# see the paginated requests, see that the returned IPs are unique and complete