You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
scrutiny/collector/pkg/detect
Jason Kulatunga 999c12748c
added a way to retrieve raw udev data. Can be used to retrieve disk label, UUID and "disk/by-id/*" device info.
3 years ago
..
testdata adding tests for Detect struct in collector. Adding ability to mock out exec.Command calls. 3 years ago
detect.go adding tests for Detect struct in collector. Adding ability to mock out exec.Command calls. 3 years ago
detect_test.go adding tests for Detect struct in collector. Adding ability to mock out exec.Command calls. 3 years ago
devices_darwin.go added a way to retrieve raw udev data. Can be used to retrieve disk label, UUID and "disk/by-id/*" device info. 3 years ago
devices_freebsd.go adding tests for Detect struct in collector. Adding ability to mock out exec.Command calls. 3 years ago
devices_linux.go added a way to retrieve raw udev data. Can be used to retrieve disk label, UUID and "disk/by-id/*" device info. 3 years ago
devices_linux_test.go fix tests. 4 years ago
devices_windows.go adding tests for Detect struct in collector. Adding ability to mock out exec.Command calls. 3 years ago
wwn.go wwn should always be lowercase for consistency. It's used in the URL for pushing smart data. 4 years ago
wwn_test.go new device detection engine (OS aware). Uses smartctl --scan to detect drives (and conditionally uses jaypipes/ghw). WWN is calculated from smartctl data, then retrieved from GHW, and fallsback to serial number. WWN calcuation code is based on IEEE spec, for "Registered" IEEE format - NAA5. TODO: support NAA6 and other formats? 4 years ago