Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Dependency) predicate.Dependency
- func Collector(v string) predicate.Dependency
- func CollectorContains(v string) predicate.Dependency
- func CollectorContainsFold(v string) predicate.Dependency
- func CollectorEQ(v string) predicate.Dependency
- func CollectorEqualFold(v string) predicate.Dependency
- func CollectorGT(v string) predicate.Dependency
- func CollectorGTE(v string) predicate.Dependency
- func CollectorHasPrefix(v string) predicate.Dependency
- func CollectorHasSuffix(v string) predicate.Dependency
- func CollectorIn(vs ...string) predicate.Dependency
- func CollectorLT(v string) predicate.Dependency
- func CollectorLTE(v string) predicate.Dependency
- func CollectorNEQ(v string) predicate.Dependency
- func CollectorNotIn(vs ...string) predicate.Dependency
- func DependencyTypeEQ(v DependencyType) predicate.Dependency
- func DependencyTypeIn(vs ...DependencyType) predicate.Dependency
- func DependencyTypeNEQ(v DependencyType) predicate.Dependency
- func DependencyTypeNotIn(vs ...DependencyType) predicate.Dependency
- func DependencyTypeValidator(dt DependencyType) error
- func DependentPackageVersionID(v uuid.UUID) predicate.Dependency
- func DependentPackageVersionIDEQ(v uuid.UUID) predicate.Dependency
- func DependentPackageVersionIDIn(vs ...uuid.UUID) predicate.Dependency
- func DependentPackageVersionIDNEQ(v uuid.UUID) predicate.Dependency
- func DependentPackageVersionIDNotIn(vs ...uuid.UUID) predicate.Dependency
- func DocumentRef(v string) predicate.Dependency
- func DocumentRefContains(v string) predicate.Dependency
- func DocumentRefContainsFold(v string) predicate.Dependency
- func DocumentRefEQ(v string) predicate.Dependency
- func DocumentRefEqualFold(v string) predicate.Dependency
- func DocumentRefGT(v string) predicate.Dependency
- func DocumentRefGTE(v string) predicate.Dependency
- func DocumentRefHasPrefix(v string) predicate.Dependency
- func DocumentRefHasSuffix(v string) predicate.Dependency
- func DocumentRefIn(vs ...string) predicate.Dependency
- func DocumentRefLT(v string) predicate.Dependency
- func DocumentRefLTE(v string) predicate.Dependency
- func DocumentRefNEQ(v string) predicate.Dependency
- func DocumentRefNotIn(vs ...string) predicate.Dependency
- func HasDependentPackageVersion() predicate.Dependency
- func HasDependentPackageVersionWith(preds ...predicate.PackageVersion) predicate.Dependency
- func HasIncludedInSboms() predicate.Dependency
- func HasIncludedInSbomsWith(preds ...predicate.BillOfMaterials) predicate.Dependency
- func HasPackage() predicate.Dependency
- func HasPackageWith(preds ...predicate.PackageVersion) predicate.Dependency
- func ID(id uuid.UUID) predicate.Dependency
- func IDEQ(id uuid.UUID) predicate.Dependency
- func IDGT(id uuid.UUID) predicate.Dependency
- func IDGTE(id uuid.UUID) predicate.Dependency
- func IDIn(ids ...uuid.UUID) predicate.Dependency
- func IDLT(id uuid.UUID) predicate.Dependency
- func IDLTE(id uuid.UUID) predicate.Dependency
- func IDNEQ(id uuid.UUID) predicate.Dependency
- func IDNotIn(ids ...uuid.UUID) predicate.Dependency
- func Justification(v string) predicate.Dependency
- func JustificationContains(v string) predicate.Dependency
- func JustificationContainsFold(v string) predicate.Dependency
- func JustificationEQ(v string) predicate.Dependency
- func JustificationEqualFold(v string) predicate.Dependency
- func JustificationGT(v string) predicate.Dependency
- func JustificationGTE(v string) predicate.Dependency
- func JustificationHasPrefix(v string) predicate.Dependency
- func JustificationHasSuffix(v string) predicate.Dependency
- func JustificationIn(vs ...string) predicate.Dependency
- func JustificationLT(v string) predicate.Dependency
- func JustificationLTE(v string) predicate.Dependency
- func JustificationNEQ(v string) predicate.Dependency
- func JustificationNotIn(vs ...string) predicate.Dependency
- func Not(p predicate.Dependency) predicate.Dependency
- func Or(predicates ...predicate.Dependency) predicate.Dependency
- func Origin(v string) predicate.Dependency
- func OriginContains(v string) predicate.Dependency
- func OriginContainsFold(v string) predicate.Dependency
- func OriginEQ(v string) predicate.Dependency
- func OriginEqualFold(v string) predicate.Dependency
- func OriginGT(v string) predicate.Dependency
- func OriginGTE(v string) predicate.Dependency
- func OriginHasPrefix(v string) predicate.Dependency
- func OriginHasSuffix(v string) predicate.Dependency
- func OriginIn(vs ...string) predicate.Dependency
- func OriginLT(v string) predicate.Dependency
- func OriginLTE(v string) predicate.Dependency
- func OriginNEQ(v string) predicate.Dependency
- func OriginNotIn(vs ...string) predicate.Dependency
- func PackageID(v uuid.UUID) predicate.Dependency
- func PackageIDEQ(v uuid.UUID) predicate.Dependency
- func PackageIDIn(vs ...uuid.UUID) predicate.Dependency
- func PackageIDNEQ(v uuid.UUID) predicate.Dependency
- func PackageIDNotIn(vs ...uuid.UUID) predicate.Dependency
- func ValidColumn(column string) bool
- type DependencyType
- type OrderOption
- func ByCollector(opts ...sql.OrderTermOption) OrderOption
- func ByDependencyType(opts ...sql.OrderTermOption) OrderOption
- func ByDependentPackageVersionField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByDependentPackageVersionID(opts ...sql.OrderTermOption) OrderOption
- func ByDocumentRef(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIncludedInSboms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByIncludedInSbomsCount(opts ...sql.OrderTermOption) OrderOption
- func ByJustification(opts ...sql.OrderTermOption) OrderOption
- func ByOrigin(opts ...sql.OrderTermOption) OrderOption
- func ByPackageField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPackageID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" // FieldDependentPackageVersionID holds the string denoting the dependent_package_version_id field in the database. FieldDependentPackageVersionID = "dependent_package_version_id" // 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" // FieldDocumentRef holds the string denoting the document_ref field in the database. FieldDocumentRef = "document_ref" // EdgePackage holds the string denoting the package edge name in mutations. EdgePackage = "package" // 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" // 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 ¶
var Columns = []string{ FieldID, FieldPackageID, FieldDependentPackageVersionID, FieldDependencyType, FieldJustification, FieldOrigin, FieldCollector, FieldDocumentRef, }
Columns holds all SQL columns for dependency fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
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 DependentPackageVersionID ¶
func DependentPackageVersionID(v uuid.UUID) predicate.Dependency
DependentPackageVersionID applies equality check predicate on the "dependent_package_version_id" field. It's identical to DependentPackageVersionIDEQ.
func DependentPackageVersionIDEQ ¶
func DependentPackageVersionIDEQ(v uuid.UUID) predicate.Dependency
DependentPackageVersionIDEQ applies the EQ predicate on the "dependent_package_version_id" field.
func DependentPackageVersionIDIn ¶
func DependentPackageVersionIDIn(vs ...uuid.UUID) predicate.Dependency
DependentPackageVersionIDIn applies the In predicate on the "dependent_package_version_id" field.
func DependentPackageVersionIDNEQ ¶
func DependentPackageVersionIDNEQ(v uuid.UUID) predicate.Dependency
DependentPackageVersionIDNEQ applies the NEQ predicate on the "dependent_package_version_id" field.
func DependentPackageVersionIDNotIn ¶
func DependentPackageVersionIDNotIn(vs ...uuid.UUID) predicate.Dependency
DependentPackageVersionIDNotIn applies the NotIn predicate on the "dependent_package_version_id" field.
func DocumentRef ¶ added in v0.6.0
func DocumentRef(v string) predicate.Dependency
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.Dependency
DocumentRefContains applies the Contains predicate on the "document_ref" field.
func DocumentRefContainsFold ¶ added in v0.6.0
func DocumentRefContainsFold(v string) predicate.Dependency
DocumentRefContainsFold applies the ContainsFold predicate on the "document_ref" field.
func DocumentRefEQ ¶ added in v0.6.0
func DocumentRefEQ(v string) predicate.Dependency
DocumentRefEQ applies the EQ predicate on the "document_ref" field.
func DocumentRefEqualFold ¶ added in v0.6.0
func DocumentRefEqualFold(v string) predicate.Dependency
DocumentRefEqualFold applies the EqualFold predicate on the "document_ref" field.
func DocumentRefGT ¶ added in v0.6.0
func DocumentRefGT(v string) predicate.Dependency
DocumentRefGT applies the GT predicate on the "document_ref" field.
func DocumentRefGTE ¶ added in v0.6.0
func DocumentRefGTE(v string) predicate.Dependency
DocumentRefGTE applies the GTE predicate on the "document_ref" field.
func DocumentRefHasPrefix ¶ added in v0.6.0
func DocumentRefHasPrefix(v string) predicate.Dependency
DocumentRefHasPrefix applies the HasPrefix predicate on the "document_ref" field.
func DocumentRefHasSuffix ¶ added in v0.6.0
func DocumentRefHasSuffix(v string) predicate.Dependency
DocumentRefHasSuffix applies the HasSuffix predicate on the "document_ref" field.
func DocumentRefIn ¶ added in v0.6.0
func DocumentRefIn(vs ...string) predicate.Dependency
DocumentRefIn applies the In predicate on the "document_ref" field.
func DocumentRefLT ¶ added in v0.6.0
func DocumentRefLT(v string) predicate.Dependency
DocumentRefLT applies the LT predicate on the "document_ref" field.
func DocumentRefLTE ¶ added in v0.6.0
func DocumentRefLTE(v string) predicate.Dependency
DocumentRefLTE applies the LTE predicate on the "document_ref" field.
func DocumentRefNEQ ¶ added in v0.6.0
func DocumentRefNEQ(v string) predicate.Dependency
DocumentRefNEQ applies the NEQ predicate on the "document_ref" field.
func DocumentRefNotIn ¶ added in v0.6.0
func DocumentRefNotIn(vs ...string) predicate.Dependency
DocumentRefNotIn applies the NotIn predicate on the "document_ref" field.
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 IDEQ ¶
func IDEQ(id uuid.UUID) predicate.Dependency
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.Dependency
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.Dependency
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.Dependency
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.Dependency
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.Dependency
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.Dependency
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) 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 ¶
func Not(p predicate.Dependency) predicate.Dependency
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 uuid.UUID) predicate.Dependency
PackageID applies equality check predicate on the "package_id" field. It's identical to PackageIDEQ.
func PackageIDEQ ¶
func PackageIDEQ(v uuid.UUID) predicate.Dependency
PackageIDEQ applies the EQ predicate on the "package_id" field.
func PackageIDIn ¶
func PackageIDIn(vs ...uuid.UUID) predicate.Dependency
PackageIDIn applies the In predicate on the "package_id" field.
func PackageIDNEQ ¶
func PackageIDNEQ(v uuid.UUID) predicate.Dependency
PackageIDNEQ applies the NEQ predicate on the "package_id" field.
func PackageIDNotIn ¶
func PackageIDNotIn(vs ...uuid.UUID) predicate.Dependency
PackageIDNotIn applies the NotIn predicate on the "package_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
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 ¶
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 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 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.