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

move supporting code into separate packages #193

Merged
merged 21 commits into from
Jun 4, 2020
Merged

move supporting code into separate packages #193

merged 21 commits into from
Jun 4, 2020

Commits on Jun 1, 2020

  1. first pass packagizing ghw

    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.
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    344e547 View commit details
    Browse the repository at this point in the history
  2. 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.
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    e6fbcc2 View commit details
    Browse the repository at this point in the history
  3. move Linux path construction into separate pkg

    Moves all the linux path construction (obeying Context.Chroot) to a new
    `ghw/pkg/linuxpath` package.
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    2df38d9 View commit details
    Browse the repository at this point in the history
  4. 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.
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    663d287 View commit details
    Browse the repository at this point in the history
  5. move JSON/YAML utility code into pkg/marshal

    Moves the SafeYAML and SafeJSON functions into a `ghw/pkg/marshal`
    package.
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    a2bb8ca View commit details
    Browse the repository at this point in the history
  6. mv units.go into pkg/unitutil

    Moves the unitWithString function to a `ghw/pkg/unitutil` package and
    renames it `AmountString`
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    9534a80 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    313aea9 View commit details
    Browse the repository at this point in the history
  8. move CPU ihto pkg/cpu

    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.
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    ccbb2c5 View commit details
    Browse the repository at this point in the history
  9. move memory functions into pkg/memory

    Moves Memory(), CachesForNode() into `ghw/pkg/memory`
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    11f3f38 View commit details
    Browse the repository at this point in the history
  10. move block functionality into pkg/block

    Moves all functionality related to block device, disk and partition
    discovery into a separate `ghw/pkg/block` package.
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    a434f26 View commit details
    Browse the repository at this point in the history
  11. move net functionality into pkg/net

    Continues the rounds of package separation, this time moving all
    network-related functionality into `ghw/pkg/net`
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    11d7133 View commit details
    Browse the repository at this point in the history
  12. Move DMI utility to pkg/linuxdmi

    Moves the dmi_linux.go:dmiItem() code into `ghw/pkg/linuxdmi:Item()`
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    2a8713c View commit details
    Browse the repository at this point in the history
  13. move BIOS functionality into pkg/bios

    Moves all BIOS discovery into `ghw/pkg/bios`
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    f9188ac View commit details
    Browse the repository at this point in the history
  14. move chassis functionality into pkg/chassis

    Moves all chassis discovery functionality into `ghw/pkg/chassis`
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    8e3b2a4 View commit details
    Browse the repository at this point in the history
  15. move baseboard functionality to pkg/baseboard

    Moves baseboard discovery functionality to `ghw/pkg/baseboard`
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    e3c188d View commit details
    Browse the repository at this point in the history
  16. 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.
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    8a100ff View commit details
    Browse the repository at this point in the history
  17. move pci functionality into pkg/pci

    Moves PCI discovery functionality into `ghw/pkg/pci`
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    ef73cbd View commit details
    Browse the repository at this point in the history
  18. move product functionality into pkg/product

    Moves product discovery functionality into `ghw/pkg/product`
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    3fb4746 View commit details
    Browse the repository at this point in the history
  19. move GPU functionality into pkg/gpu

    Moves GPU discovery functionality into `ghw/pkg/gpu`
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    7a28b12 View commit details
    Browse the repository at this point in the history
  20. final cleanup of root source files

    Renames main.go -> host.go
    Deletes an old bios_linux.go that somehow snuck in.
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    c36d042 View commit details
    Browse the repository at this point in the history
  21. remove support for Go < 1.13 and dep

    With `ghw` v1.0, support for `dep` and Go <1.13 is removed.
    jaypipes committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    e67b230 View commit details
    Browse the repository at this point in the history