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>
Mon, 15 Mar 2021 00:19:43 +0000 (00:19 +0000)
commit1993f6482f4045dfd5a40e90110950837ad7627d
tree2e6b20f00ba1913ad3f4d803dfda9cd0ef7b3d9d
parent631e780288eb155604c2b56efae5ee7f44d659a4
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]