vulnequal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the vulnequal type in the database.
	Label = "vuln_equal"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "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"
	// EdgeVulnerabilityIds holds the string denoting the vulnerability_ids edge name in mutations.
	EdgeVulnerabilityIds = "vulnerability_ids"
	// Table holds the table name of the vulnequal in the database.
	Table = "vuln_equals"
	// VulnerabilityIdsTable is the table that holds the vulnerability_ids relation/edge. The primary key declared below.
	VulnerabilityIdsTable = "vuln_equal_vulnerability_ids"
	// VulnerabilityIdsInverseTable is the table name for the VulnerabilityID entity.
	// It exists in this package in order to avoid circular dependency with the "vulnerabilityid" package.
	VulnerabilityIdsInverseTable = "vulnerability_ids"
)

Variables

Columns holds all SQL columns for vulnequal fields.

View Source
var (
	// VulnerabilityIdsPrimaryKey and VulnerabilityIdsColumn2 are the table columns denoting the
	// primary key for the vulnerability_ids relation (M2M).
	VulnerabilityIdsPrimaryKey = []string{"vuln_equal_id", "vulnerability_id_id"}
)

Functions

func And

func And(predicates ...predicate.VulnEqual) predicate.VulnEqual

And groups predicates with the AND operator between them.

func Collector

func Collector(v string) predicate.VulnEqual

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

func CollectorContains

func CollectorContains(v string) predicate.VulnEqual

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

func CollectorContainsFold

func CollectorContainsFold(v string) predicate.VulnEqual

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

func CollectorEQ

func CollectorEQ(v string) predicate.VulnEqual

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

func CollectorEqualFold

func CollectorEqualFold(v string) predicate.VulnEqual

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

func CollectorGT

func CollectorGT(v string) predicate.VulnEqual

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

func CollectorGTE

func CollectorGTE(v string) predicate.VulnEqual

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

func CollectorHasPrefix

func CollectorHasPrefix(v string) predicate.VulnEqual

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

func CollectorHasSuffix

func CollectorHasSuffix(v string) predicate.VulnEqual

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

func CollectorIn

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

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

func CollectorLT

func CollectorLT(v string) predicate.VulnEqual

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

func CollectorLTE

func CollectorLTE(v string) predicate.VulnEqual

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

func CollectorNEQ

func CollectorNEQ(v string) predicate.VulnEqual

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

func CollectorNotIn

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

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

func HasVulnerabilityIds

func HasVulnerabilityIds() predicate.VulnEqual

HasVulnerabilityIds applies the HasEdge predicate on the "vulnerability_ids" edge.

func HasVulnerabilityIdsWith

func HasVulnerabilityIdsWith(preds ...predicate.VulnerabilityID) predicate.VulnEqual

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

func ID

func ID(id int) predicate.VulnEqual

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.VulnEqual

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.VulnEqual

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.VulnEqual

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.VulnEqual

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.VulnEqual

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.VulnEqual

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Justification

func Justification(v string) predicate.VulnEqual

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

func JustificationContains

func JustificationContains(v string) predicate.VulnEqual

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

func JustificationContainsFold

func JustificationContainsFold(v string) predicate.VulnEqual

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

func JustificationEQ

func JustificationEQ(v string) predicate.VulnEqual

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

func JustificationEqualFold

func JustificationEqualFold(v string) predicate.VulnEqual

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

func JustificationGT

func JustificationGT(v string) predicate.VulnEqual

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

func JustificationGTE

func JustificationGTE(v string) predicate.VulnEqual

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

func JustificationHasPrefix

func JustificationHasPrefix(v string) predicate.VulnEqual

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

func JustificationHasSuffix

func JustificationHasSuffix(v string) predicate.VulnEqual

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

func JustificationIn

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

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

func JustificationLT

func JustificationLT(v string) predicate.VulnEqual

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

func JustificationLTE

func JustificationLTE(v string) predicate.VulnEqual

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

func JustificationNEQ

func JustificationNEQ(v string) predicate.VulnEqual

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

func JustificationNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.VulnEqual) predicate.VulnEqual

Or groups predicates with the OR operator between them.

func Origin

func Origin(v string) predicate.VulnEqual

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

func OriginContains

func OriginContains(v string) predicate.VulnEqual

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

func OriginContainsFold

func OriginContainsFold(v string) predicate.VulnEqual

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

func OriginEQ

func OriginEQ(v string) predicate.VulnEqual

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

func OriginEqualFold

func OriginEqualFold(v string) predicate.VulnEqual

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

func OriginGT

func OriginGT(v string) predicate.VulnEqual

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

func OriginGTE

func OriginGTE(v string) predicate.VulnEqual

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

func OriginHasPrefix

func OriginHasPrefix(v string) predicate.VulnEqual

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

func OriginHasSuffix

func OriginHasSuffix(v string) predicate.VulnEqual

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

func OriginIn

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

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

func OriginLT

func OriginLT(v string) predicate.VulnEqual

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

func OriginLTE

func OriginLTE(v string) predicate.VulnEqual

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

func OriginNEQ

func OriginNEQ(v string) predicate.VulnEqual

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

func OriginNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the VulnEqual 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 ByVulnerabilityIds

func ByVulnerabilityIds(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByVulnerabilityIds orders the results by vulnerability_ids terms.

func ByVulnerabilityIdsCount

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

ByVulnerabilityIdsCount orders the results by vulnerability_ids count.

Jump to

Keyboard shortcuts

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