-
Notifications
You must be signed in to change notification settings - Fork 46
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
feat: VRF support #377
feat: VRF support #377
Conversation
"strconv" | ||
"strings" | ||
|
||
metal "github.com/equinix-labs/metal-go/metal/v1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
goimports format sequence we can follow - 1st block go runtime imports, 2nd block 3rd party imports, 3rd block local packages import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In other words: goimports -l "github.com/equinix-labs/metal-go" -w .
var vrfs []metal.Vrf | ||
var err error | ||
if vrfID != "" { | ||
vrf, _, err = c.Service.FindVrfById(context.Background(), vrfID).Include(c.Servicer.Includes(inc)).Exclude(c.Servicer.Excludes(exc)).Execute() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets refactor these cases into individual functions - retrieveVrfByID()
and retrieveVrfByProject()
Test Results:
|
Fixes #268
Implements the following: