Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.VulnerabilityID) predicate.VulnerabilityID
- func HasCertifyVuln() predicate.VulnerabilityID
- func HasCertifyVulnWith(preds ...predicate.CertifyVuln) predicate.VulnerabilityID
- func HasMetadata() predicate.VulnerabilityID
- func HasMetadataWith(preds ...predicate.VulnerabilityMetadata) predicate.VulnerabilityID
- func HasVex() predicate.VulnerabilityID
- func HasVexWith(preds ...predicate.CertifyVex) predicate.VulnerabilityID
- func HasVulnEqualVulnA() predicate.VulnerabilityID
- func HasVulnEqualVulnAWith(preds ...predicate.VulnEqual) predicate.VulnerabilityID
- func HasVulnEqualVulnB() predicate.VulnerabilityID
- func HasVulnEqualVulnBWith(preds ...predicate.VulnEqual) predicate.VulnerabilityID
- func ID(id uuid.UUID) predicate.VulnerabilityID
- func IDEQ(id uuid.UUID) predicate.VulnerabilityID
- func IDGT(id uuid.UUID) predicate.VulnerabilityID
- func IDGTE(id uuid.UUID) predicate.VulnerabilityID
- func IDIn(ids ...uuid.UUID) predicate.VulnerabilityID
- func IDLT(id uuid.UUID) predicate.VulnerabilityID
- func IDLTE(id uuid.UUID) predicate.VulnerabilityID
- func IDNEQ(id uuid.UUID) predicate.VulnerabilityID
- func IDNotIn(ids ...uuid.UUID) predicate.VulnerabilityID
- func Not(p predicate.VulnerabilityID) predicate.VulnerabilityID
- func Or(predicates ...predicate.VulnerabilityID) predicate.VulnerabilityID
- func Type(v string) predicate.VulnerabilityID
- func TypeContains(v string) predicate.VulnerabilityID
- func TypeContainsFold(v string) predicate.VulnerabilityID
- func TypeEQ(v string) predicate.VulnerabilityID
- func TypeEqualFold(v string) predicate.VulnerabilityID
- func TypeGT(v string) predicate.VulnerabilityID
- func TypeGTE(v string) predicate.VulnerabilityID
- func TypeHasPrefix(v string) predicate.VulnerabilityID
- func TypeHasSuffix(v string) predicate.VulnerabilityID
- func TypeIn(vs ...string) predicate.VulnerabilityID
- func TypeLT(v string) predicate.VulnerabilityID
- func TypeLTE(v string) predicate.VulnerabilityID
- func TypeNEQ(v string) predicate.VulnerabilityID
- func TypeNotIn(vs ...string) predicate.VulnerabilityID
- func ValidColumn(column string) bool
- func VulnerabilityID(v string) predicate.VulnerabilityID
- func VulnerabilityIDContains(v string) predicate.VulnerabilityID
- func VulnerabilityIDContainsFold(v string) predicate.VulnerabilityID
- func VulnerabilityIDEQ(v string) predicate.VulnerabilityID
- func VulnerabilityIDEqualFold(v string) predicate.VulnerabilityID
- func VulnerabilityIDGT(v string) predicate.VulnerabilityID
- func VulnerabilityIDGTE(v string) predicate.VulnerabilityID
- func VulnerabilityIDHasPrefix(v string) predicate.VulnerabilityID
- func VulnerabilityIDHasSuffix(v string) predicate.VulnerabilityID
- func VulnerabilityIDIn(vs ...string) predicate.VulnerabilityID
- func VulnerabilityIDLT(v string) predicate.VulnerabilityID
- func VulnerabilityIDLTE(v string) predicate.VulnerabilityID
- func VulnerabilityIDNEQ(v string) predicate.VulnerabilityID
- func VulnerabilityIDNotIn(vs ...string) predicate.VulnerabilityID
- type OrderOption
- func ByCertifyVuln(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCertifyVulnCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMetadata(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMetadataCount(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByVex(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVexCount(opts ...sql.OrderTermOption) OrderOption
- func ByVulnEqualVulnA(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVulnEqualVulnACount(opts ...sql.OrderTermOption) OrderOption
- func ByVulnEqualVulnB(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVulnEqualVulnBCount(opts ...sql.OrderTermOption) OrderOption
- func ByVulnerabilityID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the vulnerabilityid type in the database. Label = "vulnerability_id" // 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" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeVulnEqualVulnA holds the string denoting the vuln_equal_vuln_a edge name in mutations. EdgeVulnEqualVulnA = "vuln_equal_vuln_a" // EdgeVulnEqualVulnB holds the string denoting the vuln_equal_vuln_b edge name in mutations. EdgeVulnEqualVulnB = "vuln_equal_vuln_b" // EdgeMetadata holds the string denoting the metadata edge name in mutations. EdgeMetadata = "metadata" // EdgeCertifyVuln holds the string denoting the certify_vuln edge name in mutations. EdgeCertifyVuln = "certify_vuln" // EdgeVex holds the string denoting the vex edge name in mutations. EdgeVex = "vex" // Table holds the table name of the vulnerabilityid in the database. Table = "vulnerability_ids" // VulnEqualVulnATable is the table that holds the vuln_equal_vuln_a relation/edge. VulnEqualVulnATable = "vuln_equals" // VulnEqualVulnAInverseTable is the table name for the VulnEqual entity. // It exists in this package in order to avoid circular dependency with the "vulnequal" package. VulnEqualVulnAInverseTable = "vuln_equals" // VulnEqualVulnAColumn is the table column denoting the vuln_equal_vuln_a relation/edge. VulnEqualVulnAColumn = "vuln_id" // VulnEqualVulnBTable is the table that holds the vuln_equal_vuln_b relation/edge. VulnEqualVulnBTable = "vuln_equals" // VulnEqualVulnBInverseTable is the table name for the VulnEqual entity. // It exists in this package in order to avoid circular dependency with the "vulnequal" package. VulnEqualVulnBInverseTable = "vuln_equals" // VulnEqualVulnBColumn is the table column denoting the vuln_equal_vuln_b relation/edge. VulnEqualVulnBColumn = "equal_vuln_id" // MetadataTable is the table that holds the metadata relation/edge. MetadataTable = "vulnerability_metadata" // MetadataInverseTable is the table name for the VulnerabilityMetadata entity. // It exists in this package in order to avoid circular dependency with the "vulnerabilitymetadata" package. MetadataInverseTable = "vulnerability_metadata" // MetadataColumn is the table column denoting the metadata relation/edge. MetadataColumn = "vulnerability_id_id" // CertifyVulnTable is the table that holds the certify_vuln relation/edge. CertifyVulnTable = "certify_vulns" // CertifyVulnInverseTable is the table name for the CertifyVuln entity. // It exists in this package in order to avoid circular dependency with the "certifyvuln" package. CertifyVulnInverseTable = "certify_vulns" // CertifyVulnColumn is the table column denoting the certify_vuln relation/edge. CertifyVulnColumn = "vulnerability_id" // VexTable is the table that holds the vex relation/edge. VexTable = "certify_vexes" // VexInverseTable is the table name for the CertifyVex entity. // It exists in this package in order to avoid circular dependency with the "certifyvex" package. VexInverseTable = "certify_vexes" // VexColumn is the table column denoting the vex relation/edge. VexColumn = "vulnerability_id" )
Variables ¶
var ( // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldVulnerabilityID, FieldType, }
Columns holds all SQL columns for vulnerabilityid fields.
Functions ¶
func And ¶
func And(predicates ...predicate.VulnerabilityID) predicate.VulnerabilityID
And groups predicates with the AND operator between them.
func HasCertifyVuln ¶ added in v0.6.0
func HasCertifyVuln() predicate.VulnerabilityID
HasCertifyVuln applies the HasEdge predicate on the "certify_vuln" edge.
func HasCertifyVulnWith ¶ added in v0.6.0
func HasCertifyVulnWith(preds ...predicate.CertifyVuln) predicate.VulnerabilityID
HasCertifyVulnWith applies the HasEdge predicate on the "certify_vuln" edge with a given conditions (other predicates).
func HasMetadata ¶ added in v0.6.0
func HasMetadata() predicate.VulnerabilityID
HasMetadata applies the HasEdge predicate on the "metadata" edge.
func HasMetadataWith ¶ added in v0.6.0
func HasMetadataWith(preds ...predicate.VulnerabilityMetadata) predicate.VulnerabilityID
HasMetadataWith applies the HasEdge predicate on the "metadata" edge with a given conditions (other predicates).
func HasVex ¶ added in v0.6.0
func HasVex() predicate.VulnerabilityID
HasVex applies the HasEdge predicate on the "vex" edge.
func HasVexWith ¶ added in v0.6.0
func HasVexWith(preds ...predicate.CertifyVex) predicate.VulnerabilityID
HasVexWith applies the HasEdge predicate on the "vex" edge with a given conditions (other predicates).
func HasVulnEqualVulnA ¶ added in v0.5.0
func HasVulnEqualVulnA() predicate.VulnerabilityID
HasVulnEqualVulnA applies the HasEdge predicate on the "vuln_equal_vuln_a" edge.
func HasVulnEqualVulnAWith ¶ added in v0.5.0
func HasVulnEqualVulnAWith(preds ...predicate.VulnEqual) predicate.VulnerabilityID
HasVulnEqualVulnAWith applies the HasEdge predicate on the "vuln_equal_vuln_a" edge with a given conditions (other predicates).
func HasVulnEqualVulnB ¶ added in v0.5.0
func HasVulnEqualVulnB() predicate.VulnerabilityID
HasVulnEqualVulnB applies the HasEdge predicate on the "vuln_equal_vuln_b" edge.
func HasVulnEqualVulnBWith ¶ added in v0.5.0
func HasVulnEqualVulnBWith(preds ...predicate.VulnEqual) predicate.VulnerabilityID
HasVulnEqualVulnBWith applies the HasEdge predicate on the "vuln_equal_vuln_b" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.VulnerabilityID
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.VulnerabilityID
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.VulnerabilityID
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.VulnerabilityID
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.VulnerabilityID
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.VulnerabilityID
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.VulnerabilityID
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.VulnerabilityID
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.VulnerabilityID
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.VulnerabilityID) predicate.VulnerabilityID
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.VulnerabilityID) predicate.VulnerabilityID
Or groups predicates with the OR operator between them.
func Type ¶ added in v0.5.0
func Type(v string) predicate.VulnerabilityID
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeContains ¶ added in v0.5.0
func TypeContains(v string) predicate.VulnerabilityID
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶ added in v0.5.0
func TypeContainsFold(v string) predicate.VulnerabilityID
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEQ ¶ added in v0.5.0
func TypeEQ(v string) predicate.VulnerabilityID
TypeEQ applies the EQ predicate on the "type" field.
func TypeEqualFold ¶ added in v0.5.0
func TypeEqualFold(v string) predicate.VulnerabilityID
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeGT ¶ added in v0.5.0
func TypeGT(v string) predicate.VulnerabilityID
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶ added in v0.5.0
func TypeGTE(v string) predicate.VulnerabilityID
TypeGTE applies the GTE predicate on the "type" field.
func TypeHasPrefix ¶ added in v0.5.0
func TypeHasPrefix(v string) predicate.VulnerabilityID
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶ added in v0.5.0
func TypeHasSuffix(v string) predicate.VulnerabilityID
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeIn ¶ added in v0.5.0
func TypeIn(vs ...string) predicate.VulnerabilityID
TypeIn applies the In predicate on the "type" field.
func TypeLT ¶ added in v0.5.0
func TypeLT(v string) predicate.VulnerabilityID
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶ added in v0.5.0
func TypeLTE(v string) predicate.VulnerabilityID
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶ added in v0.5.0
func TypeNEQ(v string) predicate.VulnerabilityID
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶ added in v0.5.0
func TypeNotIn(vs ...string) predicate.VulnerabilityID
TypeNotIn applies the NotIn predicate on the "type" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VulnerabilityID ¶
func VulnerabilityID(v string) predicate.VulnerabilityID
VulnerabilityID applies equality check predicate on the "vulnerability_id" field. It's identical to VulnerabilityIDEQ.
func VulnerabilityIDContains ¶
func VulnerabilityIDContains(v string) predicate.VulnerabilityID
VulnerabilityIDContains applies the Contains predicate on the "vulnerability_id" field.
func VulnerabilityIDContainsFold ¶
func VulnerabilityIDContainsFold(v string) predicate.VulnerabilityID
VulnerabilityIDContainsFold applies the ContainsFold predicate on the "vulnerability_id" field.
func VulnerabilityIDEQ ¶
func VulnerabilityIDEQ(v string) predicate.VulnerabilityID
VulnerabilityIDEQ applies the EQ predicate on the "vulnerability_id" field.
func VulnerabilityIDEqualFold ¶
func VulnerabilityIDEqualFold(v string) predicate.VulnerabilityID
VulnerabilityIDEqualFold applies the EqualFold predicate on the "vulnerability_id" field.
func VulnerabilityIDGT ¶
func VulnerabilityIDGT(v string) predicate.VulnerabilityID
VulnerabilityIDGT applies the GT predicate on the "vulnerability_id" field.
func VulnerabilityIDGTE ¶
func VulnerabilityIDGTE(v string) predicate.VulnerabilityID
VulnerabilityIDGTE applies the GTE predicate on the "vulnerability_id" field.
func VulnerabilityIDHasPrefix ¶
func VulnerabilityIDHasPrefix(v string) predicate.VulnerabilityID
VulnerabilityIDHasPrefix applies the HasPrefix predicate on the "vulnerability_id" field.
func VulnerabilityIDHasSuffix ¶
func VulnerabilityIDHasSuffix(v string) predicate.VulnerabilityID
VulnerabilityIDHasSuffix applies the HasSuffix predicate on the "vulnerability_id" field.
func VulnerabilityIDIn ¶
func VulnerabilityIDIn(vs ...string) predicate.VulnerabilityID
VulnerabilityIDIn applies the In predicate on the "vulnerability_id" field.
func VulnerabilityIDLT ¶
func VulnerabilityIDLT(v string) predicate.VulnerabilityID
VulnerabilityIDLT applies the LT predicate on the "vulnerability_id" field.
func VulnerabilityIDLTE ¶
func VulnerabilityIDLTE(v string) predicate.VulnerabilityID
VulnerabilityIDLTE applies the LTE predicate on the "vulnerability_id" field.
func VulnerabilityIDNEQ ¶
func VulnerabilityIDNEQ(v string) predicate.VulnerabilityID
VulnerabilityIDNEQ applies the NEQ predicate on the "vulnerability_id" field.
func VulnerabilityIDNotIn ¶
func VulnerabilityIDNotIn(vs ...string) predicate.VulnerabilityID
VulnerabilityIDNotIn applies the NotIn predicate on the "vulnerability_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the VulnerabilityID queries.
func ByCertifyVuln ¶ added in v0.6.0
func ByCertifyVuln(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCertifyVuln orders the results by certify_vuln terms.
func ByCertifyVulnCount ¶ added in v0.6.0
func ByCertifyVulnCount(opts ...sql.OrderTermOption) OrderOption
ByCertifyVulnCount orders the results by certify_vuln count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMetadata ¶ added in v0.6.0
func ByMetadata(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMetadata orders the results by metadata terms.
func ByMetadataCount ¶ added in v0.6.0
func ByMetadataCount(opts ...sql.OrderTermOption) OrderOption
ByMetadataCount orders the results by metadata count.
func ByType ¶ added in v0.5.0
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByVex ¶ added in v0.6.0
func ByVex(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVex orders the results by vex terms.
func ByVexCount ¶ added in v0.6.0
func ByVexCount(opts ...sql.OrderTermOption) OrderOption
ByVexCount orders the results by vex count.
func ByVulnEqualVulnA ¶ added in v0.5.0
func ByVulnEqualVulnA(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVulnEqualVulnA orders the results by vuln_equal_vuln_a terms.
func ByVulnEqualVulnACount ¶ added in v0.5.0
func ByVulnEqualVulnACount(opts ...sql.OrderTermOption) OrderOption
ByVulnEqualVulnACount orders the results by vuln_equal_vuln_a count.
func ByVulnEqualVulnB ¶ added in v0.5.0
func ByVulnEqualVulnB(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVulnEqualVulnB orders the results by vuln_equal_vuln_b terms.
func ByVulnEqualVulnBCount ¶ added in v0.5.0
func ByVulnEqualVulnBCount(opts ...sql.OrderTermOption) OrderOption
ByVulnEqualVulnBCount orders the results by vuln_equal_vuln_b count.
func ByVulnerabilityID ¶
func ByVulnerabilityID(opts ...sql.OrderTermOption) OrderOption
ByVulnerabilityID orders the results by the vulnerability_id field.