model

package
v0.0.0-...-b3815d1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AssetType

type AssetType string
const (
	AssetTypeURL         AssetType = "URL"
	AssetTypeIP          AssetType = "IP"
	AssetTypeDockerImage AssetType = "DOCKER_IMAGE"
	AssetTypeGitRepo     AssetType = "GIT_REPO"
	AssetTypeLibrary     AssetType = "LIBRARY"
	AssetTypeCots        AssetType = "COTS"
)

func (AssetType) IsValid

func (e AssetType) IsValid() bool

func (AssetType) MarshalGQL

func (e AssetType) MarshalGQL(w io.Writer)

func (AssetType) String

func (e AssetType) String() string

func (*AssetType) UnmarshalGQL

func (e *AssetType) UnmarshalGQL(v interface{}) error

type Parameters

type Parameters struct {
	IDParameter string `json:"idParameter"`
	Name        string `json:"name"`
	Value       string `json:"value"`
}

type Project

type Project struct {
	IDProject       string                `json:"idProject"`
	Name            string                `json:"name"`
	Users           []*UserRole           `json:"users"`
	Analysis        []*ScannerAnalysis    `json:"analysis"`
	Vulnerabilities []*Vulnerability      `json:"vulnerabilities"`
	ProjectAssets   []*ProjectAssets      `json:"projectAssets"`
	Credentials     []*ProjectCredentials `json:"credentials"`
	Params          []*Parameters         `json:"params"`
}

type ProjectAssets

type ProjectAssets struct {
	Details   string    `json:"details"`
	TypeAsset AssetType `json:"typeAsset"`
}

type ProjectCredentials

type ProjectCredentials struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type ProjectInput

type ProjectInput struct {
	Name string `json:"name"`
}

type Scanner

type Scanner struct {
	IDScanner string      `json:"idScanner"`
	Name      string      `json:"name"`
	Install   []string    `json:"install"`
	Run       []string    `json:"run"`
	Report    []string    `json:"report"`
	Type      ScannerType `json:"type"`
}

type ScannerAnalysis

type ScannerAnalysis struct {
	IDAnalysis string   `json:"idAnalysis"`
	Scanner    string   `json:"scanner"`
	Cron       string   `json:"cron"`
	Params     []string `json:"params"`
	Timeout    *int     `json:"timeout"`
}

type ScannerInput

type ScannerInput struct {
	Name string `json:"name"`
}

type ScannerType

type ScannerType string
const (
	ScannerTypeURL         ScannerType = "URL"
	ScannerTypeIP          ScannerType = "IP"
	ScannerTypeDockerImage ScannerType = "DOCKER_IMAGE"
	ScannerTypeGitRepo     ScannerType = "GIT_REPO"
)

func (ScannerType) IsValid

func (e ScannerType) IsValid() bool

func (ScannerType) MarshalGQL

func (e ScannerType) MarshalGQL(w io.Writer)

func (ScannerType) String

func (e ScannerType) String() string

func (*ScannerType) UnmarshalGQL

func (e *ScannerType) UnmarshalGQL(v interface{}) error

type User

type User struct {
	IDUser string `json:"idUser"`
	Name   string `json:"name"`
}

type UserInput

type UserInput struct {
	Name string `json:"name"`
}

type UserRole

type UserRole struct {
	Name string `json:"name"`
	Role string `json:"role"`
}

type VulnLevel

type VulnLevel string
const (
	VulnLevelCritical  VulnLevel = "CRITICAL"
	VulnLevelHigh      VulnLevel = "HIGH"
	VulnLevelMedium    VulnLevel = "MEDIUM"
	VulnLevelLow       VulnLevel = "LOW"
	VulnLevelInfo      VulnLevel = "INFO"
	VulnLevelNone      VulnLevel = "NONE"
	VulnLevelNotScored VulnLevel = "NOT_SCORED"
)

func (VulnLevel) IsValid

func (e VulnLevel) IsValid() bool

func (VulnLevel) MarshalGQL

func (e VulnLevel) MarshalGQL(w io.Writer)

func (VulnLevel) String

func (e VulnLevel) String() string

func (*VulnLevel) UnmarshalGQL

func (e *VulnLevel) UnmarshalGQL(v interface{}) error

type VulnOrigin

type VulnOrigin string
const (
	VulnOriginCicd      VulnOrigin = "CICD"
	VulnOriginManual    VulnOrigin = "MANUAL"
	VulnOriginScheduled VulnOrigin = "SCHEDULED"
)

func (VulnOrigin) IsValid

func (e VulnOrigin) IsValid() bool

func (VulnOrigin) MarshalGQL

func (e VulnOrigin) MarshalGQL(w io.Writer)

func (VulnOrigin) String

func (e VulnOrigin) String() string

func (*VulnOrigin) UnmarshalGQL

func (e *VulnOrigin) UnmarshalGQL(v interface{}) error

type Vulnerability

type Vulnerability struct {
	IDVuln       string     `json:"idVuln"`
	OriginalCvss float64    `json:"originalCvss"`
	RevisedCvss  float64    `json:"revisedCvss"`
	AnalysisDate string     `json:"analysisDate"`
	ScannerID    string     `json:"scannerId"`
	Cve          string     `json:"cve"`
	Cwe          string     `json:"cwe"`
	Vex          string     `json:"vex"`
	Infos        string     `json:"infos"`
	Status       string     `json:"status"`
	Origin       VulnOrigin `json:"origin"`
}

Jump to

Keyboard shortcuts

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