data

package
v0.0.0-...-88b84a9 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSampleReports

func AddSampleReports()

func Connect

func Connect() (*gorm.DB, error)

func Migrate

func Migrate()

Types

type Report

type Report struct {
	gorm.Model
	Source     string       `form:"source" json:"source" binding:"required"`
	Result     string       `form:"result" json:"result" binding:"required"`
	Files      []ReportFile `json:"files"`
	Pod        string       `form:"pod" json:"pod" binding:"required"`
	Namespace  string       `form:"namespace" json:"namespace" binding:"required"`
	Tag        string       `form:"tag" json:"tag" binding:"required"`
	RepoDigest string       `form:"repoDigest" json:"repoDigest" binding:"required"`
}

type ReportFile

type ReportFile struct {
	gorm.Model
	ReportID uint
	FileName string `json:"file_name"`
	FilePath string `json:"file_path"`
}

Jump to

Keyboard shortcuts

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