Documentation ¶
Overview ¶
Package fingerprint contains functions that helps identify an instance this is done to protect customers from launching two instances with the same instance identifier and thus running commands intended for one on the other
Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the AWS Customer Agreement (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/agreement/
package fingerprint contains functions that helps identify an instance
Package fingerprint contains functions that helps identify an instance hardwareInfo contains platform specific way of fetching the hardware hash
Package fingerprint contains functions that helps identify an instance sync contains funcs required to perform sync
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstanceFingerprint ¶
Example ¶
currentHwHash = func() map[string]string { hwHash := make(map[string]string) hwHash["sample"] = "sample" return hwHash } savedHwHash := currentHwHash() saved := hwInfo{ Fingerprint: sampleFingerprint, HardwareHash: savedHwHash, } savedJson, _ := json.Marshal(saved) vault = vaultStub{ rKey: vaultKey, err: nil, data: savedJson, } val, _ := InstanceFingerprint() fmt.Println(val)
Output: 979b554b-0d67-42c6-9730-48443b3016dd
func SetSimilarityThreshold ¶
Types ¶
This section is empty.