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

Common types #47

Merged
merged 3 commits into from
Jun 17, 2022
Merged

Common types #47

merged 3 commits into from
Jun 17, 2022

Conversation

joelrebel
Copy link
Member

@joelrebel joelrebel commented Jun 16, 2022

What does this PR do

  1. Switch to common.Device type and constants from the common pacakge.

The common.Device type is provided by https://github.com/bmc-toolbox/common
the ironlib device and components are now of the common.Device underlying type.

The changes included updates all Device, Component types and Slug
constants to work with the common types and constants.

Any tooling that now builds on top ironlib (and bmclib)
can work with a consistent (common) set of Device, Component, Firmware types and
Slug constants. This means theres less work needed to be done to transform
between types from both the libraries, and compare slugs/constants.

  1. Update golang ci-linter to 1.46.2

The common.Device type is provided by github.com/bmc-toolbox/common
the ironlib device and components are now of the common.Device underlying type.

The changes included updates all Device, Component types and Slug
constants to work with the common types and constants.

Any tooling that now builds on top ironlib, bmclib
can work with a consistent set of Device, Component, Firmware types and
Slug constants. This means theres less work need to be done to transform
between types from both the libraries, and compare slugs/constants.
Copy link
Contributor

@diogomatsubara diogomatsubara left a comment

Choose a reason for hiding this comment

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

Thanks for the work on this.

I made some comments mainly on documentation that needs update after changing the methods signatures.

Also it seems we can get rid of the model.Device from ironlib and use common.Device directly.

model/device.go Show resolved Hide resolved
utils/dmidecode.go Outdated Show resolved Hide resolved
utils/mlxup.go Outdated Show resolved Hide resolved
utils/msecli.go Outdated Show resolved Hide resolved
utils/nvme.go Show resolved Hide resolved
utils/smc_ipmicfg.go Outdated Show resolved Hide resolved
utils/storecli.go Outdated Show resolved Hide resolved
@joelrebel joelrebel merged commit 408ed07 into main Jun 17, 2022
@joelrebel joelrebel deleted the common-types branch June 17, 2022 16:43
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.

2 participants