vulnequal

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 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"
	// FieldVulnID holds the string denoting the vuln_id field in the database.
	FieldVulnID = "vuln_id"
	// FieldEqualVulnID holds the string denoting the equal_vuln_id field in the database.
	FieldEqualVulnID = "equal_vuln_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"
	// FieldDocumentRef holds the string denoting the document_ref field in the database.
	FieldDocumentRef = "document_ref"
	// FieldVulnerabilitiesHash holds the string denoting the vulnerabilities_hash field in the database.
	FieldVulnerabilitiesHash = "vulnerabilities_hash"
	// EdgeVulnerabilityA holds the string denoting the vulnerability_a edge name in mutations.
	EdgeVulnerabilityA = "vulnerability_a"
	// EdgeVulnerabilityB holds the string denoting the vulnerability_b edge name in mutations.
	EdgeVulnerabilityB = "vulnerability_b"
	// Table holds the table name of the vulnequal in the database.
	Table = "vuln_equals"
	// VulnerabilityATable is the table that holds the vulnerability_a relation/edge.
	VulnerabilityATable = "vuln_equals"
	// VulnerabilityAInverseTable is the table name for the VulnerabilityID entity.
	// It exists in this package in order to avoid circular dependency with the "vulnerabilityid" package.
	VulnerabilityAInverseTable = "vulnerability_ids"
	// VulnerabilityAColumn is the table column denoting the vulnerability_a relation/edge.
	VulnerabilityAColumn = "vuln_id"
	// VulnerabilityBTable is the table that holds the vulnerability_b relation/edge.
	VulnerabilityBTable = "vuln_equals"
	// VulnerabilityBInverseTable is the table name for the VulnerabilityID entity.
	// It exists in this package in order to avoid circular dependency with the "vulnerabilityid" package.
	VulnerabilityBInverseTable = "vulnerability_ids"
	// VulnerabilityBColumn is the table column denoting the vulnerability_b relation/edge.
	VulnerabilityBColumn = "equal_vuln_id"
)

Variables

Columns holds all SQL columns for vulnequal fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

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 DocumentRef added in v0.6.0

func DocumentRef(v string) predicate.VulnEqual

DocumentRef applies equality check predicate on the "document_ref" field. It's identical to DocumentRefEQ.

func DocumentRefContains added in v0.6.0

func DocumentRefContains(v string) predicate.VulnEqual

DocumentRefContains applies the Contains predicate on the "document_ref" field.

func DocumentRefContainsFold added in v0.6.0

func DocumentRefContainsFold(v string) predicate.VulnEqual

DocumentRefContainsFold applies the ContainsFold predicate on the "document_ref" field.

func DocumentRefEQ added in v0.6.0

func DocumentRefEQ(v string) predicate.VulnEqual

DocumentRefEQ applies the EQ predicate on the "document_ref" field.

func DocumentRefEqualFold added in v0.6.0

func DocumentRefEqualFold(v string) predicate.VulnEqual

DocumentRefEqualFold applies the EqualFold predicate on the "document_ref" field.

func DocumentRefGT added in v0.6.0

func DocumentRefGT(v string) predicate.VulnEqual

DocumentRefGT applies the GT predicate on the "document_ref" field.

func DocumentRefGTE added in v0.6.0

func DocumentRefGTE(v string) predicate.VulnEqual

DocumentRefGTE applies the GTE predicate on the "document_ref" field.

func DocumentRefHasPrefix added in v0.6.0

func DocumentRefHasPrefix(v string) predicate.VulnEqual

DocumentRefHasPrefix applies the HasPrefix predicate on the "document_ref" field.

func DocumentRefHasSuffix added in v0.6.0

func DocumentRefHasSuffix(v string) predicate.VulnEqual

DocumentRefHasSuffix applies the HasSuffix predicate on the "document_ref" field.

func DocumentRefIn added in v0.6.0

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

DocumentRefIn applies the In predicate on the "document_ref" field.

func DocumentRefLT added in v0.6.0

func DocumentRefLT(v string) predicate.VulnEqual

DocumentRefLT applies the LT predicate on the "document_ref" field.

func DocumentRefLTE added in v0.6.0

func DocumentRefLTE(v string) predicate.VulnEqual

DocumentRefLTE applies the LTE predicate on the "document_ref" field.

func DocumentRefNEQ added in v0.6.0

func DocumentRefNEQ(v string) predicate.VulnEqual

DocumentRefNEQ applies the NEQ predicate on the "document_ref" field.

func DocumentRefNotIn added in v0.6.0

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

DocumentRefNotIn applies the NotIn predicate on the "document_ref" field.

func EqualVulnID added in v0.5.0

func EqualVulnID(v uuid.UUID) predicate.VulnEqual

EqualVulnID applies equality check predicate on the "equal_vuln_id" field. It's identical to EqualVulnIDEQ.

func EqualVulnIDEQ added in v0.5.0

func EqualVulnIDEQ(v uuid.UUID) predicate.VulnEqual

EqualVulnIDEQ applies the EQ predicate on the "equal_vuln_id" field.

func EqualVulnIDIn added in v0.5.0

func EqualVulnIDIn(vs ...uuid.UUID) predicate.VulnEqual

EqualVulnIDIn applies the In predicate on the "equal_vuln_id" field.

func EqualVulnIDNEQ added in v0.5.0

func EqualVulnIDNEQ(v uuid.UUID) predicate.VulnEqual

EqualVulnIDNEQ applies the NEQ predicate on the "equal_vuln_id" field.

func EqualVulnIDNotIn added in v0.5.0

func EqualVulnIDNotIn(vs ...uuid.UUID) predicate.VulnEqual

EqualVulnIDNotIn applies the NotIn predicate on the "equal_vuln_id" field.

func HasVulnerabilityA added in v0.5.0

func HasVulnerabilityA() predicate.VulnEqual

HasVulnerabilityA applies the HasEdge predicate on the "vulnerability_a" edge.

func HasVulnerabilityAWith added in v0.5.0

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

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

func HasVulnerabilityB added in v0.5.0

func HasVulnerabilityB() predicate.VulnEqual

HasVulnerabilityB applies the HasEdge predicate on the "vulnerability_b" edge.

func HasVulnerabilityBWith added in v0.5.0

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.VulnEqual

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.VulnEqual

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.VulnEqual

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.VulnEqual

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.VulnEqual

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.VulnEqual

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.VulnEqual

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) 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).

func VulnID added in v0.5.0

func VulnID(v uuid.UUID) predicate.VulnEqual

VulnID applies equality check predicate on the "vuln_id" field. It's identical to VulnIDEQ.

func VulnIDEQ added in v0.5.0

func VulnIDEQ(v uuid.UUID) predicate.VulnEqual

VulnIDEQ applies the EQ predicate on the "vuln_id" field.

func VulnIDIn added in v0.5.0

func VulnIDIn(vs ...uuid.UUID) predicate.VulnEqual

VulnIDIn applies the In predicate on the "vuln_id" field.

func VulnIDNEQ added in v0.5.0

func VulnIDNEQ(v uuid.UUID) predicate.VulnEqual

VulnIDNEQ applies the NEQ predicate on the "vuln_id" field.

func VulnIDNotIn added in v0.5.0

func VulnIDNotIn(vs ...uuid.UUID) predicate.VulnEqual

VulnIDNotIn applies the NotIn predicate on the "vuln_id" field.

func VulnerabilitiesHash added in v0.5.0

func VulnerabilitiesHash(v string) predicate.VulnEqual

VulnerabilitiesHash applies equality check predicate on the "vulnerabilities_hash" field. It's identical to VulnerabilitiesHashEQ.

func VulnerabilitiesHashContains added in v0.5.0

func VulnerabilitiesHashContains(v string) predicate.VulnEqual

VulnerabilitiesHashContains applies the Contains predicate on the "vulnerabilities_hash" field.

func VulnerabilitiesHashContainsFold added in v0.5.0

func VulnerabilitiesHashContainsFold(v string) predicate.VulnEqual

VulnerabilitiesHashContainsFold applies the ContainsFold predicate on the "vulnerabilities_hash" field.

func VulnerabilitiesHashEQ added in v0.5.0

func VulnerabilitiesHashEQ(v string) predicate.VulnEqual

VulnerabilitiesHashEQ applies the EQ predicate on the "vulnerabilities_hash" field.

func VulnerabilitiesHashEqualFold added in v0.5.0

func VulnerabilitiesHashEqualFold(v string) predicate.VulnEqual

VulnerabilitiesHashEqualFold applies the EqualFold predicate on the "vulnerabilities_hash" field.

func VulnerabilitiesHashGT added in v0.5.0

func VulnerabilitiesHashGT(v string) predicate.VulnEqual

VulnerabilitiesHashGT applies the GT predicate on the "vulnerabilities_hash" field.

func VulnerabilitiesHashGTE added in v0.5.0

func VulnerabilitiesHashGTE(v string) predicate.VulnEqual

VulnerabilitiesHashGTE applies the GTE predicate on the "vulnerabilities_hash" field.

func VulnerabilitiesHashHasPrefix added in v0.5.0

func VulnerabilitiesHashHasPrefix(v string) predicate.VulnEqual

VulnerabilitiesHashHasPrefix applies the HasPrefix predicate on the "vulnerabilities_hash" field.

func VulnerabilitiesHashHasSuffix added in v0.5.0

func VulnerabilitiesHashHasSuffix(v string) predicate.VulnEqual

VulnerabilitiesHashHasSuffix applies the HasSuffix predicate on the "vulnerabilities_hash" field.

func VulnerabilitiesHashIn added in v0.5.0

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

VulnerabilitiesHashIn applies the In predicate on the "vulnerabilities_hash" field.

func VulnerabilitiesHashLT added in v0.5.0

func VulnerabilitiesHashLT(v string) predicate.VulnEqual

VulnerabilitiesHashLT applies the LT predicate on the "vulnerabilities_hash" field.

func VulnerabilitiesHashLTE added in v0.5.0

func VulnerabilitiesHashLTE(v string) predicate.VulnEqual

VulnerabilitiesHashLTE applies the LTE predicate on the "vulnerabilities_hash" field.

func VulnerabilitiesHashNEQ added in v0.5.0

func VulnerabilitiesHashNEQ(v string) predicate.VulnEqual

VulnerabilitiesHashNEQ applies the NEQ predicate on the "vulnerabilities_hash" field.

func VulnerabilitiesHashNotIn added in v0.5.0

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

VulnerabilitiesHashNotIn applies the NotIn predicate on the "vulnerabilities_hash" field.

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 ByDocumentRef added in v0.6.0

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

ByDocumentRef orders the results by the document_ref field.

func ByEqualVulnID added in v0.5.0

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

ByEqualVulnID orders the results by the equal_vuln_id 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 ByVulnID added in v0.5.0

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

ByVulnID orders the results by the vuln_id field.

func ByVulnerabilitiesHash added in v0.5.0

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

ByVulnerabilitiesHash orders the results by the vulnerabilities_hash field.

func ByVulnerabilityAField added in v0.5.0

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

ByVulnerabilityAField orders the results by vulnerability_a field.

func ByVulnerabilityBField added in v0.5.0

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

ByVulnerabilityBField orders the results by vulnerability_b field.

Jump to

Keyboard shortcuts

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