Build the Cgroup fingerprinter on only Linux.

Change the logic from `!linux` to an empty build tag so that *if*
another platform picks up Cgroups support they can add themselves to the
necessary build tags for this fingerprinter and be on their way.
Because this technology isn't inherently Linux-specific and isn't
mutually exclusive of other resource isolation containers, resist the
urge to rename the Cgroup fingerprinter to something generic like the
ResourceContainerFingerprinter.
This commit is contained in:
Sean Chittenden
2016-07-10 13:55:06 -07:00
parent 5ede387a70
commit 44487cc7f1
3 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
// +build linux
package fingerprint
import (

View File

@@ -1,4 +1,4 @@
// +build !linux
// +build
package fingerprint

View File

@@ -1,3 +1,5 @@
// +build linux
package fingerprint
import (