diff --git a/fetcher/floatingip.go b/fetcher/floatingip.go index 5cbeafd..3c6ee30 100644 --- a/fetcher/floatingip.go +++ b/fetcher/floatingip.go @@ -16,7 +16,7 @@ type floatingIP struct { } func (floatingIP floatingIP) Run(client *hcloud.Client) error { - floatingIPs, _, err := client.FloatingIP.List(ctx, hcloud.FloatingIPListOpts{}) + floatingIPs, err := client.FloatingIP.All(ctx) if err != nil { return err } diff --git a/fetcher/loadbalancer.go b/fetcher/loadbalancer.go index 414141c..99dea69 100644 --- a/fetcher/loadbalancer.go +++ b/fetcher/loadbalancer.go @@ -18,7 +18,7 @@ type loadBalancer struct { } func (loadBalancer loadBalancer) Run(client *hcloud.Client) error { - loadBalancers, _, err := client.LoadBalancer.List(ctx, hcloud.LoadBalancerListOpts{}) + loadBalancers, err := client.LoadBalancer.All(ctx) if err != nil { return err } diff --git a/fetcher/loadbalancer_traffic.go b/fetcher/loadbalancer_traffic.go index 516fe9c..08d4448 100644 --- a/fetcher/loadbalancer_traffic.go +++ b/fetcher/loadbalancer_traffic.go @@ -18,7 +18,7 @@ type loadbalancerTraffic struct { } func (loadbalancerTraffic loadbalancerTraffic) Run(client *hcloud.Client) error { - loadBalancers, _, err := client.LoadBalancer.List(ctx, hcloud.LoadBalancerListOpts{}) + loadBalancers, err := client.LoadBalancer.All(ctx) if err != nil { return err } diff --git a/fetcher/primaryip.go b/fetcher/primaryip.go index bee2bb4..9b3acff 100644 --- a/fetcher/primaryip.go +++ b/fetcher/primaryip.go @@ -16,7 +16,7 @@ type primaryIP struct { } func (primaryIP primaryIP) Run(client *hcloud.Client) error { - primaryIPs, _, err := client.PrimaryIP.List(ctx, hcloud.PrimaryIPListOpts{}) + primaryIPs, err := client.PrimaryIP.All(ctx) if err != nil { return err } diff --git a/fetcher/server.go b/fetcher/server.go index cfb6ff0..bace031 100644 --- a/fetcher/server.go +++ b/fetcher/server.go @@ -18,7 +18,7 @@ type server struct { } func (server server) Run(client *hcloud.Client) error { - servers, _, err := client.Server.List(ctx, hcloud.ServerListOpts{}) + servers, err := client.Server.All(ctx) if err != nil { return err } diff --git a/fetcher/server_backups.go b/fetcher/server_backups.go index 3260a8d..18187bc 100644 --- a/fetcher/server_backups.go +++ b/fetcher/server_backups.go @@ -18,7 +18,7 @@ type serverBackup struct { } func (serverBackup serverBackup) Run(client *hcloud.Client) error { - servers, _, err := client.Server.List(ctx, hcloud.ServerListOpts{}) + servers, err := client.Server.All(ctx) if err != nil { return err } diff --git a/fetcher/server_traffic.go b/fetcher/server_traffic.go index 58e3d32..dc183f9 100644 --- a/fetcher/server_traffic.go +++ b/fetcher/server_traffic.go @@ -18,7 +18,7 @@ type serverTraffic struct { } func (serverTraffic serverTraffic) Run(client *hcloud.Client) error { - servers, _, err := client.Server.List(ctx, hcloud.ServerListOpts{}) + servers, err := client.Server.All(ctx) if err != nil { return err } diff --git a/fetcher/snapshot.go b/fetcher/snapshot.go index 141f5be..a97c0f7 100644 --- a/fetcher/snapshot.go +++ b/fetcher/snapshot.go @@ -16,7 +16,7 @@ type snapshot struct { } func (snapshot snapshot) Run(client *hcloud.Client) error { - images, _, err := client.Image.List(ctx, hcloud.ImageListOpts{}) + images, err := client.Image.All(ctx) if err != nil { return err } diff --git a/fetcher/volume.go b/fetcher/volume.go index 1f38c0f..a6bf099 100644 --- a/fetcher/volume.go +++ b/fetcher/volume.go @@ -18,7 +18,7 @@ type volume struct { } func (volume volume) Run(client *hcloud.Client) error { - volumes, _, err := client.Volume.List(ctx, hcloud.VolumeListOpts{}) + volumes, err := client.Volume.All(ctx) if err != nil { return err }