identifiersentry

package
v0.0.0-...-7acab80 Latest Latest
Warning

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

Go to latest
Published: May 8, 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"
	// 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"
	// EdgeNodes holds the string denoting the nodes edge name in mutations.
	EdgeNodes = "nodes"
	// Table holds the table name of the identifiersentry in the database.
	Table = "identifiers_entries"
	// NodesTable is the table that holds the nodes relation/edge.
	NodesTable = "identifiers_entries"
	// NodesInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	NodesInverseTable = "nodes"
	// NodesColumn is the table column denoting the nodes relation/edge.
	NodesColumn = "node_identifiers"
)

Variables

Columns holds all SQL columns for identifiersentry fields.

View Source
var ForeignKeys = []string{
	"node_identifiers",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "identifiers_entries" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func HasNodes

func HasNodes() predicate.IdentifiersEntry

HasNodes applies the HasEdge predicate on the "nodes" edge.

func HasNodesWith

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

HasNodesWith applies the HasEdge predicate on the "nodes" 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 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 ByNodesField

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

ByNodesField orders the results by nodes 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