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

@@ -32,6 +32,12 @@ import (
"golang.org/x/xerrors"
)
const (
scannedViaRemote = "remote"
scannedViaLocal = "local"
scannedViaPseudo = "pseudo"
)
var (
errOSFamilyHeader = xerrors.New("X-Vuls-OS-Family header is required")
errOSReleaseHeader = xerrors.New("X-Vuls-OS-Release header is required")