-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
c5c1838
to
c495527
Compare
c495527
to
cbc6e8a
Compare
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.
Looks good so far. A few comments, some minor changes requested. You can go ahead and nolint:gocritic
the lint failure.
return client, nil | ||
} | ||
|
||
func (c componentInventoryClient) GetServerComponents(ctx context.Context, serverID string) (ServerComponents, error) { |
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.
This is fine for the current iteration. I wonder if there is something in bmc-toolbox/common
that would be better than rivets
. I'll look into that today.
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.
Thanks!
It looks common.Device
can also fit here. Do we want to discard rivets
in favor of bmc-toolbox/common
?
If this is the case, I will add an util library for converting fleetdb.ServerComponent
to common.Device
7f91e28
to
a39b5ce
Compare
a39b5ce
to
4dc9d93
Compare
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.
Awesome. Let's keep moving!
@@ -52,6 +52,11 @@ load-sandbox: | |||
@cp helm/configmap.yaml "${SANDBOX_TEMPLATE_DIR}/cis-configmap.yaml" | |||
@echo "Be sure to do a helm (re)load to get the service started" | |||
|
|||
## generate mock client | |||
gen-client-mock: |
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.
💯
* add README * add a client API to fetch server components * add inventory api placeholder functions Add in API endpoints and the beginning of handler functions for converting incoming common.Device objects into FleetDB server records. * Initialize the client library (#6) * initialize the client library * refactor minor * internal fleetdb outline (#9) * Move types ownership to alloy (#11) * fix panic when there's no response (#12) * Convert Alloy Data to Rivets.Server (#16) * type converter * typo * Forward Inventory to FleetDB (#19) * forward inventory to fleetdb * cleanup code * rebase (#20) * use bmc-toolbox component types (#21) * update dependencies --------- Co-authored-by: Alva Zhang <[email protected]>
Initialize the client library interface