dto

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	VulnerabilityID uuid.UUID                      `json:"vulnerabilityID"`
	Type            horusecEnums.VulnerabilityType `json:"type"`
	VulnHash        string                         `json:"vulnHash"`
	Line            string                         `json:"line"`
	Column          string                         `json:"column"`
	Confidence      string                         `json:"confidence"`
	File            string                         `json:"file"`
	Code            string                         `json:"code"`
	Details         string                         `json:"details"`
	SecurityTool    tools.Tool                     `json:"securityTool"`
	Language        languages.Language             `json:"language"`
	Severity        severity.Severity              `json:"severity"`
}

type UpdateVulnType

type UpdateVulnType struct {
	Type horusecEnums.VulnerabilityType `json:"type"`
}

func (*UpdateVulnType) ToBytes added in v1.2.0

func (u *UpdateVulnType) ToBytes() []byte

func (UpdateVulnType) TypeValues

func (u UpdateVulnType) TypeValues() []interface{}

func (*UpdateVulnType) Validate

func (u *UpdateVulnType) Validate() error

type VulnManagement

type VulnManagement struct {
	TotalItems int    `json:"totalItems"`
	Data       []Data `json:"data"`
}

Jump to

Keyboard shortcuts

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