Use local machineid implementation
authorCyril Brulebois <cyril@debamax.com>
Thu, 7 Jan 2021 17:07:12 +0000 (17:07 +0000)
committerCyril Brulebois <cyril@debamax.com>
Sat, 4 Dec 2021 04:03:33 +0000 (04:03 +0000)
commit4dc284e97d2683fb176b530f19fec1b159643116
tree9d44212501eabcb91ba023caf678482416c9a001
parent8fc598cdfb2d29dc6b6dcbb32df02d3f1f09e711
Use local machineid implementation

Let's avoid a dependency on an extra package (denisbrodbeck/machineid),
since its ID() function is mostly about trying to read from two files.

Signed-off-by: Manuel Sabban <manuel@crowdsec.net>
Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0001-use-a-local-machineid-implementation.patch
cmd/crowdsec-cli/machines.go
go.mod
go.sum
pkg/machineid/machineid.go [new file with mode: 0644]