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 HasAttestationsWith(preds ...predicate.SLSAAttestation) predicate.Artifact
- func HasOccurrences() predicate.Artifact
- func HasOccurrencesWith(preds ...predicate.Occurrence) predicate.Artifact
- func HasSame() predicate.Artifact
- func HasSameWith(preds ...predicate.HashEqual) predicate.Artifact
- func HasSbom() predicate.Artifact
- func HasSbomWith(preds ...predicate.BillOfMaterials) predicate.Artifact
- func ID(id int) predicate.Artifact
- func IDEQ(id int) predicate.Artifact
- func IDGT(id int) predicate.Artifact
- func IDGTE(id int) predicate.Artifact
- func IDIn(ids ...int) predicate.Artifact
- func IDLT(id int) predicate.Artifact
- func IDLTE(id int) predicate.Artifact
- func IDNEQ(id int) predicate.Artifact
- func IDNotIn(ids ...int) 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 ByDigest(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOccurrences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOccurrencesCount(opts ...sql.OrderTermOption) OrderOption
- func BySame(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySameCount(opts ...sql.OrderTermOption) OrderOption
- func BySbom(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySbomCount(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" // EdgeSame holds the string denoting the same edge name in mutations. EdgeSame = "same" // 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" // SameTable is the table that holds the same relation/edge. The primary key declared below. SameTable = "hash_equal_artifacts" // SameInverseTable is the table name for the HashEqual entity. // It exists in this package in order to avoid circular dependency with the "hashequal" package. SameInverseTable = "hash_equals" )
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"} // SamePrimaryKey and SameColumn2 are the table columns denoting the // primary key for the same relation (M2M). SamePrimaryKey = []string{"hash_equal_id", "artifact_id"} )
var Columns = []string{ FieldID, FieldAlgorithm, FieldDigest, }
Columns holds all SQL columns for artifact fields.
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 HasAttestationsWith ¶
func HasAttestationsWith(preds ...predicate.SLSAAttestation) predicate.Artifact
HasAttestationsWith applies the HasEdge predicate on the "attestations" 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 HasSameWith ¶
HasSameWith applies the HasEdge predicate on the "same" 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 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 ByDigest ¶
func ByDigest(opts ...sql.OrderTermOption) OrderOption
ByDigest orders the results by the digest field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
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 BySame ¶
func BySame(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySame orders the results by same terms.
func BySameCount ¶
func BySameCount(opts ...sql.OrderTermOption) OrderOption
BySameCount orders the results by same 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.