docker

package
v0.0.0-...-67720cb Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 9 Imported by: 0

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

func (*Scanner) Scan

func (s *Scanner) Scan(ctx context.Context, r *scan.Request) (result scan.Result, err error)

type ScannerOption

type ScannerOption func(*Scanner)

func WithDataTimeout

func WithDataTimeout(timeout time.Duration) ScannerOption

Jump to

Keyboard shortcuts

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