reportvulnerability

package
v1.12.21 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the reportvulnerability type in the database.
	Label = "report_vulnerability"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldVulnerabilityID holds the string denoting the vulnerability_id field in the database.
	FieldVulnerabilityID = "vulnerability_id"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldAliases holds the string denoting the aliases field in the database.
	FieldAliases = "aliases"
	// FieldSeverity holds the string denoting the severity field in the database.
	FieldSeverity = "severity"
	// FieldSeverityType holds the string denoting the severity_type field in the database.
	FieldSeverityType = "severity_type"
	// FieldCvssScore holds the string denoting the cvss_score field in the database.
	FieldCvssScore = "cvss_score"
	// FieldSeverityDetails holds the string denoting the severity_details field in the database.
	FieldSeverityDetails = "severity_details"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgePackage holds the string denoting the package edge name in mutations.
	EdgePackage = "package"
	// Table holds the table name of the reportvulnerability in the database.
	Table = "report_vulnerabilities"
	// PackageTable is the table that holds the package relation/edge.
	PackageTable = "report_vulnerabilities"
	// PackageInverseTable is the table name for the ReportPackage entity.
	// It exists in this package in order to avoid circular dependency with the "reportpackage" package.
	PackageInverseTable = "report_packages"
	// PackageColumn is the table column denoting the package relation/edge.
	PackageColumn = "report_package_vulnerabilities"
)

Variables

View Source
var (
	// VulnerabilityIDValidator is a validator for the "vulnerability_id" field. It is called by the builders before save.
	VulnerabilityIDValidator func(string) error
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
)

Columns holds all SQL columns for reportvulnerability fields.

View Source
var ForeignKeys = []string{
	"report_package_vulnerabilities",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "report_vulnerabilities" table and are not defined as standalone fields in the schema.

Functions

func AliasesIsNil

func AliasesIsNil() predicate.ReportVulnerability

AliasesIsNil applies the IsNil predicate on the "aliases" field.

func AliasesNotNil

func AliasesNotNil() predicate.ReportVulnerability

AliasesNotNil applies the NotNil predicate on the "aliases" field.

func And

And groups predicates with the AND operator between them.

func CreatedAt

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ReportVulnerability

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ReportVulnerability

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ReportVulnerability

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.ReportVulnerability

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtIsNil

func CreatedAtIsNil() predicate.ReportVulnerability

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ReportVulnerability

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ReportVulnerability

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ReportVulnerability

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.ReportVulnerability

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedAtNotNil

func CreatedAtNotNil() predicate.ReportVulnerability

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func CvssScore

CvssScore applies equality check predicate on the "cvss_score" field. It's identical to CvssScoreEQ.

func CvssScoreEQ

func CvssScoreEQ(v float64) predicate.ReportVulnerability

CvssScoreEQ applies the EQ predicate on the "cvss_score" field.

func CvssScoreGT

func CvssScoreGT(v float64) predicate.ReportVulnerability

CvssScoreGT applies the GT predicate on the "cvss_score" field.

func CvssScoreGTE

func CvssScoreGTE(v float64) predicate.ReportVulnerability

CvssScoreGTE applies the GTE predicate on the "cvss_score" field.

func CvssScoreIn

func CvssScoreIn(vs ...float64) predicate.ReportVulnerability

CvssScoreIn applies the In predicate on the "cvss_score" field.

func CvssScoreIsNil

func CvssScoreIsNil() predicate.ReportVulnerability

CvssScoreIsNil applies the IsNil predicate on the "cvss_score" field.

func CvssScoreLT

func CvssScoreLT(v float64) predicate.ReportVulnerability

CvssScoreLT applies the LT predicate on the "cvss_score" field.

func CvssScoreLTE

func CvssScoreLTE(v float64) predicate.ReportVulnerability

CvssScoreLTE applies the LTE predicate on the "cvss_score" field.

func CvssScoreNEQ

func CvssScoreNEQ(v float64) predicate.ReportVulnerability

CvssScoreNEQ applies the NEQ predicate on the "cvss_score" field.

func CvssScoreNotIn

func CvssScoreNotIn(vs ...float64) predicate.ReportVulnerability

CvssScoreNotIn applies the NotIn predicate on the "cvss_score" field.

func CvssScoreNotNil

func CvssScoreNotNil() predicate.ReportVulnerability

CvssScoreNotNil applies the NotNil predicate on the "cvss_score" field.

func Description

func Description(v string) predicate.ReportVulnerability

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.ReportVulnerability

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.ReportVulnerability

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.ReportVulnerability

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.ReportVulnerability

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.ReportVulnerability

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.ReportVulnerability

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.ReportVulnerability

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.ReportVulnerability

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.ReportVulnerability

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.ReportVulnerability

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.ReportVulnerability

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.ReportVulnerability

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.ReportVulnerability

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.ReportVulnerability

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.ReportVulnerability

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasPackage

func HasPackage() predicate.ReportVulnerability

HasPackage applies the HasEdge predicate on the "package" edge.

func HasPackageWith

func HasPackageWith(preds ...predicate.ReportPackage) predicate.ReportVulnerability

HasPackageWith applies the HasEdge predicate on the "package" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.ReportVulnerability

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.ReportVulnerability

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Severity

Severity applies equality check predicate on the "severity" field. It's identical to SeverityEQ.

func SeverityContains

func SeverityContains(v string) predicate.ReportVulnerability

SeverityContains applies the Contains predicate on the "severity" field.

func SeverityContainsFold

func SeverityContainsFold(v string) predicate.ReportVulnerability

SeverityContainsFold applies the ContainsFold predicate on the "severity" field.

func SeverityDetailsIsNil

func SeverityDetailsIsNil() predicate.ReportVulnerability

SeverityDetailsIsNil applies the IsNil predicate on the "severity_details" field.

func SeverityDetailsNotNil

func SeverityDetailsNotNil() predicate.ReportVulnerability

SeverityDetailsNotNil applies the NotNil predicate on the "severity_details" field.

func SeverityEQ

func SeverityEQ(v string) predicate.ReportVulnerability

SeverityEQ applies the EQ predicate on the "severity" field.

func SeverityEqualFold

func SeverityEqualFold(v string) predicate.ReportVulnerability

SeverityEqualFold applies the EqualFold predicate on the "severity" field.

func SeverityGT

func SeverityGT(v string) predicate.ReportVulnerability

SeverityGT applies the GT predicate on the "severity" field.

func SeverityGTE

func SeverityGTE(v string) predicate.ReportVulnerability

SeverityGTE applies the GTE predicate on the "severity" field.

func SeverityHasPrefix

func SeverityHasPrefix(v string) predicate.ReportVulnerability

SeverityHasPrefix applies the HasPrefix predicate on the "severity" field.

func SeverityHasSuffix

func SeverityHasSuffix(v string) predicate.ReportVulnerability

SeverityHasSuffix applies the HasSuffix predicate on the "severity" field.

func SeverityIn

func SeverityIn(vs ...string) predicate.ReportVulnerability

SeverityIn applies the In predicate on the "severity" field.

func SeverityIsNil

func SeverityIsNil() predicate.ReportVulnerability

SeverityIsNil applies the IsNil predicate on the "severity" field.

func SeverityLT

func SeverityLT(v string) predicate.ReportVulnerability

SeverityLT applies the LT predicate on the "severity" field.

func SeverityLTE

func SeverityLTE(v string) predicate.ReportVulnerability

SeverityLTE applies the LTE predicate on the "severity" field.

func SeverityNEQ

func SeverityNEQ(v string) predicate.ReportVulnerability

SeverityNEQ applies the NEQ predicate on the "severity" field.

func SeverityNotIn

func SeverityNotIn(vs ...string) predicate.ReportVulnerability

SeverityNotIn applies the NotIn predicate on the "severity" field.

func SeverityNotNil

func SeverityNotNil() predicate.ReportVulnerability

SeverityNotNil applies the NotNil predicate on the "severity" field.

func SeverityType

func SeverityType(v string) predicate.ReportVulnerability

SeverityType applies equality check predicate on the "severity_type" field. It's identical to SeverityTypeEQ.

func SeverityTypeContains

func SeverityTypeContains(v string) predicate.ReportVulnerability

SeverityTypeContains applies the Contains predicate on the "severity_type" field.

func SeverityTypeContainsFold

func SeverityTypeContainsFold(v string) predicate.ReportVulnerability

SeverityTypeContainsFold applies the ContainsFold predicate on the "severity_type" field.

func SeverityTypeEQ

func SeverityTypeEQ(v string) predicate.ReportVulnerability

SeverityTypeEQ applies the EQ predicate on the "severity_type" field.

func SeverityTypeEqualFold

func SeverityTypeEqualFold(v string) predicate.ReportVulnerability

SeverityTypeEqualFold applies the EqualFold predicate on the "severity_type" field.

func SeverityTypeGT

func SeverityTypeGT(v string) predicate.ReportVulnerability

SeverityTypeGT applies the GT predicate on the "severity_type" field.

func SeverityTypeGTE

func SeverityTypeGTE(v string) predicate.ReportVulnerability

SeverityTypeGTE applies the GTE predicate on the "severity_type" field.

func SeverityTypeHasPrefix

func SeverityTypeHasPrefix(v string) predicate.ReportVulnerability

SeverityTypeHasPrefix applies the HasPrefix predicate on the "severity_type" field.

func SeverityTypeHasSuffix

func SeverityTypeHasSuffix(v string) predicate.ReportVulnerability

SeverityTypeHasSuffix applies the HasSuffix predicate on the "severity_type" field.

func SeverityTypeIn

func SeverityTypeIn(vs ...string) predicate.ReportVulnerability

SeverityTypeIn applies the In predicate on the "severity_type" field.

func SeverityTypeIsNil

func SeverityTypeIsNil() predicate.ReportVulnerability

SeverityTypeIsNil applies the IsNil predicate on the "severity_type" field.

func SeverityTypeLT

func SeverityTypeLT(v string) predicate.ReportVulnerability

SeverityTypeLT applies the LT predicate on the "severity_type" field.

func SeverityTypeLTE

func SeverityTypeLTE(v string) predicate.ReportVulnerability

SeverityTypeLTE applies the LTE predicate on the "severity_type" field.

func SeverityTypeNEQ

func SeverityTypeNEQ(v string) predicate.ReportVulnerability

SeverityTypeNEQ applies the NEQ predicate on the "severity_type" field.

func SeverityTypeNotIn

func SeverityTypeNotIn(vs ...string) predicate.ReportVulnerability

SeverityTypeNotIn applies the NotIn predicate on the "severity_type" field.

func SeverityTypeNotNil

func SeverityTypeNotNil() predicate.ReportVulnerability

SeverityTypeNotNil applies the NotNil predicate on the "severity_type" field.

func Title

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.ReportVulnerability

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.ReportVulnerability

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.ReportVulnerability

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.ReportVulnerability

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.ReportVulnerability

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.ReportVulnerability

TitleIn applies the In predicate on the "title" field.

func TitleLT

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.ReportVulnerability

TitleNotIn applies the NotIn predicate on the "title" field.

func UpdatedAt

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ReportVulnerability

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ReportVulnerability

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ReportVulnerability

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.ReportVulnerability

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.ReportVulnerability

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ReportVulnerability

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ReportVulnerability

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ReportVulnerability

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.ReportVulnerability

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.ReportVulnerability

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func VulnerabilityID

func VulnerabilityID(v string) predicate.ReportVulnerability

VulnerabilityID applies equality check predicate on the "vulnerability_id" field. It's identical to VulnerabilityIDEQ.

func VulnerabilityIDContains

func VulnerabilityIDContains(v string) predicate.ReportVulnerability

VulnerabilityIDContains applies the Contains predicate on the "vulnerability_id" field.

func VulnerabilityIDContainsFold

func VulnerabilityIDContainsFold(v string) predicate.ReportVulnerability

VulnerabilityIDContainsFold applies the ContainsFold predicate on the "vulnerability_id" field.

func VulnerabilityIDEQ

func VulnerabilityIDEQ(v string) predicate.ReportVulnerability

VulnerabilityIDEQ applies the EQ predicate on the "vulnerability_id" field.

func VulnerabilityIDEqualFold

func VulnerabilityIDEqualFold(v string) predicate.ReportVulnerability

VulnerabilityIDEqualFold applies the EqualFold predicate on the "vulnerability_id" field.

func VulnerabilityIDGT

func VulnerabilityIDGT(v string) predicate.ReportVulnerability

VulnerabilityIDGT applies the GT predicate on the "vulnerability_id" field.

func VulnerabilityIDGTE

func VulnerabilityIDGTE(v string) predicate.ReportVulnerability

VulnerabilityIDGTE applies the GTE predicate on the "vulnerability_id" field.

func VulnerabilityIDHasPrefix

func VulnerabilityIDHasPrefix(v string) predicate.ReportVulnerability

VulnerabilityIDHasPrefix applies the HasPrefix predicate on the "vulnerability_id" field.

func VulnerabilityIDHasSuffix

func VulnerabilityIDHasSuffix(v string) predicate.ReportVulnerability

VulnerabilityIDHasSuffix applies the HasSuffix predicate on the "vulnerability_id" field.

func VulnerabilityIDIn

func VulnerabilityIDIn(vs ...string) predicate.ReportVulnerability

VulnerabilityIDIn applies the In predicate on the "vulnerability_id" field.

func VulnerabilityIDLT

func VulnerabilityIDLT(v string) predicate.ReportVulnerability

VulnerabilityIDLT applies the LT predicate on the "vulnerability_id" field.

func VulnerabilityIDLTE

func VulnerabilityIDLTE(v string) predicate.ReportVulnerability

VulnerabilityIDLTE applies the LTE predicate on the "vulnerability_id" field.

func VulnerabilityIDNEQ

func VulnerabilityIDNEQ(v string) predicate.ReportVulnerability

VulnerabilityIDNEQ applies the NEQ predicate on the "vulnerability_id" field.

func VulnerabilityIDNotIn

func VulnerabilityIDNotIn(vs ...string) predicate.ReportVulnerability

VulnerabilityIDNotIn applies the NotIn predicate on the "vulnerability_id" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ReportVulnerability queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCvssScore

func ByCvssScore(opts ...sql.OrderTermOption) OrderOption

ByCvssScore orders the results by the cvss_score field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByPackageField

func ByPackageField(field string, opts ...sql.OrderTermOption) OrderOption

ByPackageField orders the results by package field.

func BySeverity

func BySeverity(opts ...sql.OrderTermOption) OrderOption

BySeverity orders the results by the severity field.

func BySeverityType

func BySeverityType(opts ...sql.OrderTermOption) OrderOption

BySeverityType orders the results by the severity_type field.

func ByTitle

func ByTitle(opts ...sql.OrderTermOption) OrderOption

ByTitle orders the results by the title field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByVulnerabilityID

func ByVulnerabilityID(opts ...sql.OrderTermOption) OrderOption

ByVulnerabilityID orders the results by the vulnerability_id field.

Jump to

Keyboard shortcuts

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