artifact

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
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

View Source
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"}
)

Columns holds all SQL columns for artifact fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Functions

func Algorithm

func Algorithm(v string) predicate.Artifact

Algorithm applies equality check predicate on the "algorithm" field. It's identical to AlgorithmEQ.

func AlgorithmContains

func AlgorithmContains(v string) predicate.Artifact

AlgorithmContains applies the Contains predicate on the "algorithm" field.

func AlgorithmContainsFold

func AlgorithmContainsFold(v string) predicate.Artifact

AlgorithmContainsFold applies the ContainsFold predicate on the "algorithm" field.

func AlgorithmEQ

func AlgorithmEQ(v string) predicate.Artifact

AlgorithmEQ applies the EQ predicate on the "algorithm" field.

func AlgorithmEqualFold

func AlgorithmEqualFold(v string) predicate.Artifact

AlgorithmEqualFold applies the EqualFold predicate on the "algorithm" field.

func AlgorithmGT

func AlgorithmGT(v string) predicate.Artifact

AlgorithmGT applies the GT predicate on the "algorithm" field.

func AlgorithmGTE

func AlgorithmGTE(v string) predicate.Artifact

AlgorithmGTE applies the GTE predicate on the "algorithm" field.

func AlgorithmHasPrefix

func AlgorithmHasPrefix(v string) predicate.Artifact

AlgorithmHasPrefix applies the HasPrefix predicate on the "algorithm" field.

func AlgorithmHasSuffix

func AlgorithmHasSuffix(v string) predicate.Artifact

AlgorithmHasSuffix applies the HasSuffix predicate on the "algorithm" field.

func AlgorithmIn

func AlgorithmIn(vs ...string) predicate.Artifact

AlgorithmIn applies the In predicate on the "algorithm" field.

func AlgorithmLT

func AlgorithmLT(v string) predicate.Artifact

AlgorithmLT applies the LT predicate on the "algorithm" field.

func AlgorithmLTE

func AlgorithmLTE(v string) predicate.Artifact

AlgorithmLTE applies the LTE predicate on the "algorithm" field.

func AlgorithmNEQ

func AlgorithmNEQ(v string) predicate.Artifact

AlgorithmNEQ applies the NEQ predicate on the "algorithm" field.

func AlgorithmNotIn

func AlgorithmNotIn(vs ...string) predicate.Artifact

AlgorithmNotIn applies the NotIn predicate on the "algorithm" field.

func And

func And(predicates ...predicate.Artifact) predicate.Artifact

And groups predicates with the AND operator between them.

func Digest

func Digest(v string) predicate.Artifact

Digest applies equality check predicate on the "digest" field. It's identical to DigestEQ.

func DigestContains

func DigestContains(v string) predicate.Artifact

DigestContains applies the Contains predicate on the "digest" field.

func DigestContainsFold

func DigestContainsFold(v string) predicate.Artifact

DigestContainsFold applies the ContainsFold predicate on the "digest" field.

func DigestEQ

func DigestEQ(v string) predicate.Artifact

DigestEQ applies the EQ predicate on the "digest" field.

func DigestEqualFold

func DigestEqualFold(v string) predicate.Artifact

DigestEqualFold applies the EqualFold predicate on the "digest" field.

func DigestGT

func DigestGT(v string) predicate.Artifact

DigestGT applies the GT predicate on the "digest" field.

func DigestGTE

func DigestGTE(v string) predicate.Artifact

DigestGTE applies the GTE predicate on the "digest" field.

func DigestHasPrefix

func DigestHasPrefix(v string) predicate.Artifact

DigestHasPrefix applies the HasPrefix predicate on the "digest" field.

func DigestHasSuffix

func DigestHasSuffix(v string) predicate.Artifact

DigestHasSuffix applies the HasSuffix predicate on the "digest" field.

func DigestIn

func DigestIn(vs ...string) predicate.Artifact

DigestIn applies the In predicate on the "digest" field.

func DigestLT

func DigestLT(v string) predicate.Artifact

DigestLT applies the LT predicate on the "digest" field.

func DigestLTE

func DigestLTE(v string) predicate.Artifact

DigestLTE applies the LTE predicate on the "digest" field.

func DigestNEQ

func DigestNEQ(v string) predicate.Artifact

DigestNEQ applies the NEQ predicate on the "digest" field.

func DigestNotIn

func DigestNotIn(vs ...string) predicate.Artifact

DigestNotIn applies the NotIn predicate on the "digest" field.

func HasAttestations

func HasAttestations() predicate.Artifact

HasAttestations applies the HasEdge predicate on the "attestations" edge.

func HasAttestationsSubject added in v0.6.0

func HasAttestationsSubject() predicate.Artifact

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

func HasCertification() predicate.Artifact

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

func HasHashEqualArtA() predicate.Artifact

HasHashEqualArtA applies the HasEdge predicate on the "hash_equal_art_a" edge.

func HasHashEqualArtAWith added in v0.5.0

func HasHashEqualArtAWith(preds ...predicate.HashEqual) predicate.Artifact

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

func HasHashEqualArtB() predicate.Artifact

HasHashEqualArtB applies the HasEdge predicate on the "hash_equal_art_b" edge.

func HasHashEqualArtBWith added in v0.5.0

func HasHashEqualArtBWith(preds ...predicate.HashEqual) predicate.Artifact

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

func HasIncludedInSboms() predicate.Artifact

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

func HasMetadata() predicate.Artifact

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

func HasOccurrences() predicate.Artifact

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 HasPoc added in v0.6.0

func HasPoc() predicate.Artifact

HasPoc applies the HasEdge predicate on the "poc" edge.

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 HasSbom

func HasSbom() predicate.Artifact

HasSbom applies the HasEdge predicate on the "sbom" edge.

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 HasVex added in v0.6.0

func HasVex() predicate.Artifact

HasVex applies the HasEdge predicate on the "vex" edge.

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 ID

func ID(id uuid.UUID) predicate.Artifact

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Artifact

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Artifact

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Artifact

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Artifact

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Artifact

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Artifact

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Artifact

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Artifact

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Artifact) predicate.Artifact

Or groups predicates with the OR operator between them.

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 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.

Jump to

Keyboard shortcuts

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