dependency

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the dependency type in the database.
	Label = "dependency"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPackageID holds the string denoting the package_id field in the database.
	FieldPackageID = "package_id"
	// FieldDependentPackageNameID holds the string denoting the dependent_package_name_id field in the database.
	FieldDependentPackageNameID = "dependent_package_name_id"
	// FieldDependentPackageVersionID holds the string denoting the dependent_package_version_id field in the database.
	FieldDependentPackageVersionID = "dependent_package_version_id"
	// FieldVersionRange holds the string denoting the version_range field in the database.
	FieldVersionRange = "version_range"
	// FieldDependencyType holds the string denoting the dependency_type field in the database.
	FieldDependencyType = "dependency_type"
	// 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"
	// EdgePackage holds the string denoting the package edge name in mutations.
	EdgePackage = "package"
	// EdgeDependentPackageName holds the string denoting the dependent_package_name edge name in mutations.
	EdgeDependentPackageName = "dependent_package_name"
	// EdgeDependentPackageVersion holds the string denoting the dependent_package_version edge name in mutations.
	EdgeDependentPackageVersion = "dependent_package_version"
	// EdgeIncludedInSboms holds the string denoting the included_in_sboms edge name in mutations.
	EdgeIncludedInSboms = "included_in_sboms"
	// Table holds the table name of the dependency in the database.
	Table = "dependencies"
	// PackageTable is the table that holds the package relation/edge.
	PackageTable = "dependencies"
	// 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"
	// DependentPackageNameTable is the table that holds the dependent_package_name relation/edge.
	DependentPackageNameTable = "dependencies"
	// DependentPackageNameInverseTable is the table name for the PackageName entity.
	// It exists in this package in order to avoid circular dependency with the "packagename" package.
	DependentPackageNameInverseTable = "package_names"
	// DependentPackageNameColumn is the table column denoting the dependent_package_name relation/edge.
	DependentPackageNameColumn = "dependent_package_name_id"
	// DependentPackageVersionTable is the table that holds the dependent_package_version relation/edge.
	DependentPackageVersionTable = "dependencies"
	// DependentPackageVersionInverseTable is the table name for the PackageVersion entity.
	// It exists in this package in order to avoid circular dependency with the "packageversion" package.
	DependentPackageVersionInverseTable = "package_versions"
	// DependentPackageVersionColumn is the table column denoting the dependent_package_version relation/edge.
	DependentPackageVersionColumn = "dependent_package_version_id"
	// IncludedInSbomsTable is the table that holds the included_in_sboms relation/edge. The primary key declared below.
	IncludedInSbomsTable = "bill_of_materials_included_dependencies"
	// 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 dependency fields.

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", "dependency_id"}
)

Functions

func And

func And(predicates ...predicate.Dependency) predicate.Dependency

And groups predicates with the AND operator between them.

func Collector

func Collector(v string) predicate.Dependency

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

func CollectorContains

func CollectorContains(v string) predicate.Dependency

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

func CollectorContainsFold

func CollectorContainsFold(v string) predicate.Dependency

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

func CollectorEQ

func CollectorEQ(v string) predicate.Dependency

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

func CollectorEqualFold

func CollectorEqualFold(v string) predicate.Dependency

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

func CollectorGT

func CollectorGT(v string) predicate.Dependency

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

func CollectorGTE

func CollectorGTE(v string) predicate.Dependency

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

func CollectorHasPrefix

func CollectorHasPrefix(v string) predicate.Dependency

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

func CollectorHasSuffix

func CollectorHasSuffix(v string) predicate.Dependency

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

func CollectorIn

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

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

func CollectorLT

func CollectorLT(v string) predicate.Dependency

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

func CollectorLTE

func CollectorLTE(v string) predicate.Dependency

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

func CollectorNEQ

func CollectorNEQ(v string) predicate.Dependency

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

func CollectorNotIn

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

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

func DependencyTypeEQ

func DependencyTypeEQ(v DependencyType) predicate.Dependency

DependencyTypeEQ applies the EQ predicate on the "dependency_type" field.

func DependencyTypeIn

func DependencyTypeIn(vs ...DependencyType) predicate.Dependency

DependencyTypeIn applies the In predicate on the "dependency_type" field.

func DependencyTypeNEQ

func DependencyTypeNEQ(v DependencyType) predicate.Dependency

DependencyTypeNEQ applies the NEQ predicate on the "dependency_type" field.

func DependencyTypeNotIn

func DependencyTypeNotIn(vs ...DependencyType) predicate.Dependency

DependencyTypeNotIn applies the NotIn predicate on the "dependency_type" field.

func DependencyTypeValidator

func DependencyTypeValidator(dt DependencyType) error

DependencyTypeValidator is a validator for the "dependency_type" field enum values. It is called by the builders before save.

func DependentPackageNameID

func DependentPackageNameID(v int) predicate.Dependency

DependentPackageNameID applies equality check predicate on the "dependent_package_name_id" field. It's identical to DependentPackageNameIDEQ.

func DependentPackageNameIDEQ

func DependentPackageNameIDEQ(v int) predicate.Dependency

DependentPackageNameIDEQ applies the EQ predicate on the "dependent_package_name_id" field.

func DependentPackageNameIDIn

func DependentPackageNameIDIn(vs ...int) predicate.Dependency

DependentPackageNameIDIn applies the In predicate on the "dependent_package_name_id" field.

func DependentPackageNameIDIsNil

func DependentPackageNameIDIsNil() predicate.Dependency

DependentPackageNameIDIsNil applies the IsNil predicate on the "dependent_package_name_id" field.

func DependentPackageNameIDNEQ

func DependentPackageNameIDNEQ(v int) predicate.Dependency

DependentPackageNameIDNEQ applies the NEQ predicate on the "dependent_package_name_id" field.

func DependentPackageNameIDNotIn

func DependentPackageNameIDNotIn(vs ...int) predicate.Dependency

DependentPackageNameIDNotIn applies the NotIn predicate on the "dependent_package_name_id" field.

func DependentPackageNameIDNotNil

func DependentPackageNameIDNotNil() predicate.Dependency

DependentPackageNameIDNotNil applies the NotNil predicate on the "dependent_package_name_id" field.

func DependentPackageVersionID

func DependentPackageVersionID(v int) predicate.Dependency

DependentPackageVersionID applies equality check predicate on the "dependent_package_version_id" field. It's identical to DependentPackageVersionIDEQ.

func DependentPackageVersionIDEQ

func DependentPackageVersionIDEQ(v int) predicate.Dependency

DependentPackageVersionIDEQ applies the EQ predicate on the "dependent_package_version_id" field.

func DependentPackageVersionIDIn

func DependentPackageVersionIDIn(vs ...int) predicate.Dependency

DependentPackageVersionIDIn applies the In predicate on the "dependent_package_version_id" field.

func DependentPackageVersionIDIsNil

func DependentPackageVersionIDIsNil() predicate.Dependency

DependentPackageVersionIDIsNil applies the IsNil predicate on the "dependent_package_version_id" field.

func DependentPackageVersionIDNEQ

func DependentPackageVersionIDNEQ(v int) predicate.Dependency

DependentPackageVersionIDNEQ applies the NEQ predicate on the "dependent_package_version_id" field.

func DependentPackageVersionIDNotIn

func DependentPackageVersionIDNotIn(vs ...int) predicate.Dependency

DependentPackageVersionIDNotIn applies the NotIn predicate on the "dependent_package_version_id" field.

func DependentPackageVersionIDNotNil

func DependentPackageVersionIDNotNil() predicate.Dependency

DependentPackageVersionIDNotNil applies the NotNil predicate on the "dependent_package_version_id" field.

func HasDependentPackageName

func HasDependentPackageName() predicate.Dependency

HasDependentPackageName applies the HasEdge predicate on the "dependent_package_name" edge.

func HasDependentPackageNameWith

func HasDependentPackageNameWith(preds ...predicate.PackageName) predicate.Dependency

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

func HasDependentPackageVersion

func HasDependentPackageVersion() predicate.Dependency

HasDependentPackageVersion applies the HasEdge predicate on the "dependent_package_version" edge.

func HasDependentPackageVersionWith

func HasDependentPackageVersionWith(preds ...predicate.PackageVersion) predicate.Dependency

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

func HasIncludedInSboms added in v0.4.0

func HasIncludedInSboms() predicate.Dependency

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

func HasIncludedInSbomsWith added in v0.4.0

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

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

func HasPackage

func HasPackage() predicate.Dependency

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

func HasPackageWith

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

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

func ID

func ID(id int) predicate.Dependency

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Dependency

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Dependency

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Dependency

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Dependency

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Dependency

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Dependency

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Dependency

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Dependency

IDNotIn applies the NotIn predicate on the ID field.

func Justification

func Justification(v string) predicate.Dependency

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

func JustificationContains

func JustificationContains(v string) predicate.Dependency

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

func JustificationContainsFold

func JustificationContainsFold(v string) predicate.Dependency

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

func JustificationEQ

func JustificationEQ(v string) predicate.Dependency

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

func JustificationEqualFold

func JustificationEqualFold(v string) predicate.Dependency

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

func JustificationGT

func JustificationGT(v string) predicate.Dependency

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

func JustificationGTE

func JustificationGTE(v string) predicate.Dependency

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

func JustificationHasPrefix

func JustificationHasPrefix(v string) predicate.Dependency

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

func JustificationHasSuffix

func JustificationHasSuffix(v string) predicate.Dependency

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

func JustificationIn

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

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

func JustificationLT

func JustificationLT(v string) predicate.Dependency

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

func JustificationLTE

func JustificationLTE(v string) predicate.Dependency

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

func JustificationNEQ

func JustificationNEQ(v string) predicate.Dependency

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

func JustificationNotIn

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

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.Dependency) predicate.Dependency

Or groups predicates with the OR operator between them.

func Origin

func Origin(v string) predicate.Dependency

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

func OriginContains

func OriginContains(v string) predicate.Dependency

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

func OriginContainsFold

func OriginContainsFold(v string) predicate.Dependency

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

func OriginEQ

func OriginEQ(v string) predicate.Dependency

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

func OriginEqualFold

func OriginEqualFold(v string) predicate.Dependency

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

func OriginGT

func OriginGT(v string) predicate.Dependency

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

func OriginGTE

func OriginGTE(v string) predicate.Dependency

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

func OriginHasPrefix

func OriginHasPrefix(v string) predicate.Dependency

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

func OriginHasSuffix

func OriginHasSuffix(v string) predicate.Dependency

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

func OriginIn

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

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

func OriginLT

func OriginLT(v string) predicate.Dependency

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

func OriginLTE

func OriginLTE(v string) predicate.Dependency

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

func OriginNEQ

func OriginNEQ(v string) predicate.Dependency

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

func OriginNotIn

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

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

func PackageID

func PackageID(v int) predicate.Dependency

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

func PackageIDEQ

func PackageIDEQ(v int) predicate.Dependency

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

func PackageIDIn

func PackageIDIn(vs ...int) predicate.Dependency

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

func PackageIDNEQ

func PackageIDNEQ(v int) predicate.Dependency

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

func PackageIDNotIn

func PackageIDNotIn(vs ...int) predicate.Dependency

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

func ValidColumn

func ValidColumn(column string) bool

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

func VersionRange

func VersionRange(v string) predicate.Dependency

VersionRange applies equality check predicate on the "version_range" field. It's identical to VersionRangeEQ.

func VersionRangeContains

func VersionRangeContains(v string) predicate.Dependency

VersionRangeContains applies the Contains predicate on the "version_range" field.

func VersionRangeContainsFold

func VersionRangeContainsFold(v string) predicate.Dependency

VersionRangeContainsFold applies the ContainsFold predicate on the "version_range" field.

func VersionRangeEQ

func VersionRangeEQ(v string) predicate.Dependency

VersionRangeEQ applies the EQ predicate on the "version_range" field.

func VersionRangeEqualFold

func VersionRangeEqualFold(v string) predicate.Dependency

VersionRangeEqualFold applies the EqualFold predicate on the "version_range" field.

func VersionRangeGT

func VersionRangeGT(v string) predicate.Dependency

VersionRangeGT applies the GT predicate on the "version_range" field.

func VersionRangeGTE

func VersionRangeGTE(v string) predicate.Dependency

VersionRangeGTE applies the GTE predicate on the "version_range" field.

func VersionRangeHasPrefix

func VersionRangeHasPrefix(v string) predicate.Dependency

VersionRangeHasPrefix applies the HasPrefix predicate on the "version_range" field.

func VersionRangeHasSuffix

func VersionRangeHasSuffix(v string) predicate.Dependency

VersionRangeHasSuffix applies the HasSuffix predicate on the "version_range" field.

func VersionRangeIn

func VersionRangeIn(vs ...string) predicate.Dependency

VersionRangeIn applies the In predicate on the "version_range" field.

func VersionRangeLT

func VersionRangeLT(v string) predicate.Dependency

VersionRangeLT applies the LT predicate on the "version_range" field.

func VersionRangeLTE

func VersionRangeLTE(v string) predicate.Dependency

VersionRangeLTE applies the LTE predicate on the "version_range" field.

func VersionRangeNEQ

func VersionRangeNEQ(v string) predicate.Dependency

VersionRangeNEQ applies the NEQ predicate on the "version_range" field.

func VersionRangeNotIn

func VersionRangeNotIn(vs ...string) predicate.Dependency

VersionRangeNotIn applies the NotIn predicate on the "version_range" field.

Types

type DependencyType

type DependencyType string

DependencyType defines the type for the "dependency_type" enum field.

const (
	DependencyTypeDIRECT   DependencyType = "DIRECT"
	DependencyTypeINDIRECT DependencyType = "INDIRECT"
	DependencyTypeUNKNOWN  DependencyType = "UNKNOWN"
)

DependencyType values.

func (DependencyType) MarshalGQL

func (e DependencyType) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (DependencyType) String

func (dt DependencyType) String() string

func (*DependencyType) UnmarshalGQL

func (e *DependencyType) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Dependency queries.

func ByCollector

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

ByCollector orders the results by the collector field.

func ByDependencyType

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

ByDependencyType orders the results by the dependency_type field.

func ByDependentPackageNameField

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

ByDependentPackageNameField orders the results by dependent_package_name field.

func ByDependentPackageNameID

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

ByDependentPackageNameID orders the results by the dependent_package_name_id field.

func ByDependentPackageVersionField

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

ByDependentPackageVersionField orders the results by dependent_package_version field.

func ByDependentPackageVersionID

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

ByDependentPackageVersionID orders the results by the dependent_package_version_id 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 ByVersionRange

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

ByVersionRange orders the results by the version_range field.

Jump to

Keyboard shortcuts

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