Use local machineid implementation
authorCyril Brulebois <cyril@debamax.com>
Thu, 7 Jan 2021 17:07:12 +0000 (17:07 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 8 May 2021 13:10:12 +0000 (14:10 +0100)
commit4d95205e87bb4ab6a4eb6ff954c97ef0d6ce196d
treededf2bf349c52a21fe8206c841310b57297fc571
parenta87a21ee82d1f75269c60dca80af1f888a50d087
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]