Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ExternalReference) predicate.ExternalReference
- func Authority(v string) predicate.ExternalReference
- func AuthorityContains(v string) predicate.ExternalReference
- func AuthorityContainsFold(v string) predicate.ExternalReference
- func AuthorityEQ(v string) predicate.ExternalReference
- func AuthorityEqualFold(v string) predicate.ExternalReference
- func AuthorityGT(v string) predicate.ExternalReference
- func AuthorityGTE(v string) predicate.ExternalReference
- func AuthorityHasPrefix(v string) predicate.ExternalReference
- func AuthorityHasSuffix(v string) predicate.ExternalReference
- func AuthorityIn(vs ...string) predicate.ExternalReference
- func AuthorityIsNil() predicate.ExternalReference
- func AuthorityLT(v string) predicate.ExternalReference
- func AuthorityLTE(v string) predicate.ExternalReference
- func AuthorityNEQ(v string) predicate.ExternalReference
- func AuthorityNotIn(vs ...string) predicate.ExternalReference
- func AuthorityNotNil() predicate.ExternalReference
- func Comment(v string) predicate.ExternalReference
- func CommentContains(v string) predicate.ExternalReference
- func CommentContainsFold(v string) predicate.ExternalReference
- func CommentEQ(v string) predicate.ExternalReference
- func CommentEqualFold(v string) predicate.ExternalReference
- func CommentGT(v string) predicate.ExternalReference
- func CommentGTE(v string) predicate.ExternalReference
- func CommentHasPrefix(v string) predicate.ExternalReference
- func CommentHasSuffix(v string) predicate.ExternalReference
- func CommentIn(vs ...string) predicate.ExternalReference
- func CommentLT(v string) predicate.ExternalReference
- func CommentLTE(v string) predicate.ExternalReference
- func CommentNEQ(v string) predicate.ExternalReference
- func CommentNotIn(vs ...string) predicate.ExternalReference
- func HasHashes() predicate.ExternalReference
- func HasHashesWith(preds ...predicate.HashesEntry) predicate.ExternalReference
- func HasNode() predicate.ExternalReference
- func HasNodeWith(preds ...predicate.Node) predicate.ExternalReference
- func ID(id int) predicate.ExternalReference
- func IDEQ(id int) predicate.ExternalReference
- func IDGT(id int) predicate.ExternalReference
- func IDGTE(id int) predicate.ExternalReference
- func IDIn(ids ...int) predicate.ExternalReference
- func IDLT(id int) predicate.ExternalReference
- func IDLTE(id int) predicate.ExternalReference
- func IDNEQ(id int) predicate.ExternalReference
- func IDNotIn(ids ...int) predicate.ExternalReference
- func NodeID(v string) predicate.ExternalReference
- func NodeIDContains(v string) predicate.ExternalReference
- func NodeIDContainsFold(v string) predicate.ExternalReference
- func NodeIDEQ(v string) predicate.ExternalReference
- func NodeIDEqualFold(v string) predicate.ExternalReference
- func NodeIDGT(v string) predicate.ExternalReference
- func NodeIDGTE(v string) predicate.ExternalReference
- func NodeIDHasPrefix(v string) predicate.ExternalReference
- func NodeIDHasSuffix(v string) predicate.ExternalReference
- func NodeIDIn(vs ...string) predicate.ExternalReference
- func NodeIDIsNil() predicate.ExternalReference
- func NodeIDLT(v string) predicate.ExternalReference
- func NodeIDLTE(v string) predicate.ExternalReference
- func NodeIDNEQ(v string) predicate.ExternalReference
- func NodeIDNotIn(vs ...string) predicate.ExternalReference
- func NodeIDNotNil() predicate.ExternalReference
- func Not(p predicate.ExternalReference) predicate.ExternalReference
- func Or(predicates ...predicate.ExternalReference) predicate.ExternalReference
- func TypeEQ(v Type) predicate.ExternalReference
- func TypeIn(vs ...Type) predicate.ExternalReference
- func TypeNEQ(v Type) predicate.ExternalReference
- func TypeNotIn(vs ...Type) predicate.ExternalReference
- func TypeValidator(_type Type) error
- func URL(v string) predicate.ExternalReference
- func URLContains(v string) predicate.ExternalReference
- func URLContainsFold(v string) predicate.ExternalReference
- func URLEQ(v string) predicate.ExternalReference
- func URLEqualFold(v string) predicate.ExternalReference
- func URLGT(v string) predicate.ExternalReference
- func URLGTE(v string) predicate.ExternalReference
- func URLHasPrefix(v string) predicate.ExternalReference
- func URLHasSuffix(v string) predicate.ExternalReference
- func URLIn(vs ...string) predicate.ExternalReference
- func URLLT(v string) predicate.ExternalReference
- func URLLTE(v string) predicate.ExternalReference
- func URLNEQ(v string) predicate.ExternalReference
- func URLNotIn(vs ...string) predicate.ExternalReference
- func ValidColumn(column string) bool
- type OrderOption
- func ByAuthority(opts ...sql.OrderTermOption) OrderOption
- func ByComment(opts ...sql.OrderTermOption) OrderOption
- func ByHashes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByHashesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNodeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByNodeID(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the externalreference type in the database. Label = "external_reference" // 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" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldComment holds the string denoting the comment field in the database. FieldComment = "comment" // FieldAuthority holds the string denoting the authority field in the database. FieldAuthority = "authority" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeHashes holds the string denoting the hashes edge name in mutations. EdgeHashes = "hashes" // EdgeNode holds the string denoting the node edge name in mutations. EdgeNode = "node" // Table holds the table name of the externalreference in the database. Table = "external_references" // HashesTable is the table that holds the hashes relation/edge. HashesTable = "hashes_entries" // HashesInverseTable is the table name for the HashesEntry entity. // It exists in this package in order to avoid circular dependency with the "hashesentry" package. HashesInverseTable = "hashes_entries" // HashesColumn is the table column denoting the hashes relation/edge. HashesColumn = "external_reference_id" // NodeTable is the table that holds the node relation/edge. NodeTable = "external_references" // 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 ¶
var Columns = []string{ FieldID, FieldNodeID, FieldURL, FieldComment, FieldAuthority, FieldType, }
Columns holds all SQL columns for externalreference fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ExternalReference) predicate.ExternalReference
And groups predicates with the AND operator between them.
func Authority ¶
func Authority(v string) predicate.ExternalReference
Authority applies equality check predicate on the "authority" field. It's identical to AuthorityEQ.
func AuthorityContains ¶
func AuthorityContains(v string) predicate.ExternalReference
AuthorityContains applies the Contains predicate on the "authority" field.
func AuthorityContainsFold ¶
func AuthorityContainsFold(v string) predicate.ExternalReference
AuthorityContainsFold applies the ContainsFold predicate on the "authority" field.
func AuthorityEQ ¶
func AuthorityEQ(v string) predicate.ExternalReference
AuthorityEQ applies the EQ predicate on the "authority" field.
func AuthorityEqualFold ¶
func AuthorityEqualFold(v string) predicate.ExternalReference
AuthorityEqualFold applies the EqualFold predicate on the "authority" field.
func AuthorityGT ¶
func AuthorityGT(v string) predicate.ExternalReference
AuthorityGT applies the GT predicate on the "authority" field.
func AuthorityGTE ¶
func AuthorityGTE(v string) predicate.ExternalReference
AuthorityGTE applies the GTE predicate on the "authority" field.
func AuthorityHasPrefix ¶
func AuthorityHasPrefix(v string) predicate.ExternalReference
AuthorityHasPrefix applies the HasPrefix predicate on the "authority" field.
func AuthorityHasSuffix ¶
func AuthorityHasSuffix(v string) predicate.ExternalReference
AuthorityHasSuffix applies the HasSuffix predicate on the "authority" field.
func AuthorityIn ¶
func AuthorityIn(vs ...string) predicate.ExternalReference
AuthorityIn applies the In predicate on the "authority" field.
func AuthorityIsNil ¶
func AuthorityIsNil() predicate.ExternalReference
AuthorityIsNil applies the IsNil predicate on the "authority" field.
func AuthorityLT ¶
func AuthorityLT(v string) predicate.ExternalReference
AuthorityLT applies the LT predicate on the "authority" field.
func AuthorityLTE ¶
func AuthorityLTE(v string) predicate.ExternalReference
AuthorityLTE applies the LTE predicate on the "authority" field.
func AuthorityNEQ ¶
func AuthorityNEQ(v string) predicate.ExternalReference
AuthorityNEQ applies the NEQ predicate on the "authority" field.
func AuthorityNotIn ¶
func AuthorityNotIn(vs ...string) predicate.ExternalReference
AuthorityNotIn applies the NotIn predicate on the "authority" field.
func AuthorityNotNil ¶
func AuthorityNotNil() predicate.ExternalReference
AuthorityNotNil applies the NotNil predicate on the "authority" field.
func Comment ¶
func Comment(v string) predicate.ExternalReference
Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
func CommentContains ¶
func CommentContains(v string) predicate.ExternalReference
CommentContains applies the Contains predicate on the "comment" field.
func CommentContainsFold ¶
func CommentContainsFold(v string) predicate.ExternalReference
CommentContainsFold applies the ContainsFold predicate on the "comment" field.
func CommentEQ ¶
func CommentEQ(v string) predicate.ExternalReference
CommentEQ applies the EQ predicate on the "comment" field.
func CommentEqualFold ¶
func CommentEqualFold(v string) predicate.ExternalReference
CommentEqualFold applies the EqualFold predicate on the "comment" field.
func CommentGT ¶
func CommentGT(v string) predicate.ExternalReference
CommentGT applies the GT predicate on the "comment" field.
func CommentGTE ¶
func CommentGTE(v string) predicate.ExternalReference
CommentGTE applies the GTE predicate on the "comment" field.
func CommentHasPrefix ¶
func CommentHasPrefix(v string) predicate.ExternalReference
CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
func CommentHasSuffix ¶
func CommentHasSuffix(v string) predicate.ExternalReference
CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
func CommentIn ¶
func CommentIn(vs ...string) predicate.ExternalReference
CommentIn applies the In predicate on the "comment" field.
func CommentLT ¶
func CommentLT(v string) predicate.ExternalReference
CommentLT applies the LT predicate on the "comment" field.
func CommentLTE ¶
func CommentLTE(v string) predicate.ExternalReference
CommentLTE applies the LTE predicate on the "comment" field.
func CommentNEQ ¶
func CommentNEQ(v string) predicate.ExternalReference
CommentNEQ applies the NEQ predicate on the "comment" field.
func CommentNotIn ¶
func CommentNotIn(vs ...string) predicate.ExternalReference
CommentNotIn applies the NotIn predicate on the "comment" field.
func HasHashes ¶
func HasHashes() predicate.ExternalReference
HasHashes applies the HasEdge predicate on the "hashes" edge.
func HasHashesWith ¶
func HasHashesWith(preds ...predicate.HashesEntry) predicate.ExternalReference
HasHashesWith applies the HasEdge predicate on the "hashes" edge with a given conditions (other predicates).
func HasNode ¶
func HasNode() predicate.ExternalReference
HasNode applies the HasEdge predicate on the "node" edge.
func HasNodeWith ¶
func HasNodeWith(preds ...predicate.Node) predicate.ExternalReference
HasNodeWith applies the HasEdge predicate on the "node" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.ExternalReference
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.ExternalReference
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.ExternalReference
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.ExternalReference
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.ExternalReference
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.ExternalReference
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.ExternalReference
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.ExternalReference
IDNotIn applies the NotIn predicate on the ID field.
func NodeID ¶
func NodeID(v string) predicate.ExternalReference
NodeID applies equality check predicate on the "node_id" field. It's identical to NodeIDEQ.
func NodeIDContains ¶
func NodeIDContains(v string) predicate.ExternalReference
NodeIDContains applies the Contains predicate on the "node_id" field.
func NodeIDContainsFold ¶
func NodeIDContainsFold(v string) predicate.ExternalReference
NodeIDContainsFold applies the ContainsFold predicate on the "node_id" field.
func NodeIDEQ ¶
func NodeIDEQ(v string) predicate.ExternalReference
NodeIDEQ applies the EQ predicate on the "node_id" field.
func NodeIDEqualFold ¶
func NodeIDEqualFold(v string) predicate.ExternalReference
NodeIDEqualFold applies the EqualFold predicate on the "node_id" field.
func NodeIDGT ¶
func NodeIDGT(v string) predicate.ExternalReference
NodeIDGT applies the GT predicate on the "node_id" field.
func NodeIDGTE ¶
func NodeIDGTE(v string) predicate.ExternalReference
NodeIDGTE applies the GTE predicate on the "node_id" field.
func NodeIDHasPrefix ¶
func NodeIDHasPrefix(v string) predicate.ExternalReference
NodeIDHasPrefix applies the HasPrefix predicate on the "node_id" field.
func NodeIDHasSuffix ¶
func NodeIDHasSuffix(v string) predicate.ExternalReference
NodeIDHasSuffix applies the HasSuffix predicate on the "node_id" field.
func NodeIDIn ¶
func NodeIDIn(vs ...string) predicate.ExternalReference
NodeIDIn applies the In predicate on the "node_id" field.
func NodeIDIsNil ¶
func NodeIDIsNil() predicate.ExternalReference
NodeIDIsNil applies the IsNil predicate on the "node_id" field.
func NodeIDLT ¶
func NodeIDLT(v string) predicate.ExternalReference
NodeIDLT applies the LT predicate on the "node_id" field.
func NodeIDLTE ¶
func NodeIDLTE(v string) predicate.ExternalReference
NodeIDLTE applies the LTE predicate on the "node_id" field.
func NodeIDNEQ ¶
func NodeIDNEQ(v string) predicate.ExternalReference
NodeIDNEQ applies the NEQ predicate on the "node_id" field.
func NodeIDNotIn ¶
func NodeIDNotIn(vs ...string) predicate.ExternalReference
NodeIDNotIn applies the NotIn predicate on the "node_id" field.
func NodeIDNotNil ¶
func NodeIDNotNil() predicate.ExternalReference
NodeIDNotNil applies the NotNil predicate on the "node_id" field.
func Not ¶
func Not(p predicate.ExternalReference) predicate.ExternalReference
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ExternalReference) predicate.ExternalReference
Or groups predicates with the OR operator between them.
func TypeEQ ¶
func TypeEQ(v Type) predicate.ExternalReference
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...Type) predicate.ExternalReference
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v Type) predicate.ExternalReference
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...Type) predicate.ExternalReference
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func URL ¶
func URL(v string) predicate.ExternalReference
URL applies equality check predicate on the "url" field. It's identical to URLEQ.
func URLContains ¶
func URLContains(v string) predicate.ExternalReference
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
func URLContainsFold(v string) predicate.ExternalReference
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEQ ¶
func URLEQ(v string) predicate.ExternalReference
URLEQ applies the EQ predicate on the "url" field.
func URLEqualFold ¶
func URLEqualFold(v string) predicate.ExternalReference
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLGT ¶
func URLGT(v string) predicate.ExternalReference
URLGT applies the GT predicate on the "url" field.
func URLGTE ¶
func URLGTE(v string) predicate.ExternalReference
URLGTE applies the GTE predicate on the "url" field.
func URLHasPrefix ¶
func URLHasPrefix(v string) predicate.ExternalReference
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
func URLHasSuffix(v string) predicate.ExternalReference
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func URLIn ¶
func URLIn(vs ...string) predicate.ExternalReference
URLIn applies the In predicate on the "url" field.
func URLLT ¶
func URLLT(v string) predicate.ExternalReference
URLLT applies the LT predicate on the "url" field.
func URLLTE ¶
func URLLTE(v string) predicate.ExternalReference
URLLTE applies the LTE predicate on the "url" field.
func URLNEQ ¶
func URLNEQ(v string) predicate.ExternalReference
URLNEQ applies the NEQ predicate on the "url" field.
func URLNotIn ¶
func URLNotIn(vs ...string) predicate.ExternalReference
URLNotIn applies the NotIn predicate on the "url" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the ExternalReference queries.
func ByAuthority ¶
func ByAuthority(opts ...sql.OrderTermOption) OrderOption
ByAuthority orders the results by the authority field.
func ByComment ¶
func ByComment(opts ...sql.OrderTermOption) OrderOption
ByComment orders the results by the comment field.
func ByHashes ¶
func ByHashes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByHashes orders the results by hashes terms.
func ByHashesCount ¶
func ByHashesCount(opts ...sql.OrderTermOption) OrderOption
ByHashesCount orders the results by hashes count.
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 ¶
func ByNodeID(opts ...sql.OrderTermOption) OrderOption
ByNodeID orders the results by the node_id field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByURL ¶
func ByURL(opts ...sql.OrderTermOption) OrderOption
ByURL orders the results by the url field.
type Type ¶
type Type string
Type defines the type for the "type" enum field.
const ( TypeUNKNOWN Type = "UNKNOWN" TypeATTESTATION Type = "ATTESTATION" TypeBINARY Type = "BINARY" TypeBOM Type = "BOM" TypeBOWER Type = "BOWER" TypeBUILD_META Type = "BUILD_META" TypeBUILD_SYSTEM Type = "BUILD_SYSTEM" TypeCERTIFICATION_REPORT Type = "CERTIFICATION_REPORT" TypeCHAT Type = "CHAT" TypeCODIFIED_INFRASTRUCTURE Type = "CODIFIED_INFRASTRUCTURE" TypeCOMPONENT_ANALYSIS_REPORT Type = "COMPONENT_ANALYSIS_REPORT" TypeCONFIGURATION Type = "CONFIGURATION" TypeDISTRIBUTION_INTAKE Type = "DISTRIBUTION_INTAKE" TypeDOCUMENTATION Type = "DOCUMENTATION" TypeDOWNLOAD Type = "DOWNLOAD" TypeDYNAMIC_ANALYSIS_REPORT Type = "DYNAMIC_ANALYSIS_REPORT" TypeEOL_NOTICE Type = "EOL_NOTICE" TypeEVIDENCE Type = "EVIDENCE" TypeEXPORT_CONTROL_ASSESSMENT Type = "EXPORT_CONTROL_ASSESSMENT" TypeFORMULATION Type = "FORMULATION" TypeFUNDING Type = "FUNDING" TypeISSUE_TRACKER Type = "ISSUE_TRACKER" TypeLICENSE Type = "LICENSE" TypeLOG Type = "LOG" TypeMAILING_LIST Type = "MAILING_LIST" TypeMATURITY_REPORT Type = "MATURITY_REPORT" TypeMAVEN_CENTRAL Type = "MAVEN_CENTRAL" TypeMETRICS Type = "METRICS" TypeMODEL_CARD Type = "MODEL_CARD" TypeNPM Type = "NPM" TypeNUGET Type = "NUGET" TypeOTHER Type = "OTHER" TypePOAM Type = "POAM" TypePRIVACY_ASSESSMENT Type = "PRIVACY_ASSESSMENT" TypePRODUCT_METADATA Type = "PRODUCT_METADATA" TypePURCHASE_ORDER Type = "PURCHASE_ORDER" TypeQUALITY_ASSESSMENT_REPORT Type = "QUALITY_ASSESSMENT_REPORT" TypeQUALITY_METRICS Type = "QUALITY_METRICS" TypeRELEASE_HISTORY Type = "RELEASE_HISTORY" TypeRELEASE_NOTES Type = "RELEASE_NOTES" TypeRISK_ASSESSMENT Type = "RISK_ASSESSMENT" TypeRUNTIME_ANALYSIS_REPORT Type = "RUNTIME_ANALYSIS_REPORT" TypeSECURE_SOFTWARE_ATTESTATION Type = "SECURE_SOFTWARE_ATTESTATION" TypeSECURITY_ADVERSARY_MODEL Type = "SECURITY_ADVERSARY_MODEL" TypeSECURITY_ADVISORY Type = "SECURITY_ADVISORY" TypeSECURITY_CONTACT Type = "SECURITY_CONTACT" TypeSECURITY_FIX Type = "SECURITY_FIX" TypeSECURITY_OTHER Type = "SECURITY_OTHER" TypeSECURITY_PENTEST_REPORT Type = "SECURITY_PENTEST_REPORT" TypeSECURITY_POLICY Type = "SECURITY_POLICY" TypeSECURITY_SWID Type = "SECURITY_SWID" TypeSECURITY_THREAT_MODEL Type = "SECURITY_THREAT_MODEL" TypeSOCIAL Type = "SOCIAL" TypeSOURCE_ARTIFACT Type = "SOURCE_ARTIFACT" TypeSTATIC_ANALYSIS_REPORT Type = "STATIC_ANALYSIS_REPORT" TypeSUPPORT Type = "SUPPORT" TypeVCS Type = "VCS" TypeVULNERABILITY_ASSERTION Type = "VULNERABILITY_ASSERTION" TypeVULNERABILITY_DISCLOSURE_REPORT Type = "VULNERABILITY_DISCLOSURE_REPORT" TypeVULNERABILITY_EXPLOITABILITY_ASSESSMENT Type = "VULNERABILITY_EXPLOITABILITY_ASSESSMENT" TypeWEBSITE Type = "WEBSITE" )
Type values.