Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Component) predicate.Component
- func Description(v string) predicate.Component
- func DescriptionContains(v string) predicate.Component
- func DescriptionContainsFold(v string) predicate.Component
- func DescriptionEQ(v string) predicate.Component
- func DescriptionEqualFold(v string) predicate.Component
- func DescriptionGT(v string) predicate.Component
- func DescriptionGTE(v string) predicate.Component
- func DescriptionHasPrefix(v string) predicate.Component
- func DescriptionHasSuffix(v string) predicate.Component
- func DescriptionIn(vs ...string) predicate.Component
- func DescriptionIsNil() predicate.Component
- func DescriptionLT(v string) predicate.Component
- func DescriptionLTE(v string) predicate.Component
- func DescriptionNEQ(v string) predicate.Component
- func DescriptionNotIn(vs ...string) predicate.Component
- func DescriptionNotNil() predicate.Component
- func HasLicenses() predicate.Component
- func HasLicensesWith(preds ...predicate.License) predicate.Component
- func HasOwner() predicate.Component
- func HasOwnerWith(preds ...predicate.Organization) predicate.Component
- func HasUses() predicate.Component
- func HasUsesWith(preds ...predicate.ReleaseComponent) predicate.Component
- func HasVulnerabilities() predicate.Component
- func HasVulnerabilitiesWith(preds ...predicate.Vulnerability) predicate.Component
- func ID(id int) predicate.Component
- func IDEQ(id int) predicate.Component
- func IDGT(id int) predicate.Component
- func IDGTE(id int) predicate.Component
- func IDIn(ids ...int) predicate.Component
- func IDLT(id int) predicate.Component
- func IDLTE(id int) predicate.Component
- func IDNEQ(id int) predicate.Component
- func IDNotIn(ids ...int) predicate.Component
- func LabelsIsNil() predicate.Component
- func LabelsNotNil() predicate.Component
- func MetadataIsNil() predicate.Component
- func MetadataNotNil() predicate.Component
- func Name(v string) predicate.Component
- func NameContains(v string) predicate.Component
- func NameContainsFold(v string) predicate.Component
- func NameEQ(v string) predicate.Component
- func NameEqualFold(v string) predicate.Component
- func NameGT(v string) predicate.Component
- func NameGTE(v string) predicate.Component
- func NameHasPrefix(v string) predicate.Component
- func NameHasSuffix(v string) predicate.Component
- func NameIn(vs ...string) predicate.Component
- func NameLT(v string) predicate.Component
- func NameLTE(v string) predicate.Component
- func NameNEQ(v string) predicate.Component
- func NameNotIn(vs ...string) predicate.Component
- func Namespace(v string) predicate.Component
- func NamespaceContains(v string) predicate.Component
- func NamespaceContainsFold(v string) predicate.Component
- func NamespaceEQ(v string) predicate.Component
- func NamespaceEqualFold(v string) predicate.Component
- func NamespaceGT(v string) predicate.Component
- func NamespaceGTE(v string) predicate.Component
- func NamespaceHasPrefix(v string) predicate.Component
- func NamespaceHasSuffix(v string) predicate.Component
- func NamespaceIn(vs ...string) predicate.Component
- func NamespaceLT(v string) predicate.Component
- func NamespaceLTE(v string) predicate.Component
- func NamespaceNEQ(v string) predicate.Component
- func NamespaceNotIn(vs ...string) predicate.Component
- func Not(p predicate.Component) predicate.Component
- func Or(predicates ...predicate.Component) predicate.Component
- func Scheme(v string) predicate.Component
- func SchemeContains(v string) predicate.Component
- func SchemeContainsFold(v string) predicate.Component
- func SchemeEQ(v string) predicate.Component
- func SchemeEqualFold(v string) predicate.Component
- func SchemeGT(v string) predicate.Component
- func SchemeGTE(v string) predicate.Component
- func SchemeHasPrefix(v string) predicate.Component
- func SchemeHasSuffix(v string) predicate.Component
- func SchemeIn(vs ...string) predicate.Component
- func SchemeLT(v string) predicate.Component
- func SchemeLTE(v string) predicate.Component
- func SchemeNEQ(v string) predicate.Component
- func SchemeNotIn(vs ...string) predicate.Component
- func URL(v string) predicate.Component
- func URLContains(v string) predicate.Component
- func URLContainsFold(v string) predicate.Component
- func URLEQ(v string) predicate.Component
- func URLEqualFold(v string) predicate.Component
- func URLGT(v string) predicate.Component
- func URLGTE(v string) predicate.Component
- func URLHasPrefix(v string) predicate.Component
- func URLHasSuffix(v string) predicate.Component
- func URLIn(vs ...string) predicate.Component
- func URLIsNil() predicate.Component
- func URLLT(v string) predicate.Component
- func URLLTE(v string) predicate.Component
- func URLNEQ(v string) predicate.Component
- func URLNotIn(vs ...string) predicate.Component
- func URLNotNil() predicate.Component
- func ValidColumn(column string) bool
- func Version(v string) predicate.Component
- func VersionContains(v string) predicate.Component
- func VersionContainsFold(v string) predicate.Component
- func VersionEQ(v string) predicate.Component
- func VersionEqualFold(v string) predicate.Component
- func VersionGT(v string) predicate.Component
- func VersionGTE(v string) predicate.Component
- func VersionHasPrefix(v string) predicate.Component
- func VersionHasSuffix(v string) predicate.Component
- func VersionIn(vs ...string) predicate.Component
- func VersionLT(v string) predicate.Component
- func VersionLTE(v string) predicate.Component
- func VersionNEQ(v string) predicate.Component
- func VersionNotIn(vs ...string) predicate.Component
Constants ¶
const ( // Label holds the string label denoting the component type in the database. Label = "component" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldScheme holds the string denoting the scheme field in the database. FieldScheme = "scheme" // FieldNamespace holds the string denoting the namespace field in the database. FieldNamespace = "namespace" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // FieldLabels holds the string denoting the labels field in the database. FieldLabels = "labels" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeVulnerabilities holds the string denoting the vulnerabilities edge name in mutations. EdgeVulnerabilities = "vulnerabilities" // EdgeLicenses holds the string denoting the licenses edge name in mutations. EdgeLicenses = "licenses" // EdgeUses holds the string denoting the uses edge name in mutations. EdgeUses = "uses" // Table holds the table name of the component in the database. Table = "component" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "component" // OwnerInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OwnerInverseTable = "organization" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "component_owner" // VulnerabilitiesTable is the table that holds the vulnerabilities relation/edge. The primary key declared below. VulnerabilitiesTable = "component_vulnerabilities" // VulnerabilitiesInverseTable is the table name for the Vulnerability entity. // It exists in this package in order to avoid circular dependency with the "vulnerability" package. VulnerabilitiesInverseTable = "vulnerability" // LicensesTable is the table that holds the licenses relation/edge. The primary key declared below. LicensesTable = "component_licenses" // LicensesInverseTable is the table name for the License entity. // It exists in this package in order to avoid circular dependency with the "license" package. LicensesInverseTable = "license" // UsesTable is the table that holds the uses relation/edge. UsesTable = "release_component" // UsesInverseTable is the table name for the ReleaseComponent entity. // It exists in this package in order to avoid circular dependency with the "releasecomponent" package. UsesInverseTable = "release_component" // UsesColumn is the table column denoting the uses relation/edge. UsesColumn = "release_component_component" )
Variables ¶
var ( // VulnerabilitiesPrimaryKey and VulnerabilitiesColumn2 are the table columns denoting the // primary key for the vulnerabilities relation (M2M). VulnerabilitiesPrimaryKey = []string{"component_id", "vulnerability_id"} // LicensesPrimaryKey and LicensesColumn2 are the table columns denoting the // primary key for the licenses relation (M2M). LicensesPrimaryKey = []string{"component_id", "license_id"} )
var ( // SchemeValidator is a validator for the "scheme" field. It is called by the builders before save. SchemeValidator func(string) error // DefaultNamespace holds the default value on creation for the "namespace" field. DefaultNamespace string // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // VersionValidator is a validator for the "version" field. It is called by the builders before save. VersionValidator func(string) error )
var Columns = []string{ FieldID, FieldScheme, FieldNamespace, FieldName, FieldVersion, FieldDescription, FieldURL, FieldMetadata, FieldLabels, }
Columns holds all SQL columns for component fields.
var ForeignKeys = []string{
"component_owner",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "component" table and are not defined as standalone fields in the schema.
Functions ¶
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasLicenses ¶
HasLicenses applies the HasEdge predicate on the "licenses" edge.
func HasLicensesWith ¶
HasLicensesWith applies the HasEdge predicate on the "licenses" edge with a given conditions (other predicates).
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.Component
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasUsesWith ¶
func HasUsesWith(preds ...predicate.ReleaseComponent) predicate.Component
HasUsesWith applies the HasEdge predicate on the "uses" edge with a given conditions (other predicates).
func HasVulnerabilities ¶
HasVulnerabilities applies the HasEdge predicate on the "vulnerabilities" edge.
func HasVulnerabilitiesWith ¶
func HasVulnerabilitiesWith(preds ...predicate.Vulnerability) predicate.Component
HasVulnerabilitiesWith applies the HasEdge predicate on the "vulnerabilities" edge with a given conditions (other predicates).
func LabelsIsNil ¶
LabelsIsNil applies the IsNil predicate on the "labels" field.
func LabelsNotNil ¶
LabelsNotNil applies the NotNil predicate on the "labels" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Namespace ¶
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func Scheme ¶
Scheme applies equality check predicate on the "scheme" field. It's identical to SchemeEQ.
func SchemeContains ¶
SchemeContains applies the Contains predicate on the "scheme" field.
func SchemeContainsFold ¶
SchemeContainsFold applies the ContainsFold predicate on the "scheme" field.
func SchemeEqualFold ¶
SchemeEqualFold applies the EqualFold predicate on the "scheme" field.
func SchemeHasPrefix ¶
SchemeHasPrefix applies the HasPrefix predicate on the "scheme" field.
func SchemeHasSuffix ¶
SchemeHasSuffix applies the HasSuffix predicate on the "scheme" field.
func SchemeNotIn ¶
SchemeNotIn applies the NotIn predicate on the "scheme" field.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEqualFold ¶
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
This section is empty.