hasmetadata

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the hasmetadata type in the database.
	Label = "has_metadata"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSourceID holds the string denoting the source_id field in the database.
	FieldSourceID = "source_id"
	// FieldPackageVersionID holds the string denoting the package_version_id field in the database.
	FieldPackageVersionID = "package_version_id"
	// FieldPackageNameID holds the string denoting the package_name_id field in the database.
	FieldPackageNameID = "package_name_id"
	// FieldArtifactID holds the string denoting the artifact_id field in the database.
	FieldArtifactID = "artifact_id"
	// FieldTimestamp holds the string denoting the timestamp field in the database.
	FieldTimestamp = "timestamp"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldValue holds the string denoting the value field in the database.
	FieldValue = "value"
	// 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"
	// EdgeSource holds the string denoting the source edge name in mutations.
	EdgeSource = "source"
	// EdgePackageVersion holds the string denoting the package_version edge name in mutations.
	EdgePackageVersion = "package_version"
	// EdgeAllVersions holds the string denoting the all_versions edge name in mutations.
	EdgeAllVersions = "all_versions"
	// EdgeArtifact holds the string denoting the artifact edge name in mutations.
	EdgeArtifact = "artifact"
	// Table holds the table name of the hasmetadata in the database.
	Table = "has_metadata"
	// SourceTable is the table that holds the source relation/edge.
	SourceTable = "has_metadata"
	// 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"
	// PackageVersionTable is the table that holds the package_version relation/edge.
	PackageVersionTable = "has_metadata"
	// PackageVersionInverseTable is the table name for the PackageVersion entity.
	// It exists in this package in order to avoid circular dependency with the "packageversion" package.
	PackageVersionInverseTable = "package_versions"
	// PackageVersionColumn is the table column denoting the package_version relation/edge.
	PackageVersionColumn = "package_version_id"
	// AllVersionsTable is the table that holds the all_versions relation/edge.
	AllVersionsTable = "has_metadata"
	// AllVersionsInverseTable is the table name for the PackageName entity.
	// It exists in this package in order to avoid circular dependency with the "packagename" package.
	AllVersionsInverseTable = "package_names"
	// AllVersionsColumn is the table column denoting the all_versions relation/edge.
	AllVersionsColumn = "package_name_id"
	// ArtifactTable is the table that holds the artifact relation/edge.
	ArtifactTable = "has_metadata"
	// 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"
)

Variables

Columns holds all SQL columns for hasmetadata fields.

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

Functions

func And

func And(predicates ...predicate.HasMetadata) predicate.HasMetadata

And groups predicates with the AND operator between them.

func ArtifactID

func ArtifactID(v uuid.UUID) predicate.HasMetadata

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

func ArtifactIDEQ

func ArtifactIDEQ(v uuid.UUID) predicate.HasMetadata

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

func ArtifactIDIn

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

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

func ArtifactIDIsNil

func ArtifactIDIsNil() predicate.HasMetadata

ArtifactIDIsNil applies the IsNil predicate on the "artifact_id" field.

func ArtifactIDNEQ

func ArtifactIDNEQ(v uuid.UUID) predicate.HasMetadata

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

func ArtifactIDNotIn

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

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

func ArtifactIDNotNil

func ArtifactIDNotNil() predicate.HasMetadata

ArtifactIDNotNil applies the NotNil predicate on the "artifact_id" field.

func Collector

func Collector(v string) predicate.HasMetadata

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

func CollectorContains

func CollectorContains(v string) predicate.HasMetadata

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

func CollectorContainsFold

func CollectorContainsFold(v string) predicate.HasMetadata

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

func CollectorEQ

func CollectorEQ(v string) predicate.HasMetadata

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

func CollectorEqualFold

func CollectorEqualFold(v string) predicate.HasMetadata

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

func CollectorGT

func CollectorGT(v string) predicate.HasMetadata

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

func CollectorGTE

func CollectorGTE(v string) predicate.HasMetadata

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

func CollectorHasPrefix

func CollectorHasPrefix(v string) predicate.HasMetadata

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

func CollectorHasSuffix

func CollectorHasSuffix(v string) predicate.HasMetadata

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

func CollectorIn

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

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

func CollectorLT

func CollectorLT(v string) predicate.HasMetadata

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

func CollectorLTE

func CollectorLTE(v string) predicate.HasMetadata

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

func CollectorNEQ

func CollectorNEQ(v string) predicate.HasMetadata

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

func CollectorNotIn

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

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

func DocumentRef added in v0.6.0

func DocumentRef(v string) predicate.HasMetadata

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

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

func DocumentRefContainsFold added in v0.6.0

func DocumentRefContainsFold(v string) predicate.HasMetadata

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

func DocumentRefEQ added in v0.6.0

func DocumentRefEQ(v string) predicate.HasMetadata

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

func DocumentRefEqualFold added in v0.6.0

func DocumentRefEqualFold(v string) predicate.HasMetadata

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

func DocumentRefGT added in v0.6.0

func DocumentRefGT(v string) predicate.HasMetadata

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

func DocumentRefGTE added in v0.6.0

func DocumentRefGTE(v string) predicate.HasMetadata

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

func DocumentRefHasPrefix added in v0.6.0

func DocumentRefHasPrefix(v string) predicate.HasMetadata

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

func DocumentRefHasSuffix added in v0.6.0

func DocumentRefHasSuffix(v string) predicate.HasMetadata

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

func DocumentRefIn added in v0.6.0

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

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

func DocumentRefLT added in v0.6.0

func DocumentRefLT(v string) predicate.HasMetadata

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

func DocumentRefLTE added in v0.6.0

func DocumentRefLTE(v string) predicate.HasMetadata

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

func DocumentRefNEQ added in v0.6.0

func DocumentRefNEQ(v string) predicate.HasMetadata

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

func DocumentRefNotIn added in v0.6.0

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

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

func HasAllVersions

func HasAllVersions() predicate.HasMetadata

HasAllVersions applies the HasEdge predicate on the "all_versions" edge.

func HasAllVersionsWith

func HasAllVersionsWith(preds ...predicate.PackageName) predicate.HasMetadata

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

func HasArtifact

func HasArtifact() predicate.HasMetadata

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

func HasArtifactWith

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

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

func HasPackageVersion

func HasPackageVersion() predicate.HasMetadata

HasPackageVersion applies the HasEdge predicate on the "package_version" edge.

func HasPackageVersionWith

func HasPackageVersionWith(preds ...predicate.PackageVersion) predicate.HasMetadata

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

func HasSource

func HasSource() predicate.HasMetadata

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

func HasSourceWith

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

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

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.HasMetadata

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.HasMetadata

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.HasMetadata

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.HasMetadata

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.HasMetadata

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Justification

func Justification(v string) predicate.HasMetadata

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

func JustificationContains

func JustificationContains(v string) predicate.HasMetadata

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

func JustificationContainsFold

func JustificationContainsFold(v string) predicate.HasMetadata

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

func JustificationEQ

func JustificationEQ(v string) predicate.HasMetadata

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

func JustificationEqualFold

func JustificationEqualFold(v string) predicate.HasMetadata

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

func JustificationGT

func JustificationGT(v string) predicate.HasMetadata

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

func JustificationGTE

func JustificationGTE(v string) predicate.HasMetadata

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

func JustificationHasPrefix

func JustificationHasPrefix(v string) predicate.HasMetadata

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

func JustificationHasSuffix

func JustificationHasSuffix(v string) predicate.HasMetadata

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

func JustificationIn

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

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

func JustificationLT

func JustificationLT(v string) predicate.HasMetadata

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

func JustificationLTE

func JustificationLTE(v string) predicate.HasMetadata

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

func JustificationNEQ

func JustificationNEQ(v string) predicate.HasMetadata

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

func JustificationNotIn

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

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

func Key

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.HasMetadata

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.HasMetadata

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.HasMetadata

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.HasMetadata

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.HasMetadata

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.HasMetadata

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.HasMetadata

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.HasMetadata

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.HasMetadata

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.HasMetadata

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.HasMetadata

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.HasMetadata

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.HasMetadata

KeyNotIn applies the NotIn predicate on the "key" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.HasMetadata) predicate.HasMetadata

Or groups predicates with the OR operator between them.

func Origin

func Origin(v string) predicate.HasMetadata

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

func OriginContains

func OriginContains(v string) predicate.HasMetadata

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

func OriginContainsFold

func OriginContainsFold(v string) predicate.HasMetadata

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

func OriginEQ

func OriginEQ(v string) predicate.HasMetadata

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

func OriginEqualFold

func OriginEqualFold(v string) predicate.HasMetadata

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

func OriginGT

func OriginGT(v string) predicate.HasMetadata

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

func OriginGTE

func OriginGTE(v string) predicate.HasMetadata

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

func OriginHasPrefix

func OriginHasPrefix(v string) predicate.HasMetadata

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

func OriginHasSuffix

func OriginHasSuffix(v string) predicate.HasMetadata

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

func OriginIn

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

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

func OriginLT

func OriginLT(v string) predicate.HasMetadata

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

func OriginLTE

func OriginLTE(v string) predicate.HasMetadata

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

func OriginNEQ

func OriginNEQ(v string) predicate.HasMetadata

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

func OriginNotIn

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

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

func PackageNameID

func PackageNameID(v uuid.UUID) predicate.HasMetadata

PackageNameID applies equality check predicate on the "package_name_id" field. It's identical to PackageNameIDEQ.

func PackageNameIDEQ

func PackageNameIDEQ(v uuid.UUID) predicate.HasMetadata

PackageNameIDEQ applies the EQ predicate on the "package_name_id" field.

func PackageNameIDIn

func PackageNameIDIn(vs ...uuid.UUID) predicate.HasMetadata

PackageNameIDIn applies the In predicate on the "package_name_id" field.

func PackageNameIDIsNil

func PackageNameIDIsNil() predicate.HasMetadata

PackageNameIDIsNil applies the IsNil predicate on the "package_name_id" field.

func PackageNameIDNEQ

func PackageNameIDNEQ(v uuid.UUID) predicate.HasMetadata

PackageNameIDNEQ applies the NEQ predicate on the "package_name_id" field.

func PackageNameIDNotIn

func PackageNameIDNotIn(vs ...uuid.UUID) predicate.HasMetadata

PackageNameIDNotIn applies the NotIn predicate on the "package_name_id" field.

func PackageNameIDNotNil

func PackageNameIDNotNil() predicate.HasMetadata

PackageNameIDNotNil applies the NotNil predicate on the "package_name_id" field.

func PackageVersionID

func PackageVersionID(v uuid.UUID) predicate.HasMetadata

PackageVersionID applies equality check predicate on the "package_version_id" field. It's identical to PackageVersionIDEQ.

func PackageVersionIDEQ

func PackageVersionIDEQ(v uuid.UUID) predicate.HasMetadata

PackageVersionIDEQ applies the EQ predicate on the "package_version_id" field.

func PackageVersionIDIn

func PackageVersionIDIn(vs ...uuid.UUID) predicate.HasMetadata

PackageVersionIDIn applies the In predicate on the "package_version_id" field.

func PackageVersionIDIsNil

func PackageVersionIDIsNil() predicate.HasMetadata

PackageVersionIDIsNil applies the IsNil predicate on the "package_version_id" field.

func PackageVersionIDNEQ

func PackageVersionIDNEQ(v uuid.UUID) predicate.HasMetadata

PackageVersionIDNEQ applies the NEQ predicate on the "package_version_id" field.

func PackageVersionIDNotIn

func PackageVersionIDNotIn(vs ...uuid.UUID) predicate.HasMetadata

PackageVersionIDNotIn applies the NotIn predicate on the "package_version_id" field.

func PackageVersionIDNotNil

func PackageVersionIDNotNil() predicate.HasMetadata

PackageVersionIDNotNil applies the NotNil predicate on the "package_version_id" field.

func SourceID

func SourceID(v uuid.UUID) predicate.HasMetadata

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

func SourceIDEQ

func SourceIDEQ(v uuid.UUID) predicate.HasMetadata

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

func SourceIDIn

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

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

func SourceIDIsNil

func SourceIDIsNil() predicate.HasMetadata

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

func SourceIDNEQ

func SourceIDNEQ(v uuid.UUID) predicate.HasMetadata

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

func SourceIDNotIn

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

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

func SourceIDNotNil

func SourceIDNotNil() predicate.HasMetadata

SourceIDNotNil applies the NotNil predicate on the "source_id" field.

func Timestamp

func Timestamp(v time.Time) predicate.HasMetadata

Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.

func TimestampEQ

func TimestampEQ(v time.Time) predicate.HasMetadata

TimestampEQ applies the EQ predicate on the "timestamp" field.

func TimestampGT

func TimestampGT(v time.Time) predicate.HasMetadata

TimestampGT applies the GT predicate on the "timestamp" field.

func TimestampGTE

func TimestampGTE(v time.Time) predicate.HasMetadata

TimestampGTE applies the GTE predicate on the "timestamp" field.

func TimestampIn

func TimestampIn(vs ...time.Time) predicate.HasMetadata

TimestampIn applies the In predicate on the "timestamp" field.

func TimestampLT

func TimestampLT(v time.Time) predicate.HasMetadata

TimestampLT applies the LT predicate on the "timestamp" field.

func TimestampLTE

func TimestampLTE(v time.Time) predicate.HasMetadata

TimestampLTE applies the LTE predicate on the "timestamp" field.

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.HasMetadata

TimestampNEQ applies the NEQ predicate on the "timestamp" field.

func TimestampNotIn

func TimestampNotIn(vs ...time.Time) predicate.HasMetadata

TimestampNotIn applies the NotIn predicate on the "timestamp" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Value

func Value(v string) predicate.HasMetadata

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueContains

func ValueContains(v string) predicate.HasMetadata

ValueContains applies the Contains predicate on the "value" field.

func ValueContainsFold

func ValueContainsFold(v string) predicate.HasMetadata

ValueContainsFold applies the ContainsFold predicate on the "value" field.

func ValueEQ

func ValueEQ(v string) predicate.HasMetadata

ValueEQ applies the EQ predicate on the "value" field.

func ValueEqualFold

func ValueEqualFold(v string) predicate.HasMetadata

ValueEqualFold applies the EqualFold predicate on the "value" field.

func ValueGT

func ValueGT(v string) predicate.HasMetadata

ValueGT applies the GT predicate on the "value" field.

func ValueGTE

func ValueGTE(v string) predicate.HasMetadata

ValueGTE applies the GTE predicate on the "value" field.

func ValueHasPrefix

func ValueHasPrefix(v string) predicate.HasMetadata

ValueHasPrefix applies the HasPrefix predicate on the "value" field.

func ValueHasSuffix

func ValueHasSuffix(v string) predicate.HasMetadata

ValueHasSuffix applies the HasSuffix predicate on the "value" field.

func ValueIn

func ValueIn(vs ...string) predicate.HasMetadata

ValueIn applies the In predicate on the "value" field.

func ValueLT

func ValueLT(v string) predicate.HasMetadata

ValueLT applies the LT predicate on the "value" field.

func ValueLTE

func ValueLTE(v string) predicate.HasMetadata

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ

func ValueNEQ(v string) predicate.HasMetadata

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn

func ValueNotIn(vs ...string) predicate.HasMetadata

ValueNotIn applies the NotIn predicate on the "value" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the HasMetadata queries.

func ByAllVersionsField

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

ByAllVersionsField orders the results by all_versions field.

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 ByJustification

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

ByJustification orders the results by the justification field.

func ByKey

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

ByKey orders the results by the key field.

func ByOrigin

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

ByOrigin orders the results by the origin field.

func ByPackageNameID

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

ByPackageNameID orders the results by the package_name_id field.

func ByPackageVersionField

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

ByPackageVersionField orders the results by package_version field.

func ByPackageVersionID

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

ByPackageVersionID orders the results by the package_version_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.

func ByTimestamp

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

ByTimestamp orders the results by the timestamp field.

func ByValue

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

ByValue orders the results by the value field.

Jump to

Keyboard shortcuts

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