vulnerabilityid

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 3 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"
	// FieldTypeID holds the string denoting the type_id field in the database.
	FieldTypeID = "type_id"
	// EdgeType holds the string denoting the type edge name in mutations.
	EdgeType = "type"
	// EdgeVulnEquals holds the string denoting the vuln_equals edge name in mutations.
	EdgeVulnEquals = "vuln_equals"
	// Table holds the table name of the vulnerabilityid in the database.
	Table = "vulnerability_ids"
	// TypeTable is the table that holds the type relation/edge.
	TypeTable = "vulnerability_ids"
	// TypeInverseTable is the table name for the VulnerabilityType entity.
	// It exists in this package in order to avoid circular dependency with the "vulnerabilitytype" package.
	TypeInverseTable = "vulnerability_types"
	// TypeColumn is the table column denoting the type relation/edge.
	TypeColumn = "type_id"
	// VulnEqualsTable is the table that holds the vuln_equals relation/edge. The primary key declared below.
	VulnEqualsTable = "vuln_equal_vulnerability_ids"
	// VulnEqualsInverseTable is the table name for the VulnEqual entity.
	// It exists in this package in order to avoid circular dependency with the "vulnequal" package.
	VulnEqualsInverseTable = "vuln_equals"
)

Variables

Columns holds all SQL columns for vulnerabilityid fields.

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

Functions

func And

And groups predicates with the AND operator between them.

func HasType

func HasType() predicate.VulnerabilityID

HasType applies the HasEdge predicate on the "type" edge.

func HasTypeWith

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

func HasVulnEquals

func HasVulnEquals() predicate.VulnerabilityID

HasVulnEquals applies the HasEdge predicate on the "vuln_equals" edge.

func HasVulnEqualsWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.VulnerabilityID

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.VulnerabilityID

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.VulnerabilityID

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.VulnerabilityID

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.VulnerabilityID

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.VulnerabilityID

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) 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 TypeID

func TypeID(v int) predicate.VulnerabilityID

TypeID applies equality check predicate on the "type_id" field. It's identical to TypeIDEQ.

func TypeIDEQ

func TypeIDEQ(v int) predicate.VulnerabilityID

TypeIDEQ applies the EQ predicate on the "type_id" field.

func TypeIDIn

func TypeIDIn(vs ...int) predicate.VulnerabilityID

TypeIDIn applies the In predicate on the "type_id" field.

func TypeIDNEQ

func TypeIDNEQ(v int) predicate.VulnerabilityID

TypeIDNEQ applies the NEQ predicate on the "type_id" field.

func TypeIDNotIn

func TypeIDNotIn(vs ...int) predicate.VulnerabilityID

TypeIDNotIn applies the NotIn predicate on the "type_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 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 ByID

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

ByID orders the results by the id field.

func ByTypeField

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

ByTypeField orders the results by type field.

func ByTypeID

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

ByTypeID orders the results by the type_id field.

func ByVulnEquals

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

ByVulnEquals orders the results by vuln_equals terms.

func ByVulnEqualsCount

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

ByVulnEqualsCount orders the results by vuln_equals 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