add scannedVia field to know the way of access such as SSH, local or pseudo (#811)

* add sacnned via

* change scannedVia type to const
This commit is contained in:
sadayuki-matsuno
2019-05-15 13:33:09 +09:00
committed by Kota Kanbe
parent 824fbb6368
commit 53aaea9fe2
5 changed files with 96 additions and 82 deletions

View File

@@ -51,6 +51,7 @@ type ScanResult struct {
ScannedVersion string `json:"scannedVersion"`
ScannedRevision string `json:"scannedRevision"`
ScannedBy string `json:"scannedBy"`
ScannedVia string `json:"scannedVia"`
ScannedIPv4Addrs []string `json:"scannedIpv4Addrs,omitempty"`
ScannedIPv6Addrs []string `json:"scannedIpv6Addrs,omitempty"`
ReportedAt time.Time `json:"reportedAt"`