Documentation ¶
Index ¶
Constants ¶
View Source
const (
ScanType = "docker"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScanResult ¶
type ScanResult struct { ScanType string `json:"scan"` Proto string `json:"proto"` Host string `json:"host"` Info types.Info `json:"info"` Version types.Version `json:"version"` }
func (*ScanResult) ID ¶
func (r *ScanResult) ID() string
func (*ScanResult) MarshalJSON ¶
func (r *ScanResult) MarshalJSON() ([]byte, error)
func (*ScanResult) String ¶
func (r *ScanResult) String() string
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶
func NewScanner(proto string, opts ...ScannerOption) *Scanner
type ScannerOption ¶
type ScannerOption func(*Scanner)
func WithDataTimeout ¶
func WithDataTimeout(timeout time.Duration) ScannerOption
Click to show internal directories.
Click to hide internal directories.