Documentation ¶
Index ¶
- Constants
- Variables
- func Algorithm(v string) predicate.Artifact
- func AlgorithmContains(v string) predicate.Artifact
- func AlgorithmContainsFold(v string) predicate.Artifact
- func AlgorithmEQ(v string) predicate.Artifact
- func AlgorithmEqualFold(v string) predicate.Artifact
- func AlgorithmGT(v string) predicate.Artifact
- func AlgorithmGTE(v string) predicate.Artifact
- func AlgorithmHasPrefix(v string) predicate.Artifact
- func AlgorithmHasSuffix(v string) predicate.Artifact
- func AlgorithmIn(vs ...string) predicate.Artifact
- func AlgorithmLT(v string) predicate.Artifact
- func AlgorithmLTE(v string) predicate.Artifact
- func AlgorithmNEQ(v string) predicate.Artifact
- func AlgorithmNotIn(vs ...string) predicate.Artifact
- func And(predicates ...predicate.Artifact) predicate.Artifact
- func Digest(v string) predicate.Artifact
- func DigestContains(v string) predicate.Artifact
- func DigestContainsFold(v string) predicate.Artifact
- func DigestEQ(v string) predicate.Artifact
- func DigestEqualFold(v string) predicate.Artifact
- func DigestGT(v string) predicate.Artifact
- func DigestGTE(v string) predicate.Artifact
- func DigestHasPrefix(v string) predicate.Artifact
- func DigestHasSuffix(v string) predicate.Artifact
- func DigestIn(vs ...string) predicate.Artifact
- func DigestLT(v string) predicate.Artifact
- func DigestLTE(v string) predicate.Artifact
- func DigestNEQ(v string) predicate.Artifact
- func DigestNotIn(vs ...string) predicate.Artifact
- func HasAttestations() predicate.Artifact
- func HasAttestationsSubject() predicate.Artifact
- func HasAttestationsSubjectWith(preds ...predicate.SLSAAttestation) predicate.Artifact
- func HasAttestationsWith(preds ...predicate.SLSAAttestation) predicate.Artifact
- func HasCertification() predicate.Artifact
- func HasCertificationWith(preds ...predicate.Certification) predicate.Artifact
- func HasHashEqualArtA() predicate.Artifact
- func HasHashEqualArtAWith(preds ...predicate.HashEqual) predicate.Artifact
- func HasHashEqualArtB() predicate.Artifact
- func HasHashEqualArtBWith(preds ...predicate.HashEqual) predicate.Artifact
- func HasIncludedInSboms() predicate.Artifact
- func HasIncludedInSbomsWith(preds ...predicate.BillOfMaterials) predicate.Artifact
- func HasMetadata() predicate.Artifact
- func HasMetadataWith(preds ...predicate.HasMetadata) predicate.Artifact
- func HasOccurrences() predicate.Artifact
- func HasOccurrencesWith(preds ...predicate.Occurrence) predicate.Artifact
- func HasPoc() predicate.Artifact
- func HasPocWith(preds ...predicate.PointOfContact) predicate.Artifact
- func HasSbom() predicate.Artifact
- func HasSbomWith(preds ...predicate.BillOfMaterials) predicate.Artifact
- func HasVex() predicate.Artifact
- func HasVexWith(preds ...predicate.CertifyVex) predicate.Artifact
- func ID(id uuid.UUID) predicate.Artifact
- func IDEQ(id uuid.UUID) predicate.Artifact
- func IDGT(id uuid.UUID) predicate.Artifact
- func IDGTE(id uuid.UUID) predicate.Artifact
- func IDIn(ids ...uuid.UUID) predicate.Artifact
- func IDLT(id uuid.UUID) predicate.Artifact
- func IDLTE(id uuid.UUID) predicate.Artifact
- func IDNEQ(id uuid.UUID) predicate.Artifact
- func IDNotIn(ids ...uuid.UUID) predicate.Artifact
- func Not(p predicate.Artifact) predicate.Artifact
- func Or(predicates ...predicate.Artifact) predicate.Artifact
- func ValidColumn(column string) bool
- type OrderOption
- func ByAlgorithm(opts ...sql.OrderTermOption) OrderOption
- func ByAttestations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAttestationsCount(opts ...sql.OrderTermOption) OrderOption
- func ByAttestationsSubject(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAttestationsSubjectCount(opts ...sql.OrderTermOption) OrderOption
- func ByCertification(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCertificationCount(opts ...sql.OrderTermOption) OrderOption
- func ByDigest(opts ...sql.OrderTermOption) OrderOption
- func ByHashEqualArtA(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByHashEqualArtACount(opts ...sql.OrderTermOption) OrderOption
- func ByHashEqualArtB(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByHashEqualArtBCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIncludedInSboms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByIncludedInSbomsCount(opts ...sql.OrderTermOption) OrderOption
- func ByMetadata(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMetadataCount(opts ...sql.OrderTermOption) OrderOption
- func ByOccurrences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOccurrencesCount(opts ...sql.OrderTermOption) OrderOption
- func ByPoc(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPocCount(opts ...sql.OrderTermOption) OrderOption
- func BySbom(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySbomCount(opts ...sql.OrderTermOption) OrderOption
- func ByVex(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVexCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the artifact type in the database. Label = "artifact" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldAlgorithm holds the string denoting the algorithm field in the database. FieldAlgorithm = "algorithm" // FieldDigest holds the string denoting the digest field in the database. FieldDigest = "digest" // EdgeOccurrences holds the string denoting the occurrences edge name in mutations. EdgeOccurrences = "occurrences" // EdgeSbom holds the string denoting the sbom edge name in mutations. EdgeSbom = "sbom" // EdgeAttestations holds the string denoting the attestations edge name in mutations. EdgeAttestations = "attestations" // EdgeAttestationsSubject holds the string denoting the attestations_subject edge name in mutations. EdgeAttestationsSubject = "attestations_subject" // EdgeHashEqualArtA holds the string denoting the hash_equal_art_a edge name in mutations. EdgeHashEqualArtA = "hash_equal_art_a" // EdgeHashEqualArtB holds the string denoting the hash_equal_art_b edge name in mutations. EdgeHashEqualArtB = "hash_equal_art_b" // EdgeVex holds the string denoting the vex edge name in mutations. EdgeVex = "vex" // EdgeCertification holds the string denoting the certification edge name in mutations. EdgeCertification = "certification" // EdgeMetadata holds the string denoting the metadata edge name in mutations. EdgeMetadata = "metadata" // EdgePoc holds the string denoting the poc edge name in mutations. EdgePoc = "poc" // EdgeIncludedInSboms holds the string denoting the included_in_sboms edge name in mutations. EdgeIncludedInSboms = "included_in_sboms" // Table holds the table name of the artifact in the database. Table = "artifacts" // OccurrencesTable is the table that holds the occurrences relation/edge. OccurrencesTable = "occurrences" // OccurrencesInverseTable is the table name for the Occurrence entity. // It exists in this package in order to avoid circular dependency with the "occurrence" package. OccurrencesInverseTable = "occurrences" // OccurrencesColumn is the table column denoting the occurrences relation/edge. OccurrencesColumn = "artifact_id" // SbomTable is the table that holds the sbom relation/edge. SbomTable = "bill_of_materials" // SbomInverseTable is the table name for the BillOfMaterials entity. // It exists in this package in order to avoid circular dependency with the "billofmaterials" package. SbomInverseTable = "bill_of_materials" // SbomColumn is the table column denoting the sbom relation/edge. SbomColumn = "artifact_id" // AttestationsTable is the table that holds the attestations relation/edge. The primary key declared below. AttestationsTable = "slsa_attestation_built_from" // AttestationsInverseTable is the table name for the SLSAAttestation entity. // It exists in this package in order to avoid circular dependency with the "slsaattestation" package. AttestationsInverseTable = "slsa_attestations" // AttestationsSubjectTable is the table that holds the attestations_subject relation/edge. AttestationsSubjectTable = "slsa_attestations" // AttestationsSubjectInverseTable is the table name for the SLSAAttestation entity. // It exists in this package in order to avoid circular dependency with the "slsaattestation" package. AttestationsSubjectInverseTable = "slsa_attestations" // AttestationsSubjectColumn is the table column denoting the attestations_subject relation/edge. AttestationsSubjectColumn = "subject_id" // HashEqualArtATable is the table that holds the hash_equal_art_a relation/edge. HashEqualArtATable = "hash_equals" // HashEqualArtAInverseTable is the table name for the HashEqual entity. // It exists in this package in order to avoid circular dependency with the "hashequal" package. HashEqualArtAInverseTable = "hash_equals" // HashEqualArtAColumn is the table column denoting the hash_equal_art_a relation/edge. HashEqualArtAColumn = "art_id" // HashEqualArtBTable is the table that holds the hash_equal_art_b relation/edge. HashEqualArtBTable = "hash_equals" // HashEqualArtBInverseTable is the table name for the HashEqual entity. // It exists in this package in order to avoid circular dependency with the "hashequal" package. HashEqualArtBInverseTable = "hash_equals" // HashEqualArtBColumn is the table column denoting the hash_equal_art_b relation/edge. HashEqualArtBColumn = "equal_art_id" // VexTable is the table that holds the vex relation/edge. VexTable = "certify_vexes" // VexInverseTable is the table name for the CertifyVex entity. // It exists in this package in order to avoid circular dependency with the "certifyvex" package. VexInverseTable = "certify_vexes" // VexColumn is the table column denoting the vex relation/edge. VexColumn = "artifact_id" // CertificationTable is the table that holds the certification relation/edge. CertificationTable = "certifications" // CertificationInverseTable is the table name for the Certification entity. // It exists in this package in order to avoid circular dependency with the "certification" package. CertificationInverseTable = "certifications" // CertificationColumn is the table column denoting the certification relation/edge. CertificationColumn = "artifact_id" // MetadataTable is the table that holds the metadata relation/edge. MetadataTable = "has_metadata" // MetadataInverseTable is the table name for the HasMetadata entity. // It exists in this package in order to avoid circular dependency with the "hasmetadata" package. MetadataInverseTable = "has_metadata" // MetadataColumn is the table column denoting the metadata relation/edge. MetadataColumn = "artifact_id" // PocTable is the table that holds the poc relation/edge. PocTable = "point_of_contacts" // PocInverseTable is the table name for the PointOfContact entity. // It exists in this package in order to avoid circular dependency with the "pointofcontact" package. PocInverseTable = "point_of_contacts" // PocColumn is the table column denoting the poc relation/edge. PocColumn = "artifact_id" // IncludedInSbomsTable is the table that holds the included_in_sboms relation/edge. The primary key declared below. IncludedInSbomsTable = "bill_of_materials_included_software_artifacts" // IncludedInSbomsInverseTable is the table name for the BillOfMaterials entity. // It exists in this package in order to avoid circular dependency with the "billofmaterials" package. IncludedInSbomsInverseTable = "bill_of_materials" )
Variables ¶
var ( // AttestationsPrimaryKey and AttestationsColumn2 are the table columns denoting the // primary key for the attestations relation (M2M). AttestationsPrimaryKey = []string{"slsa_attestation_id", "artifact_id"} // IncludedInSbomsPrimaryKey and IncludedInSbomsColumn2 are the table columns denoting the // primary key for the included_in_sboms relation (M2M). IncludedInSbomsPrimaryKey = []string{"bill_of_materials_id", "artifact_id"} )
var Columns = []string{ FieldID, FieldAlgorithm, FieldDigest, }
Columns holds all SQL columns for artifact fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func Algorithm ¶
Algorithm applies equality check predicate on the "algorithm" field. It's identical to AlgorithmEQ.
func AlgorithmContains ¶
AlgorithmContains applies the Contains predicate on the "algorithm" field.
func AlgorithmContainsFold ¶
AlgorithmContainsFold applies the ContainsFold predicate on the "algorithm" field.
func AlgorithmEQ ¶
AlgorithmEQ applies the EQ predicate on the "algorithm" field.
func AlgorithmEqualFold ¶
AlgorithmEqualFold applies the EqualFold predicate on the "algorithm" field.
func AlgorithmGT ¶
AlgorithmGT applies the GT predicate on the "algorithm" field.
func AlgorithmGTE ¶
AlgorithmGTE applies the GTE predicate on the "algorithm" field.
func AlgorithmHasPrefix ¶
AlgorithmHasPrefix applies the HasPrefix predicate on the "algorithm" field.
func AlgorithmHasSuffix ¶
AlgorithmHasSuffix applies the HasSuffix predicate on the "algorithm" field.
func AlgorithmIn ¶
AlgorithmIn applies the In predicate on the "algorithm" field.
func AlgorithmLT ¶
AlgorithmLT applies the LT predicate on the "algorithm" field.
func AlgorithmLTE ¶
AlgorithmLTE applies the LTE predicate on the "algorithm" field.
func AlgorithmNEQ ¶
AlgorithmNEQ applies the NEQ predicate on the "algorithm" field.
func AlgorithmNotIn ¶
AlgorithmNotIn applies the NotIn predicate on the "algorithm" field.
func Digest ¶
Digest applies equality check predicate on the "digest" field. It's identical to DigestEQ.
func DigestContains ¶
DigestContains applies the Contains predicate on the "digest" field.
func DigestContainsFold ¶
DigestContainsFold applies the ContainsFold predicate on the "digest" field.
func DigestEqualFold ¶
DigestEqualFold applies the EqualFold predicate on the "digest" field.
func DigestHasPrefix ¶
DigestHasPrefix applies the HasPrefix predicate on the "digest" field.
func DigestHasSuffix ¶
DigestHasSuffix applies the HasSuffix predicate on the "digest" field.
func DigestNotIn ¶
DigestNotIn applies the NotIn predicate on the "digest" field.
func HasAttestations ¶
HasAttestations applies the HasEdge predicate on the "attestations" edge.
func HasAttestationsSubject ¶ added in v0.6.0
HasAttestationsSubject applies the HasEdge predicate on the "attestations_subject" edge.
func HasAttestationsSubjectWith ¶ added in v0.6.0
func HasAttestationsSubjectWith(preds ...predicate.SLSAAttestation) predicate.Artifact
HasAttestationsSubjectWith applies the HasEdge predicate on the "attestations_subject" edge with a given conditions (other predicates).
func HasAttestationsWith ¶
func HasAttestationsWith(preds ...predicate.SLSAAttestation) predicate.Artifact
HasAttestationsWith applies the HasEdge predicate on the "attestations" edge with a given conditions (other predicates).
func HasCertification ¶ added in v0.6.0
HasCertification applies the HasEdge predicate on the "certification" edge.
func HasCertificationWith ¶ added in v0.6.0
func HasCertificationWith(preds ...predicate.Certification) predicate.Artifact
HasCertificationWith applies the HasEdge predicate on the "certification" edge with a given conditions (other predicates).
func HasHashEqualArtA ¶ added in v0.5.0
HasHashEqualArtA applies the HasEdge predicate on the "hash_equal_art_a" edge.
func HasHashEqualArtAWith ¶ added in v0.5.0
HasHashEqualArtAWith applies the HasEdge predicate on the "hash_equal_art_a" edge with a given conditions (other predicates).
func HasHashEqualArtB ¶ added in v0.5.0
HasHashEqualArtB applies the HasEdge predicate on the "hash_equal_art_b" edge.
func HasHashEqualArtBWith ¶ added in v0.5.0
HasHashEqualArtBWith applies the HasEdge predicate on the "hash_equal_art_b" edge with a given conditions (other predicates).
func HasIncludedInSboms ¶ added in v0.4.0
HasIncludedInSboms applies the HasEdge predicate on the "included_in_sboms" edge.
func HasIncludedInSbomsWith ¶ added in v0.4.0
func HasIncludedInSbomsWith(preds ...predicate.BillOfMaterials) predicate.Artifact
HasIncludedInSbomsWith applies the HasEdge predicate on the "included_in_sboms" edge with a given conditions (other predicates).
func HasMetadata ¶ added in v0.6.0
HasMetadata applies the HasEdge predicate on the "metadata" edge.
func HasMetadataWith ¶ added in v0.6.0
func HasMetadataWith(preds ...predicate.HasMetadata) predicate.Artifact
HasMetadataWith applies the HasEdge predicate on the "metadata" edge with a given conditions (other predicates).
func HasOccurrences ¶
HasOccurrences applies the HasEdge predicate on the "occurrences" edge.
func HasOccurrencesWith ¶
func HasOccurrencesWith(preds ...predicate.Occurrence) predicate.Artifact
HasOccurrencesWith applies the HasEdge predicate on the "occurrences" edge with a given conditions (other predicates).
func HasPocWith ¶ added in v0.6.0
func HasPocWith(preds ...predicate.PointOfContact) predicate.Artifact
HasPocWith applies the HasEdge predicate on the "poc" edge with a given conditions (other predicates).
func HasSbomWith ¶
func HasSbomWith(preds ...predicate.BillOfMaterials) predicate.Artifact
HasSbomWith applies the HasEdge predicate on the "sbom" edge with a given conditions (other predicates).
func HasVexWith ¶ added in v0.6.0
func HasVexWith(preds ...predicate.CertifyVex) predicate.Artifact
HasVexWith applies the HasEdge predicate on the "vex" edge with a given conditions (other predicates).
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 Artifact queries.
func ByAlgorithm ¶
func ByAlgorithm(opts ...sql.OrderTermOption) OrderOption
ByAlgorithm orders the results by the algorithm field.
func ByAttestations ¶
func ByAttestations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAttestations orders the results by attestations terms.
func ByAttestationsCount ¶
func ByAttestationsCount(opts ...sql.OrderTermOption) OrderOption
ByAttestationsCount orders the results by attestations count.
func ByAttestationsSubject ¶ added in v0.6.0
func ByAttestationsSubject(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAttestationsSubject orders the results by attestations_subject terms.
func ByAttestationsSubjectCount ¶ added in v0.6.0
func ByAttestationsSubjectCount(opts ...sql.OrderTermOption) OrderOption
ByAttestationsSubjectCount orders the results by attestations_subject count.
func ByCertification ¶ added in v0.6.0
func ByCertification(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCertification orders the results by certification terms.
func ByCertificationCount ¶ added in v0.6.0
func ByCertificationCount(opts ...sql.OrderTermOption) OrderOption
ByCertificationCount orders the results by certification count.
func ByDigest ¶
func ByDigest(opts ...sql.OrderTermOption) OrderOption
ByDigest orders the results by the digest field.
func ByHashEqualArtA ¶ added in v0.5.0
func ByHashEqualArtA(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByHashEqualArtA orders the results by hash_equal_art_a terms.
func ByHashEqualArtACount ¶ added in v0.5.0
func ByHashEqualArtACount(opts ...sql.OrderTermOption) OrderOption
ByHashEqualArtACount orders the results by hash_equal_art_a count.
func ByHashEqualArtB ¶ added in v0.5.0
func ByHashEqualArtB(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByHashEqualArtB orders the results by hash_equal_art_b terms.
func ByHashEqualArtBCount ¶ added in v0.5.0
func ByHashEqualArtBCount(opts ...sql.OrderTermOption) OrderOption
ByHashEqualArtBCount orders the results by hash_equal_art_b count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIncludedInSboms ¶ added in v0.4.0
func ByIncludedInSboms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByIncludedInSboms orders the results by included_in_sboms terms.
func ByIncludedInSbomsCount ¶ added in v0.4.0
func ByIncludedInSbomsCount(opts ...sql.OrderTermOption) OrderOption
ByIncludedInSbomsCount orders the results by included_in_sboms count.
func ByMetadata ¶ added in v0.6.0
func ByMetadata(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMetadata orders the results by metadata terms.
func ByMetadataCount ¶ added in v0.6.0
func ByMetadataCount(opts ...sql.OrderTermOption) OrderOption
ByMetadataCount orders the results by metadata count.
func ByOccurrences ¶
func ByOccurrences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOccurrences orders the results by occurrences terms.
func ByOccurrencesCount ¶
func ByOccurrencesCount(opts ...sql.OrderTermOption) OrderOption
ByOccurrencesCount orders the results by occurrences count.
func ByPoc ¶ added in v0.6.0
func ByPoc(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPoc orders the results by poc terms.
func ByPocCount ¶ added in v0.6.0
func ByPocCount(opts ...sql.OrderTermOption) OrderOption
ByPocCount orders the results by poc count.
func BySbom ¶
func BySbom(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySbom orders the results by sbom terms.
func BySbomCount ¶
func BySbomCount(opts ...sql.OrderTermOption) OrderOption
BySbomCount orders the results by sbom count.
func ByVex ¶ added in v0.6.0
func ByVex(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVex orders the results by vex terms.
func ByVexCount ¶ added in v0.6.0
func ByVexCount(opts ...sql.OrderTermOption) OrderOption
ByVexCount orders the results by vex count.