output

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComponentsToString

func ComponentsToString(components []map[string]interface{}) string

Types

type CSVOuter

type CSVOuter struct {
	OutputFile string
	// contains filtered or unexported fields
}

CSVOuter CSV输出实现

func NewCSVOuter

func NewCSVOuter(outputFile string) *CSVOuter

NewCSVOuter 创建一个新的CSV输出器

func (*CSVOuter) Close added in v0.1.3

func (o *CSVOuter) Close() error

Close 关闭输出器

func (*CSVOuter) Output

func (o *CSVOuter) Output(results *types.ScanResult) error

Output 实现Outer接口

type ConsoleOuter

type ConsoleOuter struct {
	OutputFile string
	Silent     bool
	// contains filtered or unexported fields
}

ConsoleOuter 控制台输出实现

func NewConsoleOuter

func NewConsoleOuter(outputFile string, silent bool) *ConsoleOuter

NewConsoleOuter 创建一个新的控制台输出器

func (*ConsoleOuter) Close

func (o *ConsoleOuter) Close() error

Close 关闭输出器

func (*ConsoleOuter) Output

func (o *ConsoleOuter) Output(results *types.ScanResult) error

Output 实现Outer接口

type JSONOuter

type JSONOuter struct {
	OutputFile string
	// contains filtered or unexported fields
}

JSONOuter JSON输出实现

func NewJSONOuter

func NewJSONOuter(outputFile string) *JSONOuter

NewJSONOuter 创建一个新的JSON输出器

func (*JSONOuter) Close

func (o *JSONOuter) Close() error

Close 关闭输出器

func (*JSONOuter) Output

func (o *JSONOuter) Output(results *types.ScanResult) error

Output 实现Outputter接口

type Outer

type Outer interface {
	// Output 输出扫描结果
	Output(results *types.ScanResult) error
}

Outer 定义结果输出接口

Jump to

Keyboard shortcuts

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