-
Notifications
You must be signed in to change notification settings - Fork 178
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
move supporting code into separate packages #193
Commits on Jun 1, 2020
-
The main directory of `ghw` is getting a little long in the tooth, so I'm going to be moving things into their own packages. This first pass puts the (previously private, now public) Context and Option structs into their own packages and updates all the primary call logic to pass in a Context object instead of having methods on the private context struct.
Configuration menu - View commit details
-
Copy full SHA for 344e547 - Browse repository at this point
Copy the full SHA 344e547View commit details -
remove all pre-1.0 deprecated fields/funcs
We're prepping for the 1.0 release and so goes the fields and functions that were marked as DEPRECATED over two years ago and warnings made that 1.0 release would remove them.
Configuration menu - View commit details
-
Copy full SHA for e6fbcc2 - Browse repository at this point
Copy the full SHA e6fbcc2View commit details -
move Linux path construction into separate pkg
Moves all the linux path construction (obeying Context.Chroot) to a new `ghw/pkg/linuxpath` package.
Configuration menu - View commit details
-
Copy full SHA for 2df38d9 - Browse repository at this point
Copy the full SHA 2df38d9View commit details -
move utility code into pkg/util
Continuing to clean up the main directory, this patch moves utility code like Warn(), SafeCloser() etc into a `ghw/pkg/util` package.
Configuration menu - View commit details
-
Copy full SHA for 663d287 - Browse repository at this point
Copy the full SHA 663d287View commit details -
move JSON/YAML utility code into pkg/marshal
Moves the SafeYAML and SafeJSON functions into a `ghw/pkg/marshal` package.
Configuration menu - View commit details
-
Copy full SHA for a2bb8ca - Browse repository at this point
Copy the full SHA a2bb8caView commit details -
Moves the unitWithString function to a `ghw/pkg/unitutil` package and renames it `AmountString`
Configuration menu - View commit details
-
Copy full SHA for 9534a80 - Browse repository at this point
Copy the full SHA 9534a80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 313aea9 - Browse repository at this point
Copy the full SHA 313aea9View commit details -
Moves all CPU functionality into `ghw/pkg/cpu` and uses aliasing in the top-level directory to keep backwards compatibiliy with the `ghw.CPU()` function.
Configuration menu - View commit details
-
Copy full SHA for ccbb2c5 - Browse repository at this point
Copy the full SHA ccbb2c5View commit details -
move memory functions into pkg/memory
Moves Memory(), CachesForNode() into `ghw/pkg/memory`
Configuration menu - View commit details
-
Copy full SHA for 11f3f38 - Browse repository at this point
Copy the full SHA 11f3f38View commit details -
move block functionality into pkg/block
Moves all functionality related to block device, disk and partition discovery into a separate `ghw/pkg/block` package.
Configuration menu - View commit details
-
Copy full SHA for a434f26 - Browse repository at this point
Copy the full SHA a434f26View commit details -
move net functionality into pkg/net
Continues the rounds of package separation, this time moving all network-related functionality into `ghw/pkg/net`
Configuration menu - View commit details
-
Copy full SHA for 11d7133 - Browse repository at this point
Copy the full SHA 11d7133View commit details -
Move DMI utility to pkg/linuxdmi
Moves the dmi_linux.go:dmiItem() code into `ghw/pkg/linuxdmi:Item()`
Configuration menu - View commit details
-
Copy full SHA for 2a8713c - Browse repository at this point
Copy the full SHA 2a8713cView commit details -
move BIOS functionality into pkg/bios
Moves all BIOS discovery into `ghw/pkg/bios`
Configuration menu - View commit details
-
Copy full SHA for f9188ac - Browse repository at this point
Copy the full SHA f9188acView commit details -
move chassis functionality into pkg/chassis
Moves all chassis discovery functionality into `ghw/pkg/chassis`
Configuration menu - View commit details
-
Copy full SHA for 8e3b2a4 - Browse repository at this point
Copy the full SHA 8e3b2a4View commit details -
move baseboard functionality to pkg/baseboard
Moves baseboard discovery functionality to `ghw/pkg/baseboard`
Configuration menu - View commit details
-
Copy full SHA for e3c188d - Browse repository at this point
Copy the full SHA e3c188dView commit details -
move topology functionality into pkg/topology
Moves all topology discovery functionality into `ghw/pkg/topology` including housing the architecture constants in there and aliasing them into the main ghw package namespace.
Configuration menu - View commit details
-
Copy full SHA for 8a100ff - Browse repository at this point
Copy the full SHA 8a100ffView commit details -
move pci functionality into pkg/pci
Moves PCI discovery functionality into `ghw/pkg/pci`
Configuration menu - View commit details
-
Copy full SHA for ef73cbd - Browse repository at this point
Copy the full SHA ef73cbdView commit details -
move product functionality into pkg/product
Moves product discovery functionality into `ghw/pkg/product`
Configuration menu - View commit details
-
Copy full SHA for 3fb4746 - Browse repository at this point
Copy the full SHA 3fb4746View commit details -
move GPU functionality into pkg/gpu
Moves GPU discovery functionality into `ghw/pkg/gpu`
Configuration menu - View commit details
-
Copy full SHA for 7a28b12 - Browse repository at this point
Copy the full SHA 7a28b12View commit details -
final cleanup of root source files
Renames main.go -> host.go Deletes an old bios_linux.go that somehow snuck in.
Configuration menu - View commit details
-
Copy full SHA for c36d042 - Browse repository at this point
Copy the full SHA c36d042View commit details -
remove support for Go < 1.13 and dep
With `ghw` v1.0, support for `dep` and Go <1.13 is removed.
Configuration menu - View commit details
-
Copy full SHA for e67b230 - Browse repository at this point
Copy the full SHA e67b230View commit details