vulnerabilityid

package
v0.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for vulnerabilityid fields.

Functions

func And

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

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

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Type added in v0.5.0

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

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

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

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

func ValidColumn(column string) bool

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

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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