Merge branch 'b-exec-cleanup' into f-resource-isolation-cleanup

This commit is contained in:
Sean Chittenden 2016-07-10 23:41:04 -07:00
commit 5e2e5b6ccc
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
3 changed files with 13 additions and 21 deletions

View File

@ -16,9 +16,19 @@ const (
)
func init() {
builtinFingerprintMap["arch"] = NewArchFingerprint
builtinFingerprintMap["cpu"] = NewCPUFingerprint
builtinFingerprintMap["env_aws"] = NewEnvAWSFingerprint
builtinFingerprintMap["env_gce"] = NewEnvGCEFingerprint
builtinFingerprintMap["host"] = NewHostFingerprint
builtinFingerprintMap["memory"] = NewMemoryFingerprint
builtinFingerprintMap["network"] = NewNetworkFingerprint
builtinFingerprintMap["nomad"] = NewNomadFingerprint
builtinFingerprintMap["storage"] = NewStorageFingerprint
// Initialize the list of available fingerprinters per platform. Each
// platform defines its own list of available fingerprinters.
initFingerprints(builtinFingerprintMap)
initPlatformFingerprints(builtinFingerprintMap)
}
// builtinFingerprintMap contains the built in registered fingerprints which are

View File

@ -2,14 +2,5 @@
package fingerprint
func initFingerprints(fps map[string]Factory) {
fps["arch"] = NewArchFingerprint
fps["cpu"] = NewCPUFingerprint
fps["env_aws"] = NewEnvAWSFingerprint
fps["env_gce"] = NewEnvGCEFingerprint
fps["host"] = NewHostFingerprint
fps["memory"] = NewMemoryFingerprint
fps["network"] = NewNetworkFingerprint
fps["nomad"] = NewNomadFingerprint
fps["storage"] = NewStorageFingerprint
func initPlatformFingerprints(fps map[string]Factory) {
}

View File

@ -1,14 +1,5 @@
package fingerprint
func initFingerprints(fps map[string]Factory) {
fps["arch"] = NewArchFingerprint
func initPlatformFingerprints(fps map[string]Factory) {
fps["cgroup"] = NewCGroupFingerprint
fps["cpu"] = NewCPUFingerprint
fps["env_aws"] = NewEnvAWSFingerprint
fps["env_gce"] = NewEnvGCEFingerprint
fps["host"] = NewHostFingerprint
fps["memory"] = NewMemoryFingerprint
fps["network"] = NewNetworkFingerprint
fps["nomad"] = NewNomadFingerprint
fps["storage"] = NewStorageFingerprint
}