identifiersentry

package
v0.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the identifiersentry type in the database.
	Label = "identifiers_entry"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNodeID holds the string denoting the node_id field in the database.
	FieldNodeID = "node_id"
	// FieldSoftwareIdentifierType holds the string denoting the software_identifier_type field in the database.
	FieldSoftwareIdentifierType = "software_identifier_type"
	// FieldSoftwareIdentifierValue holds the string denoting the software_identifier_value field in the database.
	FieldSoftwareIdentifierValue = "software_identifier_value"
	// EdgeNode holds the string denoting the node edge name in mutations.
	EdgeNode = "node"
	// Table holds the table name of the identifiersentry in the database.
	Table = "identifiers_entries"
	// NodeTable is the table that holds the node relation/edge.
	NodeTable = "identifiers_entries"
	// NodeInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	NodeInverseTable = "nodes"
	// NodeColumn is the table column denoting the node relation/edge.
	NodeColumn = "node_id"
)

Variables

Columns holds all SQL columns for identifiersentry fields.

Functions

func And

And groups predicates with the AND operator between them.

func HasNode

func HasNode() predicate.IdentifiersEntry

HasNode applies the HasEdge predicate on the "node" edge.

func HasNodeWith

func HasNodeWith(preds ...predicate.Node) predicate.IdentifiersEntry

HasNodeWith applies the HasEdge predicate on the "node" 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

func IDGTE(id int) predicate.IdentifiersEntry

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.IdentifiersEntry

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.IdentifiersEntry

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.IdentifiersEntry

IDNotIn applies the NotIn predicate on the ID field.

func NodeID added in v0.1.1

NodeID applies equality check predicate on the "node_id" field. It's identical to NodeIDEQ.

func NodeIDContains added in v0.1.1

func NodeIDContains(v string) predicate.IdentifiersEntry

NodeIDContains applies the Contains predicate on the "node_id" field.

func NodeIDContainsFold added in v0.1.1

func NodeIDContainsFold(v string) predicate.IdentifiersEntry

NodeIDContainsFold applies the ContainsFold predicate on the "node_id" field.

func NodeIDEQ added in v0.1.1

func NodeIDEQ(v string) predicate.IdentifiersEntry

NodeIDEQ applies the EQ predicate on the "node_id" field.

func NodeIDEqualFold added in v0.1.1

func NodeIDEqualFold(v string) predicate.IdentifiersEntry

NodeIDEqualFold applies the EqualFold predicate on the "node_id" field.

func NodeIDGT added in v0.1.1

func NodeIDGT(v string) predicate.IdentifiersEntry

NodeIDGT applies the GT predicate on the "node_id" field.

func NodeIDGTE added in v0.1.1

func NodeIDGTE(v string) predicate.IdentifiersEntry

NodeIDGTE applies the GTE predicate on the "node_id" field.

func NodeIDHasPrefix added in v0.1.1

func NodeIDHasPrefix(v string) predicate.IdentifiersEntry

NodeIDHasPrefix applies the HasPrefix predicate on the "node_id" field.

func NodeIDHasSuffix added in v0.1.1

func NodeIDHasSuffix(v string) predicate.IdentifiersEntry

NodeIDHasSuffix applies the HasSuffix predicate on the "node_id" field.

func NodeIDIn added in v0.1.1

func NodeIDIn(vs ...string) predicate.IdentifiersEntry

NodeIDIn applies the In predicate on the "node_id" field.

func NodeIDIsNil added in v0.1.1

func NodeIDIsNil() predicate.IdentifiersEntry

NodeIDIsNil applies the IsNil predicate on the "node_id" field.

func NodeIDLT added in v0.1.1

func NodeIDLT(v string) predicate.IdentifiersEntry

NodeIDLT applies the LT predicate on the "node_id" field.

func NodeIDLTE added in v0.1.1

func NodeIDLTE(v string) predicate.IdentifiersEntry

NodeIDLTE applies the LTE predicate on the "node_id" field.

func NodeIDNEQ added in v0.1.1

func NodeIDNEQ(v string) predicate.IdentifiersEntry

NodeIDNEQ applies the NEQ predicate on the "node_id" field.

func NodeIDNotIn added in v0.1.1

func NodeIDNotIn(vs ...string) predicate.IdentifiersEntry

NodeIDNotIn applies the NotIn predicate on the "node_id" field.

func NodeIDNotNil added in v0.1.1

func NodeIDNotNil() predicate.IdentifiersEntry

NodeIDNotNil applies the NotNil predicate on the "node_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 SoftwareIdentifierTypeEQ

func SoftwareIdentifierTypeEQ(v SoftwareIdentifierType) predicate.IdentifiersEntry

SoftwareIdentifierTypeEQ applies the EQ predicate on the "software_identifier_type" field.

func SoftwareIdentifierTypeIn

func SoftwareIdentifierTypeIn(vs ...SoftwareIdentifierType) predicate.IdentifiersEntry

SoftwareIdentifierTypeIn applies the In predicate on the "software_identifier_type" field.

func SoftwareIdentifierTypeNEQ

func SoftwareIdentifierTypeNEQ(v SoftwareIdentifierType) predicate.IdentifiersEntry

SoftwareIdentifierTypeNEQ applies the NEQ predicate on the "software_identifier_type" field.

func SoftwareIdentifierTypeNotIn

func SoftwareIdentifierTypeNotIn(vs ...SoftwareIdentifierType) predicate.IdentifiersEntry

SoftwareIdentifierTypeNotIn applies the NotIn predicate on the "software_identifier_type" field.

func SoftwareIdentifierTypeValidator

func SoftwareIdentifierTypeValidator(sit SoftwareIdentifierType) error

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

func SoftwareIdentifierValue

func SoftwareIdentifierValue(v string) predicate.IdentifiersEntry

SoftwareIdentifierValue applies equality check predicate on the "software_identifier_value" field. It's identical to SoftwareIdentifierValueEQ.

func SoftwareIdentifierValueContains

func SoftwareIdentifierValueContains(v string) predicate.IdentifiersEntry

SoftwareIdentifierValueContains applies the Contains predicate on the "software_identifier_value" field.

func SoftwareIdentifierValueContainsFold

func SoftwareIdentifierValueContainsFold(v string) predicate.IdentifiersEntry

SoftwareIdentifierValueContainsFold applies the ContainsFold predicate on the "software_identifier_value" field.

func SoftwareIdentifierValueEQ

func SoftwareIdentifierValueEQ(v string) predicate.IdentifiersEntry

SoftwareIdentifierValueEQ applies the EQ predicate on the "software_identifier_value" field.

func SoftwareIdentifierValueEqualFold

func SoftwareIdentifierValueEqualFold(v string) predicate.IdentifiersEntry

SoftwareIdentifierValueEqualFold applies the EqualFold predicate on the "software_identifier_value" field.

func SoftwareIdentifierValueGT

func SoftwareIdentifierValueGT(v string) predicate.IdentifiersEntry

SoftwareIdentifierValueGT applies the GT predicate on the "software_identifier_value" field.

func SoftwareIdentifierValueGTE

func SoftwareIdentifierValueGTE(v string) predicate.IdentifiersEntry

SoftwareIdentifierValueGTE applies the GTE predicate on the "software_identifier_value" field.

func SoftwareIdentifierValueHasPrefix

func SoftwareIdentifierValueHasPrefix(v string) predicate.IdentifiersEntry

SoftwareIdentifierValueHasPrefix applies the HasPrefix predicate on the "software_identifier_value" field.

func SoftwareIdentifierValueHasSuffix

func SoftwareIdentifierValueHasSuffix(v string) predicate.IdentifiersEntry

SoftwareIdentifierValueHasSuffix applies the HasSuffix predicate on the "software_identifier_value" field.

func SoftwareIdentifierValueIn

func SoftwareIdentifierValueIn(vs ...string) predicate.IdentifiersEntry

SoftwareIdentifierValueIn applies the In predicate on the "software_identifier_value" field.

func SoftwareIdentifierValueLT

func SoftwareIdentifierValueLT(v string) predicate.IdentifiersEntry

SoftwareIdentifierValueLT applies the LT predicate on the "software_identifier_value" field.

func SoftwareIdentifierValueLTE

func SoftwareIdentifierValueLTE(v string) predicate.IdentifiersEntry

SoftwareIdentifierValueLTE applies the LTE predicate on the "software_identifier_value" field.

func SoftwareIdentifierValueNEQ

func SoftwareIdentifierValueNEQ(v string) predicate.IdentifiersEntry

SoftwareIdentifierValueNEQ applies the NEQ predicate on the "software_identifier_value" field.

func SoftwareIdentifierValueNotIn

func SoftwareIdentifierValueNotIn(vs ...string) predicate.IdentifiersEntry

SoftwareIdentifierValueNotIn applies the NotIn predicate on the "software_identifier_value" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the IdentifiersEntry queries.

func ByID

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

ByID orders the results by the id field.

func ByNodeField

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

ByNodeField orders the results by node field.

func ByNodeID added in v0.1.1

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

ByNodeID orders the results by the node_id field.

func BySoftwareIdentifierType

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

BySoftwareIdentifierType orders the results by the software_identifier_type field.

func BySoftwareIdentifierValue

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

BySoftwareIdentifierValue orders the results by the software_identifier_value field.

type SoftwareIdentifierType

type SoftwareIdentifierType string

SoftwareIdentifierType defines the type for the "software_identifier_type" enum field.

const (
	SoftwareIdentifierTypeUNKNOWN_IDENTIFIER_TYPE SoftwareIdentifierType = "UNKNOWN_IDENTIFIER_TYPE"
	SoftwareIdentifierTypePURL                    SoftwareIdentifierType = "PURL"
	SoftwareIdentifierTypeCPE22                   SoftwareIdentifierType = "CPE22"
	SoftwareIdentifierTypeCPE23                   SoftwareIdentifierType = "CPE23"
	SoftwareIdentifierTypeGITOID                  SoftwareIdentifierType = "GITOID"
)

SoftwareIdentifierType values.

func (SoftwareIdentifierType) String

func (sit SoftwareIdentifierType) String() string

Jump to

Keyboard shortcuts

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