vulnerabilitymetadata

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Columns holds all SQL columns for vulnerabilitymetadata fields.

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

Functions

func And

And groups predicates with the AND operator between them.

func Collector

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

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

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.VulnerabilityMetadata

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 Origin

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

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

OriginGT applies the GT predicate on the "origin" field.

func OriginGTE

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

OriginLT applies the LT predicate on the "origin" field.

func OriginLTE

OriginLTE applies the LTE predicate on the "origin" field.

func OriginNEQ

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

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

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

func ScoreTypeValidator(st ScoreType) error

ScoreTypeValidator is a validator for the "score_type" field enum values. It is called by the builders before save.

func ScoreValue

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

Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.

func TimestampEQ

TimestampEQ applies the EQ predicate on the "timestamp" field.

func TimestampGT

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

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

func ValidColumn(column string) bool

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

type OrderOption func(*sql.Selector)

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

func (e ScoreType) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (ScoreType) String

func (st ScoreType) String() string

func (*ScoreType) UnmarshalGQL

func (e *ScoreType) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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