isvulnerability

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the isvulnerability type in the database.
	Label = "is_vulnerability"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOsvID holds the string denoting the osv_id field in the database.
	FieldOsvID = "osv_id"
	// FieldVulnerabilityID holds the string denoting the vulnerability_id field in the database.
	FieldVulnerabilityID = "vulnerability_id"
	// FieldJustification holds the string denoting the justification field in the database.
	FieldJustification = "justification"
	// FieldOrigin holds the string denoting the origin field in the database.
	FieldOrigin = "origin"
	// FieldCollector holds the string denoting the collector field in the database.
	FieldCollector = "collector"
	// EdgeOsv holds the string denoting the osv edge name in mutations.
	EdgeOsv = "osv"
	// EdgeVulnerability holds the string denoting the vulnerability edge name in mutations.
	EdgeVulnerability = "vulnerability"
	// Table holds the table name of the isvulnerability in the database.
	Table = "is_vulnerabilities"
	// OsvTable is the table that holds the osv relation/edge.
	OsvTable = "is_vulnerabilities"
	// OsvInverseTable is the table name for the VulnerabilityType entity.
	// It exists in this package in order to avoid circular dependency with the "vulnerabilitytype" package.
	OsvInverseTable = "vulnerability_types"
	// OsvColumn is the table column denoting the osv relation/edge.
	OsvColumn = "osv_id"
	// VulnerabilityTable is the table that holds the vulnerability relation/edge.
	VulnerabilityTable = "is_vulnerabilities"
	// VulnerabilityInverseTable is the table name for the VulnerabilityType entity.
	// It exists in this package in order to avoid circular dependency with the "vulnerabilitytype" package.
	VulnerabilityInverseTable = "vulnerability_types"
	// VulnerabilityColumn is the table column denoting the vulnerability relation/edge.
	VulnerabilityColumn = "vulnerability_id"
)

Variables

Columns holds all SQL columns for isvulnerability fields.

Functions

func And

And groups predicates with the AND operator between them.

func Collector

func Collector(v string) predicate.IsVulnerability

Collector applies equality check predicate on the "collector" field. It's identical to CollectorEQ.

func CollectorContains

func CollectorContains(v string) predicate.IsVulnerability

CollectorContains applies the Contains predicate on the "collector" field.

func CollectorContainsFold

func CollectorContainsFold(v string) predicate.IsVulnerability

CollectorContainsFold applies the ContainsFold predicate on the "collector" field.

func CollectorEQ

func CollectorEQ(v string) predicate.IsVulnerability

CollectorEQ applies the EQ predicate on the "collector" field.

func CollectorEqualFold

func CollectorEqualFold(v string) predicate.IsVulnerability

CollectorEqualFold applies the EqualFold predicate on the "collector" field.

func CollectorGT

func CollectorGT(v string) predicate.IsVulnerability

CollectorGT applies the GT predicate on the "collector" field.

func CollectorGTE

func CollectorGTE(v string) predicate.IsVulnerability

CollectorGTE applies the GTE predicate on the "collector" field.

func CollectorHasPrefix

func CollectorHasPrefix(v string) predicate.IsVulnerability

CollectorHasPrefix applies the HasPrefix predicate on the "collector" field.

func CollectorHasSuffix

func CollectorHasSuffix(v string) predicate.IsVulnerability

CollectorHasSuffix applies the HasSuffix predicate on the "collector" field.

func CollectorIn

func CollectorIn(vs ...string) predicate.IsVulnerability

CollectorIn applies the In predicate on the "collector" field.

func CollectorLT

func CollectorLT(v string) predicate.IsVulnerability

CollectorLT applies the LT predicate on the "collector" field.

func CollectorLTE

func CollectorLTE(v string) predicate.IsVulnerability

CollectorLTE applies the LTE predicate on the "collector" field.

func CollectorNEQ

func CollectorNEQ(v string) predicate.IsVulnerability

CollectorNEQ applies the NEQ predicate on the "collector" field.

func CollectorNotIn

func CollectorNotIn(vs ...string) predicate.IsVulnerability

CollectorNotIn applies the NotIn predicate on the "collector" field.

func HasOsv

func HasOsv() predicate.IsVulnerability

HasOsv applies the HasEdge predicate on the "osv" edge.

func HasOsvWith

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

func HasVulnerability

func HasVulnerability() predicate.IsVulnerability

HasVulnerability applies the HasEdge predicate on the "vulnerability" edge.

func HasVulnerabilityWith

func HasVulnerabilityWith(preds ...predicate.VulnerabilityType) predicate.IsVulnerability

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.IsVulnerability

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.IsVulnerability

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.IsVulnerability

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.IsVulnerability

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.IsVulnerability

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.IsVulnerability

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Justification

func Justification(v string) predicate.IsVulnerability

Justification applies equality check predicate on the "justification" field. It's identical to JustificationEQ.

func JustificationContains

func JustificationContains(v string) predicate.IsVulnerability

JustificationContains applies the Contains predicate on the "justification" field.

func JustificationContainsFold

func JustificationContainsFold(v string) predicate.IsVulnerability

JustificationContainsFold applies the ContainsFold predicate on the "justification" field.

func JustificationEQ

func JustificationEQ(v string) predicate.IsVulnerability

JustificationEQ applies the EQ predicate on the "justification" field.

func JustificationEqualFold

func JustificationEqualFold(v string) predicate.IsVulnerability

JustificationEqualFold applies the EqualFold predicate on the "justification" field.

func JustificationGT

func JustificationGT(v string) predicate.IsVulnerability

JustificationGT applies the GT predicate on the "justification" field.

func JustificationGTE

func JustificationGTE(v string) predicate.IsVulnerability

JustificationGTE applies the GTE predicate on the "justification" field.

func JustificationHasPrefix

func JustificationHasPrefix(v string) predicate.IsVulnerability

JustificationHasPrefix applies the HasPrefix predicate on the "justification" field.

func JustificationHasSuffix

func JustificationHasSuffix(v string) predicate.IsVulnerability

JustificationHasSuffix applies the HasSuffix predicate on the "justification" field.

func JustificationIn

func JustificationIn(vs ...string) predicate.IsVulnerability

JustificationIn applies the In predicate on the "justification" field.

func JustificationLT

func JustificationLT(v string) predicate.IsVulnerability

JustificationLT applies the LT predicate on the "justification" field.

func JustificationLTE

func JustificationLTE(v string) predicate.IsVulnerability

JustificationLTE applies the LTE predicate on the "justification" field.

func JustificationNEQ

func JustificationNEQ(v string) predicate.IsVulnerability

JustificationNEQ applies the NEQ predicate on the "justification" field.

func JustificationNotIn

func JustificationNotIn(vs ...string) predicate.IsVulnerability

JustificationNotIn applies the NotIn predicate on the "justification" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Origin

Origin applies equality check predicate on the "origin" field. It's identical to OriginEQ.

func OriginContains

func OriginContains(v string) predicate.IsVulnerability

OriginContains applies the Contains predicate on the "origin" field.

func OriginContainsFold

func OriginContainsFold(v string) predicate.IsVulnerability

OriginContainsFold applies the ContainsFold predicate on the "origin" field.

func OriginEQ

func OriginEQ(v string) predicate.IsVulnerability

OriginEQ applies the EQ predicate on the "origin" field.

func OriginEqualFold

func OriginEqualFold(v string) predicate.IsVulnerability

OriginEqualFold applies the EqualFold predicate on the "origin" field.

func OriginGT

func OriginGT(v string) predicate.IsVulnerability

OriginGT applies the GT predicate on the "origin" field.

func OriginGTE

func OriginGTE(v string) predicate.IsVulnerability

OriginGTE applies the GTE predicate on the "origin" field.

func OriginHasPrefix

func OriginHasPrefix(v string) predicate.IsVulnerability

OriginHasPrefix applies the HasPrefix predicate on the "origin" field.

func OriginHasSuffix

func OriginHasSuffix(v string) predicate.IsVulnerability

OriginHasSuffix applies the HasSuffix predicate on the "origin" field.

func OriginIn

func OriginIn(vs ...string) predicate.IsVulnerability

OriginIn applies the In predicate on the "origin" field.

func OriginLT

func OriginLT(v string) predicate.IsVulnerability

OriginLT applies the LT predicate on the "origin" field.

func OriginLTE

func OriginLTE(v string) predicate.IsVulnerability

OriginLTE applies the LTE predicate on the "origin" field.

func OriginNEQ

func OriginNEQ(v string) predicate.IsVulnerability

OriginNEQ applies the NEQ predicate on the "origin" field.

func OriginNotIn

func OriginNotIn(vs ...string) predicate.IsVulnerability

OriginNotIn applies the NotIn predicate on the "origin" field.

func OsvID

func OsvID(v int) predicate.IsVulnerability

OsvID applies equality check predicate on the "osv_id" field. It's identical to OsvIDEQ.

func OsvIDEQ

func OsvIDEQ(v int) predicate.IsVulnerability

OsvIDEQ applies the EQ predicate on the "osv_id" field.

func OsvIDIn

func OsvIDIn(vs ...int) predicate.IsVulnerability

OsvIDIn applies the In predicate on the "osv_id" field.

func OsvIDNEQ

func OsvIDNEQ(v int) predicate.IsVulnerability

OsvIDNEQ applies the NEQ predicate on the "osv_id" field.

func OsvIDNotIn

func OsvIDNotIn(vs ...int) predicate.IsVulnerability

OsvIDNotIn applies the NotIn predicate on the "osv_id" 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 int) predicate.IsVulnerability

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

func VulnerabilityIDEQ

func VulnerabilityIDEQ(v int) predicate.IsVulnerability

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

func VulnerabilityIDIn

func VulnerabilityIDIn(vs ...int) predicate.IsVulnerability

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

func VulnerabilityIDNEQ

func VulnerabilityIDNEQ(v int) predicate.IsVulnerability

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

func VulnerabilityIDNotIn

func VulnerabilityIDNotIn(vs ...int) predicate.IsVulnerability

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 IsVulnerability queries.

func ByCollector

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

ByCollector orders the results by the collector field.

func ByID

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

ByID orders the results by the id field.

func ByJustification

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

ByJustification orders the results by the justification field.

func ByOrigin

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

ByOrigin orders the results by the origin field.

func ByOsvField

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

ByOsvField orders the results by osv field.

func ByOsvID

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

ByOsvID orders the results by the osv_id field.

func ByVulnerabilityField

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

ByVulnerabilityField orders the results by vulnerability 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