scan

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperationScan added in v0.4.6

type OperationScan struct {
	Operation   *operation.Operation
	ScanHandler *OperationScanHandler
}

type OperationScanHandler added in v0.7.3

type OperationScanHandler struct {
	ID      string
	Handler OperationScanHandlerFunc
}

func NewOperationScanHandler added in v0.7.3

func NewOperationScanHandler(id string, handler OperationScanHandlerFunc) *OperationScanHandler

type OperationScanHandlerFunc added in v0.7.3

type OperationScanHandlerFunc func(operation *operation.Operation, ss auth.SecurityScheme) (*report.ScanReport, error)

type Scan

type Scan struct {
	*ScanOptions

	Operations      operation.Operations
	OperationsScans []OperationScan
}

func NewScan added in v0.3.0

func NewScan(operations operation.Operations, opts *ScanOptions) (*Scan, error)

func (*Scan) AddOperationScanHandler added in v0.4.0

func (s *Scan) AddOperationScanHandler(handler *OperationScanHandler) *Scan

func (*Scan) AddScanHandler added in v0.3.0

func (s *Scan) AddScanHandler(handler *OperationScanHandler) *Scan

func (*Scan) Execute

func (s *Scan) Execute(ctx context.Context, scanCallback func(operationScan *OperationScan)) (*report.Reporter, []error, error)

func (*Scan) GetOperationsScans added in v0.4.6

func (s *Scan) GetOperationsScans() []OperationScan

type ScanOptions added in v0.8.1

type ScanOptions struct {
	IncludeScans []string
	ExcludeScans []string
	Reporter     *report.Reporter
}

Jump to

Keyboard shortcuts

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