vulnerability

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the vulnerability type in the database.
	Label = "vulnerability"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldFirstSeenAt holds the string denoting the first_seen_at field in the database.
	FieldFirstSeenAt = "first_seen_at"
	// FieldLastModifiedAt holds the string denoting the last_modified_at field in the database.
	FieldLastModifiedAt = "last_modified_at"
	// 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"
	// FieldCweID holds the string denoting the cwe_id field in the database.
	FieldCweID = "cwe_id"
	// FieldSeverity holds the string denoting the severity field in the database.
	FieldSeverity = "severity"
	// FieldCvss holds the string denoting the cvss field in the database.
	FieldCvss = "cvss"
	// FieldReferences holds the string denoting the references field in the database.
	FieldReferences = "references"
	// EdgePackages holds the string denoting the packages edge name in mutations.
	EdgePackages = "packages"
	// EdgeStatus holds the string denoting the status edge name in mutations.
	EdgeStatus = "status"
	// Table holds the table name of the vulnerability in the database.
	Table = "vulnerabilities"
	// PackagesTable is the table that holds the packages relation/edge. The primary key declared below.
	PackagesTable = "package_record_vulnerabilities"
	// PackagesInverseTable is the table name for the PackageRecord entity.
	// It exists in this package in order to avoid circular dependency with the "packagerecord" package.
	PackagesInverseTable = "package_records"
	// StatusTable is the table that holds the status relation/edge.
	StatusTable = "vuln_status"
	// StatusInverseTable is the table name for the VulnStatus entity.
	// It exists in this package in order to avoid circular dependency with the "vulnstatus" package.
	StatusInverseTable = "vuln_status"
	// StatusColumn is the table column denoting the status relation/edge.
	StatusColumn = "vulnerability_status"
)

Variables

Columns holds all SQL columns for vulnerability fields.

View Source
var (
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)
View Source
var (
	// PackagesPrimaryKey and PackagesColumn2 are the table columns denoting the
	// primary key for the packages relation (M2M).
	PackagesPrimaryKey = []string{"package_record_id", "vulnerability_id"}
)

Functions

func And

And groups predicates with the AND operator between them.

func CvssIsNil

func CvssIsNil() predicate.Vulnerability

CvssIsNil applies the IsNil predicate on the "cvss" field.

func CvssNotNil

func CvssNotNil() predicate.Vulnerability

CvssNotNil applies the NotNil predicate on the "cvss" field.

func CweIDIsNil

func CweIDIsNil() predicate.Vulnerability

CweIDIsNil applies the IsNil predicate on the "cwe_id" field.

func CweIDNotNil

func CweIDNotNil() predicate.Vulnerability

CweIDNotNil applies the NotNil predicate on the "cwe_id" field.

func Description

func Description(v string) predicate.Vulnerability

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

func DescriptionContains

func DescriptionContains(v string) predicate.Vulnerability

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Vulnerability

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Vulnerability

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Vulnerability

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

func DescriptionGT

func DescriptionGT(v string) predicate.Vulnerability

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Vulnerability

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Vulnerability

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Vulnerability

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Vulnerability

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

func DescriptionLT

func DescriptionLT(v string) predicate.Vulnerability

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Vulnerability

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Vulnerability

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Vulnerability

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

func FirstSeenAt

func FirstSeenAt(v int64) predicate.Vulnerability

FirstSeenAt applies equality check predicate on the "first_seen_at" field. It's identical to FirstSeenAtEQ.

func FirstSeenAtEQ

func FirstSeenAtEQ(v int64) predicate.Vulnerability

FirstSeenAtEQ applies the EQ predicate on the "first_seen_at" field.

func FirstSeenAtGT

func FirstSeenAtGT(v int64) predicate.Vulnerability

FirstSeenAtGT applies the GT predicate on the "first_seen_at" field.

func FirstSeenAtGTE

func FirstSeenAtGTE(v int64) predicate.Vulnerability

FirstSeenAtGTE applies the GTE predicate on the "first_seen_at" field.

func FirstSeenAtIn

func FirstSeenAtIn(vs ...int64) predicate.Vulnerability

FirstSeenAtIn applies the In predicate on the "first_seen_at" field.

func FirstSeenAtLT

func FirstSeenAtLT(v int64) predicate.Vulnerability

FirstSeenAtLT applies the LT predicate on the "first_seen_at" field.

func FirstSeenAtLTE

func FirstSeenAtLTE(v int64) predicate.Vulnerability

FirstSeenAtLTE applies the LTE predicate on the "first_seen_at" field.

func FirstSeenAtNEQ

func FirstSeenAtNEQ(v int64) predicate.Vulnerability

FirstSeenAtNEQ applies the NEQ predicate on the "first_seen_at" field.

func FirstSeenAtNotIn

func FirstSeenAtNotIn(vs ...int64) predicate.Vulnerability

FirstSeenAtNotIn applies the NotIn predicate on the "first_seen_at" field.

func HasPackages

func HasPackages() predicate.Vulnerability

HasPackages applies the HasEdge predicate on the "packages" edge.

func HasPackagesWith

func HasPackagesWith(preds ...predicate.PackageRecord) predicate.Vulnerability

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

func HasStatus

func HasStatus() predicate.Vulnerability

HasStatus applies the HasEdge predicate on the "status" edge.

func HasStatusWith

func HasStatusWith(preds ...predicate.VulnStatus) predicate.Vulnerability

HasStatusWith applies the HasEdge predicate on the "status" 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

func IDGTE(id string) predicate.Vulnerability

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Vulnerability

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Vulnerability

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Vulnerability

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Vulnerability

IDNotIn applies the NotIn predicate on the ID field.

func LastModifiedAt

func LastModifiedAt(v int64) predicate.Vulnerability

LastModifiedAt applies equality check predicate on the "last_modified_at" field. It's identical to LastModifiedAtEQ.

func LastModifiedAtEQ

func LastModifiedAtEQ(v int64) predicate.Vulnerability

LastModifiedAtEQ applies the EQ predicate on the "last_modified_at" field.

func LastModifiedAtGT

func LastModifiedAtGT(v int64) predicate.Vulnerability

LastModifiedAtGT applies the GT predicate on the "last_modified_at" field.

func LastModifiedAtGTE

func LastModifiedAtGTE(v int64) predicate.Vulnerability

LastModifiedAtGTE applies the GTE predicate on the "last_modified_at" field.

func LastModifiedAtIn

func LastModifiedAtIn(vs ...int64) predicate.Vulnerability

LastModifiedAtIn applies the In predicate on the "last_modified_at" field.

func LastModifiedAtLT

func LastModifiedAtLT(v int64) predicate.Vulnerability

LastModifiedAtLT applies the LT predicate on the "last_modified_at" field.

func LastModifiedAtLTE

func LastModifiedAtLTE(v int64) predicate.Vulnerability

LastModifiedAtLTE applies the LTE predicate on the "last_modified_at" field.

func LastModifiedAtNEQ

func LastModifiedAtNEQ(v int64) predicate.Vulnerability

LastModifiedAtNEQ applies the NEQ predicate on the "last_modified_at" field.

func LastModifiedAtNotIn

func LastModifiedAtNotIn(vs ...int64) predicate.Vulnerability

LastModifiedAtNotIn applies the NotIn predicate on the "last_modified_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ReferencesIsNil

func ReferencesIsNil() predicate.Vulnerability

ReferencesIsNil applies the IsNil predicate on the "references" field.

func ReferencesNotNil

func ReferencesNotNil() predicate.Vulnerability

ReferencesNotNil applies the NotNil predicate on the "references" field.

func Severity

func Severity(v string) predicate.Vulnerability

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

func SeverityContains

func SeverityContains(v string) predicate.Vulnerability

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

func SeverityContainsFold

func SeverityContainsFold(v string) predicate.Vulnerability

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

func SeverityEQ

func SeverityEQ(v string) predicate.Vulnerability

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

func SeverityEqualFold

func SeverityEqualFold(v string) predicate.Vulnerability

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

func SeverityGT

func SeverityGT(v string) predicate.Vulnerability

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

func SeverityGTE

func SeverityGTE(v string) predicate.Vulnerability

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

func SeverityHasPrefix

func SeverityHasPrefix(v string) predicate.Vulnerability

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

func SeverityHasSuffix

func SeverityHasSuffix(v string) predicate.Vulnerability

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

func SeverityIn

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

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

func SeverityIsNil

func SeverityIsNil() predicate.Vulnerability

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

func SeverityLT

func SeverityLT(v string) predicate.Vulnerability

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

func SeverityLTE

func SeverityLTE(v string) predicate.Vulnerability

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

func SeverityNEQ

func SeverityNEQ(v string) predicate.Vulnerability

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

func SeverityNotIn

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

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

func SeverityNotNil

func SeverityNotNil() predicate.Vulnerability

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

func Title

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

func TitleContains

func TitleContains(v string) predicate.Vulnerability

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.Vulnerability

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

func TitleEQ

func TitleEQ(v string) predicate.Vulnerability

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.Vulnerability

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

func TitleGT

func TitleGT(v string) predicate.Vulnerability

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

func TitleGTE

func TitleGTE(v string) predicate.Vulnerability

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Vulnerability

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Vulnerability

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

func TitleIn

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

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

func TitleIsNil

func TitleIsNil() predicate.Vulnerability

TitleIsNil applies the IsNil predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Vulnerability

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

func TitleLTE

func TitleLTE(v string) predicate.Vulnerability

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

func TitleNEQ

func TitleNEQ(v string) predicate.Vulnerability

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

func TitleNotIn

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

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

func TitleNotNil

func TitleNotNil() predicate.Vulnerability

TitleNotNil applies the NotNil predicate on the "title" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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