open-nomad/client/fingerprint
Seth Hoenig b548cf6816 client/fingerprint/consul: refactor the consul fingerprinter to test individual attributes
This PR refactors the ConsulFingerprint implementation, breaking individual attributes
into individual functions to make testing them easier. This is in preparation for
additional extractors about to be added. Behavior should be otherwise unchanged.

It adds the attribute consul.sku, which can be used to differentiate between Consul
OSS vs Consul ENT.
2021-06-03 12:48:39 -05:00
..
test_fixtures client/fingerprint/consul: refactor the consul fingerprinter to test individual attributes 2021-06-03 12:48:39 -05:00
arch.go client: Move fingerprint structs to pkg 2018-12-01 17:10:39 +01:00
arch_test.go client: Move fingerprint structs to pkg 2018-12-01 17:10:39 +01:00
bridge.go client/fingerprint: detect unloaded dynamic bridge kernel module 2020-11-09 13:56:14 -06:00
bridge_default.go CNI Implementation (#7518) 2020-06-18 11:05:29 -07:00
bridge_linux.go deps: bump gopsutil to v3.21.2 2021-03-30 16:02:51 -04:00
bridge_linux_test.go Properly detect unloaded dynamic modules on RHEL derivates. Fixes #9776 2021-01-12 18:28:00 +01:00
cgroup.go client/fingerprint: move existing cgroup concerns to cgutil 2021-04-13 13:28:36 -04:00
cgroup_default.go client/fingerprint: move existing cgroup concerns to cgutil 2021-04-13 13:28:36 -04:00
cgroup_linux.go client/fingerprint: move existing cgroup concerns to cgutil 2021-04-13 13:28:36 -04:00
cgroup_test.go client: Move fingerprint structs to pkg 2018-12-01 17:10:39 +01:00
cni.go multi-interface network support 2020-06-19 09:42:10 -04:00
cni_test.go CNI Implementation (#7518) 2020-06-18 11:05:29 -07:00
consul.go client/fingerprint/consul: refactor the consul fingerprinter to test individual attributes 2021-06-03 12:48:39 -05:00
consul_test.go client/fingerprint/consul: refactor the consul fingerprinter to test individual attributes 2021-06-03 12:48:39 -05:00
cpu.go client/ar: thread through cpuset manager 2021-04-13 13:28:36 -04:00
cpu_default.go client: only fingerprint reservable cores via cgroups, allowing manual override for other platforms 2021-04-13 13:28:15 -04:00
cpu_linux.go client/fingerprint: move existing cgroup concerns to cgutil 2021-04-13 13:28:36 -04:00
cpu_test.go Allow client.cpu_total_compute to override attr.cpu.totalcompute 2021-01-07 15:31:11 -05:00
env_aws.go chore: bump golangci-lint from v1.24 to v1.39 2021-04-03 09:50:23 +02:00
env_aws_cpu.go aws_env: update ec2 instances 2021-04-22 11:33:51 -06:00
env_aws_test.go Allow client.cpu_total_compute to override attr.cpu.totalcompute 2021-01-07 15:31:11 -05:00
env_azure.go chore: bump golangci-lint from v1.24 to v1.39 2021-04-03 09:50:23 +02:00
env_azure_test.go fingerprint: changed unique.platform.azure.hostname to unique.platform.azure.name (#9016) 2020-10-02 16:50:12 -04:00
env_gce.go chore: bump golangci-lint from v1.24 to v1.39 2021-04-03 09:50:23 +02:00
env_gce_test.go client: Move fingerprint structs to pkg 2018-12-01 17:10:39 +01:00
fingerprint.go client: added azure fingerprinting support (#8979) 2020-10-01 09:10:27 -04:00
fingerprint_default.go
fingerprint_linux.go CNI Implementation (#7518) 2020-06-18 11:05:29 -07:00
fingerprint_test.go fingerprint code refactor 2019-11-26 10:51:28 -05:00
host.go deps: bump gopsutil to v3.21.2 2021-03-30 16:02:51 -04:00
host_test.go client: Move fingerprint structs to pkg 2018-12-01 17:10:39 +01:00
memory.go deps: bump gopsutil to v3.21.2 2021-03-30 16:02:51 -04:00
memory_test.go fingerprint: Restore support for legacy memory fingerprint 2019-09-04 17:10:28 +02:00
network.go support multiple host network aliases for the same interface 2021-04-13 09:33:33 -04:00
network_default.go
network_linux.go fix build errors post merges 2018-10-16 16:53:31 -07:00
network_test.go support multiple host network aliases for the same interface 2021-04-13 09:33:33 -04:00
network_windows.go compile on windows 2018-10-16 16:56:56 -07:00
network_windows_test.go fingerprinter: Use HCLogger for windows 2019-01-17 18:43:13 +01:00
nomad.go client: Move fingerprint structs to pkg 2018-12-01 17:10:39 +01:00
nomad_test.go client: Move fingerprint structs to pkg 2018-12-01 17:10:39 +01:00
signal.go client: Move fingerprint structs to pkg 2018-12-01 17:10:39 +01:00
signal_test.go client uses passed logger and fix fingerprinters 2018-10-16 16:53:30 -07:00
storage.go client: Move fingerprint structs to pkg 2018-12-01 17:10:39 +01:00
storage_test.go client uses passed logger and fix fingerprinters 2018-10-16 16:53:30 -07:00
storage_unix.go
storage_windows.go Revert "lint: ignore generated windows syscall wrappers" 2019-10-22 08:23:44 -04:00
structs.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
vault.go client: Move fingerprint structs to pkg 2018-12-01 17:10:39 +01:00
vault_test.go client: Move fingerprint structs to pkg 2018-12-01 17:10:39 +01:00
zstorage_windows.go Revert "lint: ignore generated windows syscall wrappers" 2019-10-22 08:23:44 -04:00