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
Thomas Way db86bac9ef
fix(collector): show correct nvme capacity
3 months ago
..
testdata fix(collector): show correct nvme capacity 3 months ago
detect.go fix(collector): show correct nvme capacity 3 months ago
detect_test.go fix(collector): show correct nvme capacity 3 months 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. 2 years ago
devices_freebsd.go adding tests for Detect struct in collector. Adding ability to mock out exec.Command calls. 2 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. 2 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. 2 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