fingerprint

package
v0.0.0-...-7638cb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

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

func InstanceFingerprint() (string, error)
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

func SetSimilarityThreshold(value int) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL