Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFingerprint ¶
func CheckFingerprint()
In previous versions, we used the fingerprint generated by the Agent itself as the unique ID of hybrid instance and saved it in the hybrid/fingerprint file. The hybrid/machine-id still stored the original ID, which caused ambiguity. Now we discard the hybrid/fingerprint file and save the fingerprint directly to the hybrid/machine-id file. So we need to check the hybrid/fingerprint file. If it exists, copy the fingerprint to hybrid/machind-id and delete the hybrid/fingerprint file.
func UnRegister ¶
Types ¶
type RegisterInfo ¶
type RegisterInfo struct { Code string `json:"activationCode"` MachineId string `json:"machineId"` Fingerprint string `json:"fingerprint"` RegionId string `json:"regionId"` InstanceName string `json:"instanceName"` Hostname string `json:"hostname"` IntranetIp string `json:"intranetIp"` OsVersion string `json:"osVersion"` OsType string `json:"osType"` ClientVersion string `json:"agentVersion"` PublicKeyBase64 string `json:"publicKey"` Id string `json:"activationId"` Tag []Tag `json:"tag"` }
Click to show internal directories.
Click to hide internal directories.