format

package
v1.0.14-0...-56f5250 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Csv

func Csv(report Report, out string)

func CycloneDXJson

func CycloneDXJson(report Report, out string)

func CycloneDXXml

func CycloneDXXml(report Report, out string)

func Dsdx

func Dsdx(report Report, out string)

func DsdxJson

func DsdxJson(report Report, out string)

func DsdxXml

func DsdxXml(report Report, out string)

func Html

func Html(report Report, out string)

func Json

func Json(report Report, out string)

func Saas

func Saas(report Report) error

Saas 向saas平台发送检测报告

func Save

func Save(report Report, output string)

func Spdx

func Spdx(report Report, out string)

func SpdxJson

func SpdxJson(report Report, out string)

func SpdxXml

func SpdxXml(report Report, out string)

func Sqlite

func Sqlite(report Report, out string)

func Statis

func Statis(report Report) string

Statis 统计概览信息

func SwidJson

func SwidJson(report Report, out string)

func SwidXml

func SwidXml(report Report, out string)

func Xml

func Xml(report Report, out string)

Types

type Report

type Report struct {
	TaskInfo TaskInfo `json:"task_info" xml:"task_info"`
	*detail.DepDetailGraph
}

type TaskInfo

type TaskInfo struct {
	ToolVersion string `json:"tool_version" xml:"tool_version" `
	// 检测目标名
	AppName string `json:"app_name" xml:"app_name" `
	// 检测文件大小
	Size int64 `json:"size" xml:"size" `
	// 任务开始时间
	StartTime string `json:"start_time" xml:"start_time" `
	// 任务结束时间
	EndTime string `json:"end_time" xml:"end_time" `
	// 任务检测耗时 单位s
	CostTime float64 `json:"cost_time" xml:"cost_time" `
	// 错误信息
	ErrorString string `json:"error,omitempty" xml:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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