model

package
v0.0.0-...-b5b2af5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaliciousFileInfo

type MaliciousFileInfo struct {
	gorm.Model
	Engine       string
	ImageID      string
	LayerID      string
	RelativePath string
	FileName     string
	FileSize     string
	FileMd5      string
	FileSha256   string
	FileCreated  string
	Description  string
}

type ReportData

type ReportData struct {
	gorm.Model
	ScanImageCount     int64
	MaliciousFileCount int64
	ScanSpendTime      string
	ScanStartTime      string
	ScanFileCount      int
	ScanImageResult    []ReportImage `gorm:"foreignKey:ImageID"`
}

type ReportImage

type ReportImage struct {
	gorm.Model
	ImageName          string
	ImageID            string
	MaliciousFileCount int64
	ScanFileCount      int
	ImageCreatedAt     string
	MaliciousFileInfos []MaliciousFileInfo `gorm:"foreignKey:ImageID;references:ImageID"`
	Layers             []ReportLayer       `gorm:"foreignKey:ImageID;references:ImageID"`
}

func (*ReportImage) IsMalicious

func (r *ReportImage) IsMalicious() bool

type ReportLayer

type ReportLayer struct {
	gorm.Model
	ImageID            string
	LayerID            string
	MaliciousFileInfos []MaliciousFileInfo `gorm:"foreignKey:LayerID;references:LayerID"`
}

Jump to

Keyboard shortcuts

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