Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Updated metal-go client for sub-commands gateways #289

Closed
wants to merge 1 commit into from

Conversation

codinja1188
Copy link
Contributor

Breakout from #270

What this PR does / why we need it:

This PR replaces packngo with metal-go for all interactions with the Equinix Metal API specifically for gateways sub commands

DISCUSSION POINTS:

@@ -145,3 +145,22 @@ func GetProjectDevices(s metal.ApiFindProjectDevicesRequest) ([]metal.Device, er
return devices, nil
}
}

func GetMetalGatewaysByProject(s metal.ApiFindMetalGatewaysByProjectRequest) ([]metal.MetalGatewayListMetalGatewaysInner, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can get pagination for free now from metal-go

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated code

@cprivitere
Copy link
Contributor

Needs update for new pagination and rebase.

@codinja1188 codinja1188 temporarily deployed to external October 11, 2023 15:53 — with GitHub Actions Inactive
@codinja1188 codinja1188 changed the title Updated metal-go client for sub-commands gateways fix: Updated metal-go client for sub-commands gateways Oct 11, 2023
@aayushrangwala
Copy link
Contributor

@Vasubabu Please decline this PR in the favour of #376

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants