Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.VulnerabilityMetadata) predicate.VulnerabilityMetadata
- func Collector(v string) predicate.VulnerabilityMetadata
- func CollectorContains(v string) predicate.VulnerabilityMetadata
- func CollectorContainsFold(v string) predicate.VulnerabilityMetadata
- func CollectorEQ(v string) predicate.VulnerabilityMetadata
- func CollectorEqualFold(v string) predicate.VulnerabilityMetadata
- func CollectorGT(v string) predicate.VulnerabilityMetadata
- func CollectorGTE(v string) predicate.VulnerabilityMetadata
- func CollectorHasPrefix(v string) predicate.VulnerabilityMetadata
- func CollectorHasSuffix(v string) predicate.VulnerabilityMetadata
- func CollectorIn(vs ...string) predicate.VulnerabilityMetadata
- func CollectorLT(v string) predicate.VulnerabilityMetadata
- func CollectorLTE(v string) predicate.VulnerabilityMetadata
- func CollectorNEQ(v string) predicate.VulnerabilityMetadata
- func CollectorNotIn(vs ...string) predicate.VulnerabilityMetadata
- func DocumentRef(v string) predicate.VulnerabilityMetadata
- func DocumentRefContains(v string) predicate.VulnerabilityMetadata
- func DocumentRefContainsFold(v string) predicate.VulnerabilityMetadata
- func DocumentRefEQ(v string) predicate.VulnerabilityMetadata
- func DocumentRefEqualFold(v string) predicate.VulnerabilityMetadata
- func DocumentRefGT(v string) predicate.VulnerabilityMetadata
- func DocumentRefGTE(v string) predicate.VulnerabilityMetadata
- func DocumentRefHasPrefix(v string) predicate.VulnerabilityMetadata
- func DocumentRefHasSuffix(v string) predicate.VulnerabilityMetadata
- func DocumentRefIn(vs ...string) predicate.VulnerabilityMetadata
- func DocumentRefLT(v string) predicate.VulnerabilityMetadata
- func DocumentRefLTE(v string) predicate.VulnerabilityMetadata
- func DocumentRefNEQ(v string) predicate.VulnerabilityMetadata
- func DocumentRefNotIn(vs ...string) predicate.VulnerabilityMetadata
- func HasVulnerabilityID() predicate.VulnerabilityMetadata
- func HasVulnerabilityIDWith(preds ...predicate.VulnerabilityID) predicate.VulnerabilityMetadata
- func ID(id uuid.UUID) predicate.VulnerabilityMetadata
- func IDEQ(id uuid.UUID) predicate.VulnerabilityMetadata
- func IDGT(id uuid.UUID) predicate.VulnerabilityMetadata
- func IDGTE(id uuid.UUID) predicate.VulnerabilityMetadata
- func IDIn(ids ...uuid.UUID) predicate.VulnerabilityMetadata
- func IDLT(id uuid.UUID) predicate.VulnerabilityMetadata
- func IDLTE(id uuid.UUID) predicate.VulnerabilityMetadata
- func IDNEQ(id uuid.UUID) predicate.VulnerabilityMetadata
- func IDNotIn(ids ...uuid.UUID) predicate.VulnerabilityMetadata
- func Not(p predicate.VulnerabilityMetadata) predicate.VulnerabilityMetadata
- func Or(predicates ...predicate.VulnerabilityMetadata) predicate.VulnerabilityMetadata
- func Origin(v string) predicate.VulnerabilityMetadata
- func OriginContains(v string) predicate.VulnerabilityMetadata
- func OriginContainsFold(v string) predicate.VulnerabilityMetadata
- func OriginEQ(v string) predicate.VulnerabilityMetadata
- func OriginEqualFold(v string) predicate.VulnerabilityMetadata
- func OriginGT(v string) predicate.VulnerabilityMetadata
- func OriginGTE(v string) predicate.VulnerabilityMetadata
- func OriginHasPrefix(v string) predicate.VulnerabilityMetadata
- func OriginHasSuffix(v string) predicate.VulnerabilityMetadata
- func OriginIn(vs ...string) predicate.VulnerabilityMetadata
- func OriginLT(v string) predicate.VulnerabilityMetadata
- func OriginLTE(v string) predicate.VulnerabilityMetadata
- func OriginNEQ(v string) predicate.VulnerabilityMetadata
- func OriginNotIn(vs ...string) predicate.VulnerabilityMetadata
- func ScoreTypeEQ(v ScoreType) predicate.VulnerabilityMetadata
- func ScoreTypeIn(vs ...ScoreType) predicate.VulnerabilityMetadata
- func ScoreTypeNEQ(v ScoreType) predicate.VulnerabilityMetadata
- func ScoreTypeNotIn(vs ...ScoreType) predicate.VulnerabilityMetadata
- func ScoreTypeValidator(st ScoreType) error
- func ScoreValue(v float64) predicate.VulnerabilityMetadata
- func ScoreValueEQ(v float64) predicate.VulnerabilityMetadata
- func ScoreValueGT(v float64) predicate.VulnerabilityMetadata
- func ScoreValueGTE(v float64) predicate.VulnerabilityMetadata
- func ScoreValueIn(vs ...float64) predicate.VulnerabilityMetadata
- func ScoreValueLT(v float64) predicate.VulnerabilityMetadata
- func ScoreValueLTE(v float64) predicate.VulnerabilityMetadata
- func ScoreValueNEQ(v float64) predicate.VulnerabilityMetadata
- func ScoreValueNotIn(vs ...float64) predicate.VulnerabilityMetadata
- func Timestamp(v time.Time) predicate.VulnerabilityMetadata
- func TimestampEQ(v time.Time) predicate.VulnerabilityMetadata
- func TimestampGT(v time.Time) predicate.VulnerabilityMetadata
- func TimestampGTE(v time.Time) predicate.VulnerabilityMetadata
- func TimestampIn(vs ...time.Time) predicate.VulnerabilityMetadata
- func TimestampLT(v time.Time) predicate.VulnerabilityMetadata
- func TimestampLTE(v time.Time) predicate.VulnerabilityMetadata
- func TimestampNEQ(v time.Time) predicate.VulnerabilityMetadata
- func TimestampNotIn(vs ...time.Time) predicate.VulnerabilityMetadata
- func ValidColumn(column string) bool
- func VulnerabilityIDID(v uuid.UUID) predicate.VulnerabilityMetadata
- func VulnerabilityIDIDEQ(v uuid.UUID) predicate.VulnerabilityMetadata
- func VulnerabilityIDIDIn(vs ...uuid.UUID) predicate.VulnerabilityMetadata
- func VulnerabilityIDIDNEQ(v uuid.UUID) predicate.VulnerabilityMetadata
- func VulnerabilityIDIDNotIn(vs ...uuid.UUID) predicate.VulnerabilityMetadata
- type OrderOption
- func ByCollector(opts ...sql.OrderTermOption) OrderOption
- func ByDocumentRef(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrigin(opts ...sql.OrderTermOption) OrderOption
- func ByScoreType(opts ...sql.OrderTermOption) OrderOption
- func ByScoreValue(opts ...sql.OrderTermOption) OrderOption
- func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
- func ByVulnerabilityIDField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByVulnerabilityIDID(opts ...sql.OrderTermOption) OrderOption
- type ScoreType
Constants ¶
const ( // Label holds the string label denoting the vulnerabilitymetadata type in the database. Label = "vulnerability_metadata" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldVulnerabilityIDID holds the string denoting the vulnerability_id_id field in the database. FieldVulnerabilityIDID = "vulnerability_id_id" // FieldScoreType holds the string denoting the score_type field in the database. FieldScoreType = "score_type" // FieldScoreValue holds the string denoting the score_value field in the database. FieldScoreValue = "score_value" // FieldTimestamp holds the string denoting the timestamp field in the database. FieldTimestamp = "timestamp" // 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" // EdgeVulnerabilityID holds the string denoting the vulnerability_id edge name in mutations. EdgeVulnerabilityID = "vulnerability_id" // Table holds the table name of the vulnerabilitymetadata in the database. Table = "vulnerability_metadata" // VulnerabilityIDTable is the table that holds the vulnerability_id relation/edge. VulnerabilityIDTable = "vulnerability_metadata" // VulnerabilityIDInverseTable is the table name for the VulnerabilityID entity. // It exists in this package in order to avoid circular dependency with the "vulnerabilityid" package. VulnerabilityIDInverseTable = "vulnerability_ids" // VulnerabilityIDColumn is the table column denoting the vulnerability_id relation/edge. VulnerabilityIDColumn = "vulnerability_id_id" )
Variables ¶
var Columns = []string{ FieldID, FieldVulnerabilityIDID, FieldScoreType, FieldScoreValue, FieldTimestamp, FieldOrigin, FieldCollector, FieldDocumentRef, }
Columns holds all SQL columns for vulnerabilitymetadata fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func And ¶
func And(predicates ...predicate.VulnerabilityMetadata) predicate.VulnerabilityMetadata
And groups predicates with the AND operator between them.
func Collector ¶
func Collector(v string) predicate.VulnerabilityMetadata
Collector applies equality check predicate on the "collector" field. It's identical to CollectorEQ.
func CollectorContains ¶
func CollectorContains(v string) predicate.VulnerabilityMetadata
CollectorContains applies the Contains predicate on the "collector" field.
func CollectorContainsFold ¶
func CollectorContainsFold(v string) predicate.VulnerabilityMetadata
CollectorContainsFold applies the ContainsFold predicate on the "collector" field.
func CollectorEQ ¶
func CollectorEQ(v string) predicate.VulnerabilityMetadata
CollectorEQ applies the EQ predicate on the "collector" field.
func CollectorEqualFold ¶
func CollectorEqualFold(v string) predicate.VulnerabilityMetadata
CollectorEqualFold applies the EqualFold predicate on the "collector" field.
func CollectorGT ¶
func CollectorGT(v string) predicate.VulnerabilityMetadata
CollectorGT applies the GT predicate on the "collector" field.
func CollectorGTE ¶
func CollectorGTE(v string) predicate.VulnerabilityMetadata
CollectorGTE applies the GTE predicate on the "collector" field.
func CollectorHasPrefix ¶
func CollectorHasPrefix(v string) predicate.VulnerabilityMetadata
CollectorHasPrefix applies the HasPrefix predicate on the "collector" field.
func CollectorHasSuffix ¶
func CollectorHasSuffix(v string) predicate.VulnerabilityMetadata
CollectorHasSuffix applies the HasSuffix predicate on the "collector" field.
func CollectorIn ¶
func CollectorIn(vs ...string) predicate.VulnerabilityMetadata
CollectorIn applies the In predicate on the "collector" field.
func CollectorLT ¶
func CollectorLT(v string) predicate.VulnerabilityMetadata
CollectorLT applies the LT predicate on the "collector" field.
func CollectorLTE ¶
func CollectorLTE(v string) predicate.VulnerabilityMetadata
CollectorLTE applies the LTE predicate on the "collector" field.
func CollectorNEQ ¶
func CollectorNEQ(v string) predicate.VulnerabilityMetadata
CollectorNEQ applies the NEQ predicate on the "collector" field.
func CollectorNotIn ¶
func CollectorNotIn(vs ...string) predicate.VulnerabilityMetadata
CollectorNotIn applies the NotIn predicate on the "collector" field.
func DocumentRef ¶ added in v0.6.0
func DocumentRef(v string) predicate.VulnerabilityMetadata
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.VulnerabilityMetadata
DocumentRefContains applies the Contains predicate on the "document_ref" field.
func DocumentRefContainsFold ¶ added in v0.6.0
func DocumentRefContainsFold(v string) predicate.VulnerabilityMetadata
DocumentRefContainsFold applies the ContainsFold predicate on the "document_ref" field.
func DocumentRefEQ ¶ added in v0.6.0
func DocumentRefEQ(v string) predicate.VulnerabilityMetadata
DocumentRefEQ applies the EQ predicate on the "document_ref" field.
func DocumentRefEqualFold ¶ added in v0.6.0
func DocumentRefEqualFold(v string) predicate.VulnerabilityMetadata
DocumentRefEqualFold applies the EqualFold predicate on the "document_ref" field.
func DocumentRefGT ¶ added in v0.6.0
func DocumentRefGT(v string) predicate.VulnerabilityMetadata
DocumentRefGT applies the GT predicate on the "document_ref" field.
func DocumentRefGTE ¶ added in v0.6.0
func DocumentRefGTE(v string) predicate.VulnerabilityMetadata
DocumentRefGTE applies the GTE predicate on the "document_ref" field.
func DocumentRefHasPrefix ¶ added in v0.6.0
func DocumentRefHasPrefix(v string) predicate.VulnerabilityMetadata
DocumentRefHasPrefix applies the HasPrefix predicate on the "document_ref" field.
func DocumentRefHasSuffix ¶ added in v0.6.0
func DocumentRefHasSuffix(v string) predicate.VulnerabilityMetadata
DocumentRefHasSuffix applies the HasSuffix predicate on the "document_ref" field.
func DocumentRefIn ¶ added in v0.6.0
func DocumentRefIn(vs ...string) predicate.VulnerabilityMetadata
DocumentRefIn applies the In predicate on the "document_ref" field.
func DocumentRefLT ¶ added in v0.6.0
func DocumentRefLT(v string) predicate.VulnerabilityMetadata
DocumentRefLT applies the LT predicate on the "document_ref" field.
func DocumentRefLTE ¶ added in v0.6.0
func DocumentRefLTE(v string) predicate.VulnerabilityMetadata
DocumentRefLTE applies the LTE predicate on the "document_ref" field.
func DocumentRefNEQ ¶ added in v0.6.0
func DocumentRefNEQ(v string) predicate.VulnerabilityMetadata
DocumentRefNEQ applies the NEQ predicate on the "document_ref" field.
func DocumentRefNotIn ¶ added in v0.6.0
func DocumentRefNotIn(vs ...string) predicate.VulnerabilityMetadata
DocumentRefNotIn applies the NotIn predicate on the "document_ref" field.
func HasVulnerabilityID ¶
func HasVulnerabilityID() predicate.VulnerabilityMetadata
HasVulnerabilityID applies the HasEdge predicate on the "vulnerability_id" edge.
func HasVulnerabilityIDWith ¶
func HasVulnerabilityIDWith(preds ...predicate.VulnerabilityID) predicate.VulnerabilityMetadata
HasVulnerabilityIDWith applies the HasEdge predicate on the "vulnerability_id" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.VulnerabilityMetadata
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.VulnerabilityMetadata
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.VulnerabilityMetadata
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.VulnerabilityMetadata
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.VulnerabilityMetadata
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.VulnerabilityMetadata
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.VulnerabilityMetadata
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.VulnerabilityMetadata
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.VulnerabilityMetadata
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.VulnerabilityMetadata) predicate.VulnerabilityMetadata
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.VulnerabilityMetadata) predicate.VulnerabilityMetadata
Or groups predicates with the OR operator between them.
func Origin ¶
func Origin(v string) predicate.VulnerabilityMetadata
Origin applies equality check predicate on the "origin" field. It's identical to OriginEQ.
func OriginContains ¶
func OriginContains(v string) predicate.VulnerabilityMetadata
OriginContains applies the Contains predicate on the "origin" field.
func OriginContainsFold ¶
func OriginContainsFold(v string) predicate.VulnerabilityMetadata
OriginContainsFold applies the ContainsFold predicate on the "origin" field.
func OriginEQ ¶
func OriginEQ(v string) predicate.VulnerabilityMetadata
OriginEQ applies the EQ predicate on the "origin" field.
func OriginEqualFold ¶
func OriginEqualFold(v string) predicate.VulnerabilityMetadata
OriginEqualFold applies the EqualFold predicate on the "origin" field.
func OriginGT ¶
func OriginGT(v string) predicate.VulnerabilityMetadata
OriginGT applies the GT predicate on the "origin" field.
func OriginGTE ¶
func OriginGTE(v string) predicate.VulnerabilityMetadata
OriginGTE applies the GTE predicate on the "origin" field.
func OriginHasPrefix ¶
func OriginHasPrefix(v string) predicate.VulnerabilityMetadata
OriginHasPrefix applies the HasPrefix predicate on the "origin" field.
func OriginHasSuffix ¶
func OriginHasSuffix(v string) predicate.VulnerabilityMetadata
OriginHasSuffix applies the HasSuffix predicate on the "origin" field.
func OriginIn ¶
func OriginIn(vs ...string) predicate.VulnerabilityMetadata
OriginIn applies the In predicate on the "origin" field.
func OriginLT ¶
func OriginLT(v string) predicate.VulnerabilityMetadata
OriginLT applies the LT predicate on the "origin" field.
func OriginLTE ¶
func OriginLTE(v string) predicate.VulnerabilityMetadata
OriginLTE applies the LTE predicate on the "origin" field.
func OriginNEQ ¶
func OriginNEQ(v string) predicate.VulnerabilityMetadata
OriginNEQ applies the NEQ predicate on the "origin" field.
func OriginNotIn ¶
func OriginNotIn(vs ...string) predicate.VulnerabilityMetadata
OriginNotIn applies the NotIn predicate on the "origin" field.
func ScoreTypeEQ ¶
func ScoreTypeEQ(v ScoreType) predicate.VulnerabilityMetadata
ScoreTypeEQ applies the EQ predicate on the "score_type" field.
func ScoreTypeIn ¶
func ScoreTypeIn(vs ...ScoreType) predicate.VulnerabilityMetadata
ScoreTypeIn applies the In predicate on the "score_type" field.
func ScoreTypeNEQ ¶
func ScoreTypeNEQ(v ScoreType) predicate.VulnerabilityMetadata
ScoreTypeNEQ applies the NEQ predicate on the "score_type" field.
func ScoreTypeNotIn ¶
func ScoreTypeNotIn(vs ...ScoreType) predicate.VulnerabilityMetadata
ScoreTypeNotIn applies the NotIn predicate on the "score_type" field.
func ScoreTypeValidator ¶
ScoreTypeValidator is a validator for the "score_type" field enum values. It is called by the builders before save.
func ScoreValue ¶
func ScoreValue(v float64) predicate.VulnerabilityMetadata
ScoreValue applies equality check predicate on the "score_value" field. It's identical to ScoreValueEQ.
func ScoreValueEQ ¶
func ScoreValueEQ(v float64) predicate.VulnerabilityMetadata
ScoreValueEQ applies the EQ predicate on the "score_value" field.
func ScoreValueGT ¶
func ScoreValueGT(v float64) predicate.VulnerabilityMetadata
ScoreValueGT applies the GT predicate on the "score_value" field.
func ScoreValueGTE ¶
func ScoreValueGTE(v float64) predicate.VulnerabilityMetadata
ScoreValueGTE applies the GTE predicate on the "score_value" field.
func ScoreValueIn ¶
func ScoreValueIn(vs ...float64) predicate.VulnerabilityMetadata
ScoreValueIn applies the In predicate on the "score_value" field.
func ScoreValueLT ¶
func ScoreValueLT(v float64) predicate.VulnerabilityMetadata
ScoreValueLT applies the LT predicate on the "score_value" field.
func ScoreValueLTE ¶
func ScoreValueLTE(v float64) predicate.VulnerabilityMetadata
ScoreValueLTE applies the LTE predicate on the "score_value" field.
func ScoreValueNEQ ¶
func ScoreValueNEQ(v float64) predicate.VulnerabilityMetadata
ScoreValueNEQ applies the NEQ predicate on the "score_value" field.
func ScoreValueNotIn ¶
func ScoreValueNotIn(vs ...float64) predicate.VulnerabilityMetadata
ScoreValueNotIn applies the NotIn predicate on the "score_value" field.
func Timestamp ¶
func Timestamp(v time.Time) predicate.VulnerabilityMetadata
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
func TimestampEQ(v time.Time) predicate.VulnerabilityMetadata
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
func TimestampGT(v time.Time) predicate.VulnerabilityMetadata
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
func TimestampGTE(v time.Time) predicate.VulnerabilityMetadata
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
func TimestampIn(vs ...time.Time) predicate.VulnerabilityMetadata
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
func TimestampLT(v time.Time) predicate.VulnerabilityMetadata
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
func TimestampLTE(v time.Time) predicate.VulnerabilityMetadata
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
func TimestampNEQ(v time.Time) predicate.VulnerabilityMetadata
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
func TimestampNotIn(vs ...time.Time) predicate.VulnerabilityMetadata
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VulnerabilityIDID ¶
func VulnerabilityIDID(v uuid.UUID) predicate.VulnerabilityMetadata
VulnerabilityIDID applies equality check predicate on the "vulnerability_id_id" field. It's identical to VulnerabilityIDIDEQ.
func VulnerabilityIDIDEQ ¶
func VulnerabilityIDIDEQ(v uuid.UUID) predicate.VulnerabilityMetadata
VulnerabilityIDIDEQ applies the EQ predicate on the "vulnerability_id_id" field.
func VulnerabilityIDIDIn ¶
func VulnerabilityIDIDIn(vs ...uuid.UUID) predicate.VulnerabilityMetadata
VulnerabilityIDIDIn applies the In predicate on the "vulnerability_id_id" field.
func VulnerabilityIDIDNEQ ¶
func VulnerabilityIDIDNEQ(v uuid.UUID) predicate.VulnerabilityMetadata
VulnerabilityIDIDNEQ applies the NEQ predicate on the "vulnerability_id_id" field.
func VulnerabilityIDIDNotIn ¶
func VulnerabilityIDIDNotIn(vs ...uuid.UUID) predicate.VulnerabilityMetadata
VulnerabilityIDIDNotIn applies the NotIn predicate on the "vulnerability_id_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the VulnerabilityMetadata 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 ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrigin ¶
func ByOrigin(opts ...sql.OrderTermOption) OrderOption
ByOrigin orders the results by the origin field.
func ByScoreType ¶
func ByScoreType(opts ...sql.OrderTermOption) OrderOption
ByScoreType orders the results by the score_type field.
func ByScoreValue ¶
func ByScoreValue(opts ...sql.OrderTermOption) OrderOption
ByScoreValue orders the results by the score_value field.
func ByTimestamp ¶
func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
ByTimestamp orders the results by the timestamp field.
func ByVulnerabilityIDField ¶
func ByVulnerabilityIDField(field string, opts ...sql.OrderTermOption) OrderOption
ByVulnerabilityIDField orders the results by vulnerability_id field.
func ByVulnerabilityIDID ¶
func ByVulnerabilityIDID(opts ...sql.OrderTermOption) OrderOption
ByVulnerabilityIDID orders the results by the vulnerability_id_id field.
type ScoreType ¶
type ScoreType string
ScoreType defines the type for the "score_type" enum field.
const ( ScoreTypeCVSSv2 ScoreType = "CVSSv2" ScoreTypeCVSSv3 ScoreType = "CVSSv3" ScoreTypeEPSSv1 ScoreType = "EPSSv1" ScoreTypeEPSSv2 ScoreType = "EPSSv2" ScoreTypeCVSSv31 ScoreType = "CVSSv31" ScoreTypeCVSSv4 ScoreType = "CVSSv4" ScoreTypeOWASP ScoreType = "OWASP" ScoreTypeSSVC ScoreType = "SSVC" )
ScoreType values.
func (ScoreType) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*ScoreType) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.