occurrence

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 occurrence type in the database.
	Label = "occurrence"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldArtifactID holds the string denoting the artifact_id field in the database.
	FieldArtifactID = "artifact_id"
	// FieldJustification holds the string denoting the justification field in the database.
	FieldJustification = "justification"
	// FieldOrigin holds the string denoting the origin field in the database.
	FieldOrigin = "origin"
	// FieldCollector holds the string denoting the collector field in the database.
	FieldCollector = "collector"
	// FieldDocumentRef holds the string denoting the document_ref field in the database.
	FieldDocumentRef = "document_ref"
	// FieldSourceID holds the string denoting the source_id field in the database.
	FieldSourceID = "source_id"
	// FieldPackageID holds the string denoting the package_id field in the database.
	FieldPackageID = "package_id"
	// EdgeArtifact holds the string denoting the artifact edge name in mutations.
	EdgeArtifact = "artifact"
	// EdgePackage holds the string denoting the package edge name in mutations.
	EdgePackage = "package"
	// EdgeSource holds the string denoting the source edge name in mutations.
	EdgeSource = "source"
	// EdgeIncludedInSboms holds the string denoting the included_in_sboms edge name in mutations.
	EdgeIncludedInSboms = "included_in_sboms"
	// Table holds the table name of the occurrence in the database.
	Table = "occurrences"
	// ArtifactTable is the table that holds the artifact relation/edge.
	ArtifactTable = "occurrences"
	// ArtifactInverseTable is the table name for the Artifact entity.
	// It exists in this package in order to avoid circular dependency with the "artifact" package.
	ArtifactInverseTable = "artifacts"
	// ArtifactColumn is the table column denoting the artifact relation/edge.
	ArtifactColumn = "artifact_id"
	// PackageTable is the table that holds the package relation/edge.
	PackageTable = "occurrences"
	// PackageInverseTable is the table name for the PackageVersion entity.
	// It exists in this package in order to avoid circular dependency with the "packageversion" package.
	PackageInverseTable = "package_versions"
	// PackageColumn is the table column denoting the package relation/edge.
	PackageColumn = "package_id"
	// SourceTable is the table that holds the source relation/edge.
	SourceTable = "occurrences"
	// SourceInverseTable is the table name for the SourceName entity.
	// It exists in this package in order to avoid circular dependency with the "sourcename" package.
	SourceInverseTable = "source_names"
	// SourceColumn is the table column denoting the source relation/edge.
	SourceColumn = "source_id"
	// IncludedInSbomsTable is the table that holds the included_in_sboms relation/edge. The primary key declared below.
	IncludedInSbomsTable = "bill_of_materials_included_occurrences"
	// 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

Columns holds all SQL columns for occurrence fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)
View Source
var (
	// IncludedInSbomsPrimaryKey and IncludedInSbomsColumn2 are the table columns denoting the
	// primary key for the included_in_sboms relation (M2M).
	IncludedInSbomsPrimaryKey = []string{"bill_of_materials_id", "occurrence_id"}
)

Functions

func And

func And(predicates ...predicate.Occurrence) predicate.Occurrence

And groups predicates with the AND operator between them.

func ArtifactID

func ArtifactID(v uuid.UUID) predicate.Occurrence

ArtifactID applies equality check predicate on the "artifact_id" field. It's identical to ArtifactIDEQ.

func ArtifactIDEQ

func ArtifactIDEQ(v uuid.UUID) predicate.Occurrence

ArtifactIDEQ applies the EQ predicate on the "artifact_id" field.

func ArtifactIDIn

func ArtifactIDIn(vs ...uuid.UUID) predicate.Occurrence

ArtifactIDIn applies the In predicate on the "artifact_id" field.

func ArtifactIDNEQ

func ArtifactIDNEQ(v uuid.UUID) predicate.Occurrence

ArtifactIDNEQ applies the NEQ predicate on the "artifact_id" field.

func ArtifactIDNotIn

func ArtifactIDNotIn(vs ...uuid.UUID) predicate.Occurrence

ArtifactIDNotIn applies the NotIn predicate on the "artifact_id" field.

func Collector

func Collector(v string) predicate.Occurrence

Collector applies equality check predicate on the "collector" field. It's identical to CollectorEQ.

func CollectorContains

func CollectorContains(v string) predicate.Occurrence

CollectorContains applies the Contains predicate on the "collector" field.

func CollectorContainsFold

func CollectorContainsFold(v string) predicate.Occurrence

CollectorContainsFold applies the ContainsFold predicate on the "collector" field.

func CollectorEQ

func CollectorEQ(v string) predicate.Occurrence

CollectorEQ applies the EQ predicate on the "collector" field.

func CollectorEqualFold

func CollectorEqualFold(v string) predicate.Occurrence

CollectorEqualFold applies the EqualFold predicate on the "collector" field.

func CollectorGT

func CollectorGT(v string) predicate.Occurrence

CollectorGT applies the GT predicate on the "collector" field.

func CollectorGTE

func CollectorGTE(v string) predicate.Occurrence

CollectorGTE applies the GTE predicate on the "collector" field.

func CollectorHasPrefix

func CollectorHasPrefix(v string) predicate.Occurrence

CollectorHasPrefix applies the HasPrefix predicate on the "collector" field.

func CollectorHasSuffix

func CollectorHasSuffix(v string) predicate.Occurrence

CollectorHasSuffix applies the HasSuffix predicate on the "collector" field.

func CollectorIn

func CollectorIn(vs ...string) predicate.Occurrence

CollectorIn applies the In predicate on the "collector" field.

func CollectorLT

func CollectorLT(v string) predicate.Occurrence

CollectorLT applies the LT predicate on the "collector" field.

func CollectorLTE

func CollectorLTE(v string) predicate.Occurrence

CollectorLTE applies the LTE predicate on the "collector" field.

func CollectorNEQ

func CollectorNEQ(v string) predicate.Occurrence

CollectorNEQ applies the NEQ predicate on the "collector" field.

func CollectorNotIn

func CollectorNotIn(vs ...string) predicate.Occurrence

CollectorNotIn applies the NotIn predicate on the "collector" field.

func DocumentRef added in v0.6.0

func DocumentRef(v string) predicate.Occurrence

DocumentRef applies equality check predicate on the "document_ref" field. It's identical to DocumentRefEQ.

func DocumentRefContains added in v0.6.0

func DocumentRefContains(v string) predicate.Occurrence

DocumentRefContains applies the Contains predicate on the "document_ref" field.

func DocumentRefContainsFold added in v0.6.0

func DocumentRefContainsFold(v string) predicate.Occurrence

DocumentRefContainsFold applies the ContainsFold predicate on the "document_ref" field.

func DocumentRefEQ added in v0.6.0

func DocumentRefEQ(v string) predicate.Occurrence

DocumentRefEQ applies the EQ predicate on the "document_ref" field.

func DocumentRefEqualFold added in v0.6.0

func DocumentRefEqualFold(v string) predicate.Occurrence

DocumentRefEqualFold applies the EqualFold predicate on the "document_ref" field.

func DocumentRefGT added in v0.6.0

func DocumentRefGT(v string) predicate.Occurrence

DocumentRefGT applies the GT predicate on the "document_ref" field.

func DocumentRefGTE added in v0.6.0

func DocumentRefGTE(v string) predicate.Occurrence

DocumentRefGTE applies the GTE predicate on the "document_ref" field.

func DocumentRefHasPrefix added in v0.6.0

func DocumentRefHasPrefix(v string) predicate.Occurrence

DocumentRefHasPrefix applies the HasPrefix predicate on the "document_ref" field.

func DocumentRefHasSuffix added in v0.6.0

func DocumentRefHasSuffix(v string) predicate.Occurrence

DocumentRefHasSuffix applies the HasSuffix predicate on the "document_ref" field.

func DocumentRefIn added in v0.6.0

func DocumentRefIn(vs ...string) predicate.Occurrence

DocumentRefIn applies the In predicate on the "document_ref" field.

func DocumentRefLT added in v0.6.0

func DocumentRefLT(v string) predicate.Occurrence

DocumentRefLT applies the LT predicate on the "document_ref" field.

func DocumentRefLTE added in v0.6.0

func DocumentRefLTE(v string) predicate.Occurrence

DocumentRefLTE applies the LTE predicate on the "document_ref" field.

func DocumentRefNEQ added in v0.6.0

func DocumentRefNEQ(v string) predicate.Occurrence

DocumentRefNEQ applies the NEQ predicate on the "document_ref" field.

func DocumentRefNotIn added in v0.6.0

func DocumentRefNotIn(vs ...string) predicate.Occurrence

DocumentRefNotIn applies the NotIn predicate on the "document_ref" field.

func HasArtifact

func HasArtifact() predicate.Occurrence

HasArtifact applies the HasEdge predicate on the "artifact" edge.

func HasArtifactWith

func HasArtifactWith(preds ...predicate.Artifact) predicate.Occurrence

HasArtifactWith applies the HasEdge predicate on the "artifact" edge with a given conditions (other predicates).

func HasIncludedInSboms added in v0.4.0

func HasIncludedInSboms() predicate.Occurrence

HasIncludedInSboms applies the HasEdge predicate on the "included_in_sboms" edge.

func HasIncludedInSbomsWith added in v0.4.0

func HasIncludedInSbomsWith(preds ...predicate.BillOfMaterials) predicate.Occurrence

HasIncludedInSbomsWith applies the HasEdge predicate on the "included_in_sboms" edge with a given conditions (other predicates).

func HasPackage

func HasPackage() predicate.Occurrence

HasPackage applies the HasEdge predicate on the "package" edge.

func HasPackageWith

func HasPackageWith(preds ...predicate.PackageVersion) predicate.Occurrence

HasPackageWith applies the HasEdge predicate on the "package" edge with a given conditions (other predicates).

func HasSource

func HasSource() predicate.Occurrence

HasSource applies the HasEdge predicate on the "source" edge.

func HasSourceWith

func HasSourceWith(preds ...predicate.SourceName) predicate.Occurrence

HasSourceWith applies the HasEdge predicate on the "source" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Occurrence

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Occurrence

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Occurrence

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Occurrence

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Occurrence

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Occurrence

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Justification

func Justification(v string) predicate.Occurrence

Justification applies equality check predicate on the "justification" field. It's identical to JustificationEQ.

func JustificationContains

func JustificationContains(v string) predicate.Occurrence

JustificationContains applies the Contains predicate on the "justification" field.

func JustificationContainsFold

func JustificationContainsFold(v string) predicate.Occurrence

JustificationContainsFold applies the ContainsFold predicate on the "justification" field.

func JustificationEQ

func JustificationEQ(v string) predicate.Occurrence

JustificationEQ applies the EQ predicate on the "justification" field.

func JustificationEqualFold

func JustificationEqualFold(v string) predicate.Occurrence

JustificationEqualFold applies the EqualFold predicate on the "justification" field.

func JustificationGT

func JustificationGT(v string) predicate.Occurrence

JustificationGT applies the GT predicate on the "justification" field.

func JustificationGTE

func JustificationGTE(v string) predicate.Occurrence

JustificationGTE applies the GTE predicate on the "justification" field.

func JustificationHasPrefix

func JustificationHasPrefix(v string) predicate.Occurrence

JustificationHasPrefix applies the HasPrefix predicate on the "justification" field.

func JustificationHasSuffix

func JustificationHasSuffix(v string) predicate.Occurrence

JustificationHasSuffix applies the HasSuffix predicate on the "justification" field.

func JustificationIn

func JustificationIn(vs ...string) predicate.Occurrence

JustificationIn applies the In predicate on the "justification" field.

func JustificationLT

func JustificationLT(v string) predicate.Occurrence

JustificationLT applies the LT predicate on the "justification" field.

func JustificationLTE

func JustificationLTE(v string) predicate.Occurrence

JustificationLTE applies the LTE predicate on the "justification" field.

func JustificationNEQ

func JustificationNEQ(v string) predicate.Occurrence

JustificationNEQ applies the NEQ predicate on the "justification" field.

func JustificationNotIn

func JustificationNotIn(vs ...string) predicate.Occurrence

JustificationNotIn applies the NotIn predicate on the "justification" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Occurrence) predicate.Occurrence

Or groups predicates with the OR operator between them.

func Origin

func Origin(v string) predicate.Occurrence

Origin applies equality check predicate on the "origin" field. It's identical to OriginEQ.

func OriginContains

func OriginContains(v string) predicate.Occurrence

OriginContains applies the Contains predicate on the "origin" field.

func OriginContainsFold

func OriginContainsFold(v string) predicate.Occurrence

OriginContainsFold applies the ContainsFold predicate on the "origin" field.

func OriginEQ

func OriginEQ(v string) predicate.Occurrence

OriginEQ applies the EQ predicate on the "origin" field.

func OriginEqualFold

func OriginEqualFold(v string) predicate.Occurrence

OriginEqualFold applies the EqualFold predicate on the "origin" field.

func OriginGT

func OriginGT(v string) predicate.Occurrence

OriginGT applies the GT predicate on the "origin" field.

func OriginGTE

func OriginGTE(v string) predicate.Occurrence

OriginGTE applies the GTE predicate on the "origin" field.

func OriginHasPrefix

func OriginHasPrefix(v string) predicate.Occurrence

OriginHasPrefix applies the HasPrefix predicate on the "origin" field.

func OriginHasSuffix

func OriginHasSuffix(v string) predicate.Occurrence

OriginHasSuffix applies the HasSuffix predicate on the "origin" field.

func OriginIn

func OriginIn(vs ...string) predicate.Occurrence

OriginIn applies the In predicate on the "origin" field.

func OriginLT

func OriginLT(v string) predicate.Occurrence

OriginLT applies the LT predicate on the "origin" field.

func OriginLTE

func OriginLTE(v string) predicate.Occurrence

OriginLTE applies the LTE predicate on the "origin" field.

func OriginNEQ

func OriginNEQ(v string) predicate.Occurrence

OriginNEQ applies the NEQ predicate on the "origin" field.

func OriginNotIn

func OriginNotIn(vs ...string) predicate.Occurrence

OriginNotIn applies the NotIn predicate on the "origin" field.

func PackageID

func PackageID(v uuid.UUID) predicate.Occurrence

PackageID applies equality check predicate on the "package_id" field. It's identical to PackageIDEQ.

func PackageIDEQ

func PackageIDEQ(v uuid.UUID) predicate.Occurrence

PackageIDEQ applies the EQ predicate on the "package_id" field.

func PackageIDIn

func PackageIDIn(vs ...uuid.UUID) predicate.Occurrence

PackageIDIn applies the In predicate on the "package_id" field.

func PackageIDIsNil

func PackageIDIsNil() predicate.Occurrence

PackageIDIsNil applies the IsNil predicate on the "package_id" field.

func PackageIDNEQ

func PackageIDNEQ(v uuid.UUID) predicate.Occurrence

PackageIDNEQ applies the NEQ predicate on the "package_id" field.

func PackageIDNotIn

func PackageIDNotIn(vs ...uuid.UUID) predicate.Occurrence

PackageIDNotIn applies the NotIn predicate on the "package_id" field.

func PackageIDNotNil

func PackageIDNotNil() predicate.Occurrence

PackageIDNotNil applies the NotNil predicate on the "package_id" field.

func SourceID

func SourceID(v uuid.UUID) predicate.Occurrence

SourceID applies equality check predicate on the "source_id" field. It's identical to SourceIDEQ.

func SourceIDEQ

func SourceIDEQ(v uuid.UUID) predicate.Occurrence

SourceIDEQ applies the EQ predicate on the "source_id" field.

func SourceIDIn

func SourceIDIn(vs ...uuid.UUID) predicate.Occurrence

SourceIDIn applies the In predicate on the "source_id" field.

func SourceIDIsNil

func SourceIDIsNil() predicate.Occurrence

SourceIDIsNil applies the IsNil predicate on the "source_id" field.

func SourceIDNEQ

func SourceIDNEQ(v uuid.UUID) predicate.Occurrence

SourceIDNEQ applies the NEQ predicate on the "source_id" field.

func SourceIDNotIn

func SourceIDNotIn(vs ...uuid.UUID) predicate.Occurrence

SourceIDNotIn applies the NotIn predicate on the "source_id" field.

func SourceIDNotNil

func SourceIDNotNil() predicate.Occurrence

SourceIDNotNil applies the NotNil predicate on the "source_id" 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 Occurrence queries.

func ByArtifactField

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

ByArtifactField orders the results by artifact field.

func ByArtifactID

func ByArtifactID(opts ...sql.OrderTermOption) OrderOption

ByArtifactID orders the results by the artifact_id field.

func ByCollector

func ByCollector(opts ...sql.OrderTermOption) OrderOption

ByCollector orders the results by the collector field.

func ByDocumentRef added in v0.6.0

func ByDocumentRef(opts ...sql.OrderTermOption) OrderOption

ByDocumentRef orders the results by the document_ref field.

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 ByJustification

func ByJustification(opts ...sql.OrderTermOption) OrderOption

ByJustification orders the results by the justification field.

func ByOrigin

func ByOrigin(opts ...sql.OrderTermOption) OrderOption

ByOrigin orders the results by the origin field.

func ByPackageField

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

ByPackageField orders the results by package field.

func ByPackageID

func ByPackageID(opts ...sql.OrderTermOption) OrderOption

ByPackageID orders the results by the package_id field.

func BySourceField

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

BySourceField orders the results by source field.

func BySourceID

func BySourceID(opts ...sql.OrderTermOption) OrderOption

BySourceID orders the results by the source_id field.

Jump to

Keyboard shortcuts

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