Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CertifyLegal) predicate.CertifyLegal
- func Attribution(v string) predicate.CertifyLegal
- func AttributionContains(v string) predicate.CertifyLegal
- func AttributionContainsFold(v string) predicate.CertifyLegal
- func AttributionEQ(v string) predicate.CertifyLegal
- func AttributionEqualFold(v string) predicate.CertifyLegal
- func AttributionGT(v string) predicate.CertifyLegal
- func AttributionGTE(v string) predicate.CertifyLegal
- func AttributionHasPrefix(v string) predicate.CertifyLegal
- func AttributionHasSuffix(v string) predicate.CertifyLegal
- func AttributionIn(vs ...string) predicate.CertifyLegal
- func AttributionLT(v string) predicate.CertifyLegal
- func AttributionLTE(v string) predicate.CertifyLegal
- func AttributionNEQ(v string) predicate.CertifyLegal
- func AttributionNotIn(vs ...string) predicate.CertifyLegal
- func Collector(v string) predicate.CertifyLegal
- func CollectorContains(v string) predicate.CertifyLegal
- func CollectorContainsFold(v string) predicate.CertifyLegal
- func CollectorEQ(v string) predicate.CertifyLegal
- func CollectorEqualFold(v string) predicate.CertifyLegal
- func CollectorGT(v string) predicate.CertifyLegal
- func CollectorGTE(v string) predicate.CertifyLegal
- func CollectorHasPrefix(v string) predicate.CertifyLegal
- func CollectorHasSuffix(v string) predicate.CertifyLegal
- func CollectorIn(vs ...string) predicate.CertifyLegal
- func CollectorLT(v string) predicate.CertifyLegal
- func CollectorLTE(v string) predicate.CertifyLegal
- func CollectorNEQ(v string) predicate.CertifyLegal
- func CollectorNotIn(vs ...string) predicate.CertifyLegal
- func DeclaredLicense(v string) predicate.CertifyLegal
- func DeclaredLicenseContains(v string) predicate.CertifyLegal
- func DeclaredLicenseContainsFold(v string) predicate.CertifyLegal
- func DeclaredLicenseEQ(v string) predicate.CertifyLegal
- func DeclaredLicenseEqualFold(v string) predicate.CertifyLegal
- func DeclaredLicenseGT(v string) predicate.CertifyLegal
- func DeclaredLicenseGTE(v string) predicate.CertifyLegal
- func DeclaredLicenseHasPrefix(v string) predicate.CertifyLegal
- func DeclaredLicenseHasSuffix(v string) predicate.CertifyLegal
- func DeclaredLicenseIn(vs ...string) predicate.CertifyLegal
- func DeclaredLicenseLT(v string) predicate.CertifyLegal
- func DeclaredLicenseLTE(v string) predicate.CertifyLegal
- func DeclaredLicenseNEQ(v string) predicate.CertifyLegal
- func DeclaredLicenseNotIn(vs ...string) predicate.CertifyLegal
- func DeclaredLicensesHash(v string) predicate.CertifyLegal
- func DeclaredLicensesHashContains(v string) predicate.CertifyLegal
- func DeclaredLicensesHashContainsFold(v string) predicate.CertifyLegal
- func DeclaredLicensesHashEQ(v string) predicate.CertifyLegal
- func DeclaredLicensesHashEqualFold(v string) predicate.CertifyLegal
- func DeclaredLicensesHashGT(v string) predicate.CertifyLegal
- func DeclaredLicensesHashGTE(v string) predicate.CertifyLegal
- func DeclaredLicensesHashHasPrefix(v string) predicate.CertifyLegal
- func DeclaredLicensesHashHasSuffix(v string) predicate.CertifyLegal
- func DeclaredLicensesHashIn(vs ...string) predicate.CertifyLegal
- func DeclaredLicensesHashLT(v string) predicate.CertifyLegal
- func DeclaredLicensesHashLTE(v string) predicate.CertifyLegal
- func DeclaredLicensesHashNEQ(v string) predicate.CertifyLegal
- func DeclaredLicensesHashNotIn(vs ...string) predicate.CertifyLegal
- func DiscoveredLicense(v string) predicate.CertifyLegal
- func DiscoveredLicenseContains(v string) predicate.CertifyLegal
- func DiscoveredLicenseContainsFold(v string) predicate.CertifyLegal
- func DiscoveredLicenseEQ(v string) predicate.CertifyLegal
- func DiscoveredLicenseEqualFold(v string) predicate.CertifyLegal
- func DiscoveredLicenseGT(v string) predicate.CertifyLegal
- func DiscoveredLicenseGTE(v string) predicate.CertifyLegal
- func DiscoveredLicenseHasPrefix(v string) predicate.CertifyLegal
- func DiscoveredLicenseHasSuffix(v string) predicate.CertifyLegal
- func DiscoveredLicenseIn(vs ...string) predicate.CertifyLegal
- func DiscoveredLicenseLT(v string) predicate.CertifyLegal
- func DiscoveredLicenseLTE(v string) predicate.CertifyLegal
- func DiscoveredLicenseNEQ(v string) predicate.CertifyLegal
- func DiscoveredLicenseNotIn(vs ...string) predicate.CertifyLegal
- func DiscoveredLicensesHash(v string) predicate.CertifyLegal
- func DiscoveredLicensesHashContains(v string) predicate.CertifyLegal
- func DiscoveredLicensesHashContainsFold(v string) predicate.CertifyLegal
- func DiscoveredLicensesHashEQ(v string) predicate.CertifyLegal
- func DiscoveredLicensesHashEqualFold(v string) predicate.CertifyLegal
- func DiscoveredLicensesHashGT(v string) predicate.CertifyLegal
- func DiscoveredLicensesHashGTE(v string) predicate.CertifyLegal
- func DiscoveredLicensesHashHasPrefix(v string) predicate.CertifyLegal
- func DiscoveredLicensesHashHasSuffix(v string) predicate.CertifyLegal
- func DiscoveredLicensesHashIn(vs ...string) predicate.CertifyLegal
- func DiscoveredLicensesHashLT(v string) predicate.CertifyLegal
- func DiscoveredLicensesHashLTE(v string) predicate.CertifyLegal
- func DiscoveredLicensesHashNEQ(v string) predicate.CertifyLegal
- func DiscoveredLicensesHashNotIn(vs ...string) predicate.CertifyLegal
- func HasDeclaredLicenses() predicate.CertifyLegal
- func HasDeclaredLicensesWith(preds ...predicate.License) predicate.CertifyLegal
- func HasDiscoveredLicenses() predicate.CertifyLegal
- func HasDiscoveredLicensesWith(preds ...predicate.License) predicate.CertifyLegal
- func HasPackage() predicate.CertifyLegal
- func HasPackageWith(preds ...predicate.PackageVersion) predicate.CertifyLegal
- func HasSource() predicate.CertifyLegal
- func HasSourceWith(preds ...predicate.SourceName) predicate.CertifyLegal
- func ID(id int) predicate.CertifyLegal
- func IDEQ(id int) predicate.CertifyLegal
- func IDGT(id int) predicate.CertifyLegal
- func IDGTE(id int) predicate.CertifyLegal
- func IDIn(ids ...int) predicate.CertifyLegal
- func IDLT(id int) predicate.CertifyLegal
- func IDLTE(id int) predicate.CertifyLegal
- func IDNEQ(id int) predicate.CertifyLegal
- func IDNotIn(ids ...int) predicate.CertifyLegal
- func Justification(v string) predicate.CertifyLegal
- func JustificationContains(v string) predicate.CertifyLegal
- func JustificationContainsFold(v string) predicate.CertifyLegal
- func JustificationEQ(v string) predicate.CertifyLegal
- func JustificationEqualFold(v string) predicate.CertifyLegal
- func JustificationGT(v string) predicate.CertifyLegal
- func JustificationGTE(v string) predicate.CertifyLegal
- func JustificationHasPrefix(v string) predicate.CertifyLegal
- func JustificationHasSuffix(v string) predicate.CertifyLegal
- func JustificationIn(vs ...string) predicate.CertifyLegal
- func JustificationLT(v string) predicate.CertifyLegal
- func JustificationLTE(v string) predicate.CertifyLegal
- func JustificationNEQ(v string) predicate.CertifyLegal
- func JustificationNotIn(vs ...string) predicate.CertifyLegal
- func Not(p predicate.CertifyLegal) predicate.CertifyLegal
- func Or(predicates ...predicate.CertifyLegal) predicate.CertifyLegal
- func Origin(v string) predicate.CertifyLegal
- func OriginContains(v string) predicate.CertifyLegal
- func OriginContainsFold(v string) predicate.CertifyLegal
- func OriginEQ(v string) predicate.CertifyLegal
- func OriginEqualFold(v string) predicate.CertifyLegal
- func OriginGT(v string) predicate.CertifyLegal
- func OriginGTE(v string) predicate.CertifyLegal
- func OriginHasPrefix(v string) predicate.CertifyLegal
- func OriginHasSuffix(v string) predicate.CertifyLegal
- func OriginIn(vs ...string) predicate.CertifyLegal
- func OriginLT(v string) predicate.CertifyLegal
- func OriginLTE(v string) predicate.CertifyLegal
- func OriginNEQ(v string) predicate.CertifyLegal
- func OriginNotIn(vs ...string) predicate.CertifyLegal
- func PackageID(v int) predicate.CertifyLegal
- func PackageIDEQ(v int) predicate.CertifyLegal
- func PackageIDIn(vs ...int) predicate.CertifyLegal
- func PackageIDIsNil() predicate.CertifyLegal
- func PackageIDNEQ(v int) predicate.CertifyLegal
- func PackageIDNotIn(vs ...int) predicate.CertifyLegal
- func PackageIDNotNil() predicate.CertifyLegal
- func SourceID(v int) predicate.CertifyLegal
- func SourceIDEQ(v int) predicate.CertifyLegal
- func SourceIDIn(vs ...int) predicate.CertifyLegal
- func SourceIDIsNil() predicate.CertifyLegal
- func SourceIDNEQ(v int) predicate.CertifyLegal
- func SourceIDNotIn(vs ...int) predicate.CertifyLegal
- func SourceIDNotNil() predicate.CertifyLegal
- func TimeScanned(v time.Time) predicate.CertifyLegal
- func TimeScannedEQ(v time.Time) predicate.CertifyLegal
- func TimeScannedGT(v time.Time) predicate.CertifyLegal
- func TimeScannedGTE(v time.Time) predicate.CertifyLegal
- func TimeScannedIn(vs ...time.Time) predicate.CertifyLegal
- func TimeScannedLT(v time.Time) predicate.CertifyLegal
- func TimeScannedLTE(v time.Time) predicate.CertifyLegal
- func TimeScannedNEQ(v time.Time) predicate.CertifyLegal
- func TimeScannedNotIn(vs ...time.Time) predicate.CertifyLegal
- func ValidColumn(column string) bool
- type OrderOption
- func ByAttribution(opts ...sql.OrderTermOption) OrderOption
- func ByCollector(opts ...sql.OrderTermOption) OrderOption
- func ByDeclaredLicense(opts ...sql.OrderTermOption) OrderOption
- func ByDeclaredLicenses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDeclaredLicensesCount(opts ...sql.OrderTermOption) OrderOption
- func ByDeclaredLicensesHash(opts ...sql.OrderTermOption) OrderOption
- func ByDiscoveredLicense(opts ...sql.OrderTermOption) OrderOption
- func ByDiscoveredLicenses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDiscoveredLicensesCount(opts ...sql.OrderTermOption) OrderOption
- func ByDiscoveredLicensesHash(opts ...sql.OrderTermOption) OrderOption
- func ByID(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
- func BySourceField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySourceID(opts ...sql.OrderTermOption) OrderOption
- func ByTimeScanned(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the certifylegal type in the database. Label = "certify_legal" // 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" // FieldSourceID holds the string denoting the source_id field in the database. FieldSourceID = "source_id" // FieldDeclaredLicense holds the string denoting the declared_license field in the database. FieldDeclaredLicense = "declared_license" // FieldDiscoveredLicense holds the string denoting the discovered_license field in the database. FieldDiscoveredLicense = "discovered_license" // FieldAttribution holds the string denoting the attribution field in the database. FieldAttribution = "attribution" // FieldJustification holds the string denoting the justification field in the database. FieldJustification = "justification" // FieldTimeScanned holds the string denoting the time_scanned field in the database. FieldTimeScanned = "time_scanned" // 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" // FieldDeclaredLicensesHash holds the string denoting the declared_licenses_hash field in the database. FieldDeclaredLicensesHash = "declared_licenses_hash" // FieldDiscoveredLicensesHash holds the string denoting the discovered_licenses_hash field in the database. FieldDiscoveredLicensesHash = "discovered_licenses_hash" // EdgePackage holds the string denoting the package edge name in mutations. EdgePackage = "package" // EdgeSource holds the string denoting the source edge name in mutations. EdgeSource = "source" // EdgeDeclaredLicenses holds the string denoting the declared_licenses edge name in mutations. EdgeDeclaredLicenses = "declared_licenses" // EdgeDiscoveredLicenses holds the string denoting the discovered_licenses edge name in mutations. EdgeDiscoveredLicenses = "discovered_licenses" // Table holds the table name of the certifylegal in the database. Table = "certify_legals" // PackageTable is the table that holds the package relation/edge. PackageTable = "certify_legals" // PackageInverseTable is the table name for the PackageVersion entity. // It exists in this package in order to avoid circular dependency with the "packageversion" package. PackageInverseTable = "package_versions" // PackageColumn is the table column denoting the package relation/edge. PackageColumn = "package_id" // SourceTable is the table that holds the source relation/edge. SourceTable = "certify_legals" // 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" // DeclaredLicensesTable is the table that holds the declared_licenses relation/edge. The primary key declared below. DeclaredLicensesTable = "certify_legal_declared_licenses" // DeclaredLicensesInverseTable is the table name for the License entity. // It exists in this package in order to avoid circular dependency with the "license" package. DeclaredLicensesInverseTable = "licenses" // DiscoveredLicensesTable is the table that holds the discovered_licenses relation/edge. The primary key declared below. DiscoveredLicensesTable = "certify_legal_discovered_licenses" // DiscoveredLicensesInverseTable is the table name for the License entity. // It exists in this package in order to avoid circular dependency with the "license" package. DiscoveredLicensesInverseTable = "licenses" )
Variables ¶
var ( // DeclaredLicensesPrimaryKey and DeclaredLicensesColumn2 are the table columns denoting the // primary key for the declared_licenses relation (M2M). DeclaredLicensesPrimaryKey = []string{"certify_legal_id", "license_id"} // DiscoveredLicensesPrimaryKey and DiscoveredLicensesColumn2 are the table columns denoting the // primary key for the discovered_licenses relation (M2M). DiscoveredLicensesPrimaryKey = []string{"certify_legal_id", "license_id"} )
var Columns = []string{ FieldID, FieldPackageID, FieldSourceID, FieldDeclaredLicense, FieldDiscoveredLicense, FieldAttribution, FieldJustification, FieldTimeScanned, FieldOrigin, FieldCollector, FieldDeclaredLicensesHash, FieldDiscoveredLicensesHash, }
Columns holds all SQL columns for certifylegal fields.
Functions ¶
func And ¶
func And(predicates ...predicate.CertifyLegal) predicate.CertifyLegal
And groups predicates with the AND operator between them.
func Attribution ¶
func Attribution(v string) predicate.CertifyLegal
Attribution applies equality check predicate on the "attribution" field. It's identical to AttributionEQ.
func AttributionContains ¶
func AttributionContains(v string) predicate.CertifyLegal
AttributionContains applies the Contains predicate on the "attribution" field.
func AttributionContainsFold ¶
func AttributionContainsFold(v string) predicate.CertifyLegal
AttributionContainsFold applies the ContainsFold predicate on the "attribution" field.
func AttributionEQ ¶
func AttributionEQ(v string) predicate.CertifyLegal
AttributionEQ applies the EQ predicate on the "attribution" field.
func AttributionEqualFold ¶
func AttributionEqualFold(v string) predicate.CertifyLegal
AttributionEqualFold applies the EqualFold predicate on the "attribution" field.
func AttributionGT ¶
func AttributionGT(v string) predicate.CertifyLegal
AttributionGT applies the GT predicate on the "attribution" field.
func AttributionGTE ¶
func AttributionGTE(v string) predicate.CertifyLegal
AttributionGTE applies the GTE predicate on the "attribution" field.
func AttributionHasPrefix ¶
func AttributionHasPrefix(v string) predicate.CertifyLegal
AttributionHasPrefix applies the HasPrefix predicate on the "attribution" field.
func AttributionHasSuffix ¶
func AttributionHasSuffix(v string) predicate.CertifyLegal
AttributionHasSuffix applies the HasSuffix predicate on the "attribution" field.
func AttributionIn ¶
func AttributionIn(vs ...string) predicate.CertifyLegal
AttributionIn applies the In predicate on the "attribution" field.
func AttributionLT ¶
func AttributionLT(v string) predicate.CertifyLegal
AttributionLT applies the LT predicate on the "attribution" field.
func AttributionLTE ¶
func AttributionLTE(v string) predicate.CertifyLegal
AttributionLTE applies the LTE predicate on the "attribution" field.
func AttributionNEQ ¶
func AttributionNEQ(v string) predicate.CertifyLegal
AttributionNEQ applies the NEQ predicate on the "attribution" field.
func AttributionNotIn ¶
func AttributionNotIn(vs ...string) predicate.CertifyLegal
AttributionNotIn applies the NotIn predicate on the "attribution" field.
func Collector ¶
func Collector(v string) predicate.CertifyLegal
Collector applies equality check predicate on the "collector" field. It's identical to CollectorEQ.
func CollectorContains ¶
func CollectorContains(v string) predicate.CertifyLegal
CollectorContains applies the Contains predicate on the "collector" field.
func CollectorContainsFold ¶
func CollectorContainsFold(v string) predicate.CertifyLegal
CollectorContainsFold applies the ContainsFold predicate on the "collector" field.
func CollectorEQ ¶
func CollectorEQ(v string) predicate.CertifyLegal
CollectorEQ applies the EQ predicate on the "collector" field.
func CollectorEqualFold ¶
func CollectorEqualFold(v string) predicate.CertifyLegal
CollectorEqualFold applies the EqualFold predicate on the "collector" field.
func CollectorGT ¶
func CollectorGT(v string) predicate.CertifyLegal
CollectorGT applies the GT predicate on the "collector" field.
func CollectorGTE ¶
func CollectorGTE(v string) predicate.CertifyLegal
CollectorGTE applies the GTE predicate on the "collector" field.
func CollectorHasPrefix ¶
func CollectorHasPrefix(v string) predicate.CertifyLegal
CollectorHasPrefix applies the HasPrefix predicate on the "collector" field.
func CollectorHasSuffix ¶
func CollectorHasSuffix(v string) predicate.CertifyLegal
CollectorHasSuffix applies the HasSuffix predicate on the "collector" field.
func CollectorIn ¶
func CollectorIn(vs ...string) predicate.CertifyLegal
CollectorIn applies the In predicate on the "collector" field.
func CollectorLT ¶
func CollectorLT(v string) predicate.CertifyLegal
CollectorLT applies the LT predicate on the "collector" field.
func CollectorLTE ¶
func CollectorLTE(v string) predicate.CertifyLegal
CollectorLTE applies the LTE predicate on the "collector" field.
func CollectorNEQ ¶
func CollectorNEQ(v string) predicate.CertifyLegal
CollectorNEQ applies the NEQ predicate on the "collector" field.
func CollectorNotIn ¶
func CollectorNotIn(vs ...string) predicate.CertifyLegal
CollectorNotIn applies the NotIn predicate on the "collector" field.
func DeclaredLicense ¶
func DeclaredLicense(v string) predicate.CertifyLegal
DeclaredLicense applies equality check predicate on the "declared_license" field. It's identical to DeclaredLicenseEQ.
func DeclaredLicenseContains ¶
func DeclaredLicenseContains(v string) predicate.CertifyLegal
DeclaredLicenseContains applies the Contains predicate on the "declared_license" field.
func DeclaredLicenseContainsFold ¶
func DeclaredLicenseContainsFold(v string) predicate.CertifyLegal
DeclaredLicenseContainsFold applies the ContainsFold predicate on the "declared_license" field.
func DeclaredLicenseEQ ¶
func DeclaredLicenseEQ(v string) predicate.CertifyLegal
DeclaredLicenseEQ applies the EQ predicate on the "declared_license" field.
func DeclaredLicenseEqualFold ¶
func DeclaredLicenseEqualFold(v string) predicate.CertifyLegal
DeclaredLicenseEqualFold applies the EqualFold predicate on the "declared_license" field.
func DeclaredLicenseGT ¶
func DeclaredLicenseGT(v string) predicate.CertifyLegal
DeclaredLicenseGT applies the GT predicate on the "declared_license" field.
func DeclaredLicenseGTE ¶
func DeclaredLicenseGTE(v string) predicate.CertifyLegal
DeclaredLicenseGTE applies the GTE predicate on the "declared_license" field.
func DeclaredLicenseHasPrefix ¶
func DeclaredLicenseHasPrefix(v string) predicate.CertifyLegal
DeclaredLicenseHasPrefix applies the HasPrefix predicate on the "declared_license" field.
func DeclaredLicenseHasSuffix ¶
func DeclaredLicenseHasSuffix(v string) predicate.CertifyLegal
DeclaredLicenseHasSuffix applies the HasSuffix predicate on the "declared_license" field.
func DeclaredLicenseIn ¶
func DeclaredLicenseIn(vs ...string) predicate.CertifyLegal
DeclaredLicenseIn applies the In predicate on the "declared_license" field.
func DeclaredLicenseLT ¶
func DeclaredLicenseLT(v string) predicate.CertifyLegal
DeclaredLicenseLT applies the LT predicate on the "declared_license" field.
func DeclaredLicenseLTE ¶
func DeclaredLicenseLTE(v string) predicate.CertifyLegal
DeclaredLicenseLTE applies the LTE predicate on the "declared_license" field.
func DeclaredLicenseNEQ ¶
func DeclaredLicenseNEQ(v string) predicate.CertifyLegal
DeclaredLicenseNEQ applies the NEQ predicate on the "declared_license" field.
func DeclaredLicenseNotIn ¶
func DeclaredLicenseNotIn(vs ...string) predicate.CertifyLegal
DeclaredLicenseNotIn applies the NotIn predicate on the "declared_license" field.
func DeclaredLicensesHash ¶
func DeclaredLicensesHash(v string) predicate.CertifyLegal
DeclaredLicensesHash applies equality check predicate on the "declared_licenses_hash" field. It's identical to DeclaredLicensesHashEQ.
func DeclaredLicensesHashContains ¶
func DeclaredLicensesHashContains(v string) predicate.CertifyLegal
DeclaredLicensesHashContains applies the Contains predicate on the "declared_licenses_hash" field.
func DeclaredLicensesHashContainsFold ¶
func DeclaredLicensesHashContainsFold(v string) predicate.CertifyLegal
DeclaredLicensesHashContainsFold applies the ContainsFold predicate on the "declared_licenses_hash" field.
func DeclaredLicensesHashEQ ¶
func DeclaredLicensesHashEQ(v string) predicate.CertifyLegal
DeclaredLicensesHashEQ applies the EQ predicate on the "declared_licenses_hash" field.
func DeclaredLicensesHashEqualFold ¶
func DeclaredLicensesHashEqualFold(v string) predicate.CertifyLegal
DeclaredLicensesHashEqualFold applies the EqualFold predicate on the "declared_licenses_hash" field.
func DeclaredLicensesHashGT ¶
func DeclaredLicensesHashGT(v string) predicate.CertifyLegal
DeclaredLicensesHashGT applies the GT predicate on the "declared_licenses_hash" field.
func DeclaredLicensesHashGTE ¶
func DeclaredLicensesHashGTE(v string) predicate.CertifyLegal
DeclaredLicensesHashGTE applies the GTE predicate on the "declared_licenses_hash" field.
func DeclaredLicensesHashHasPrefix ¶
func DeclaredLicensesHashHasPrefix(v string) predicate.CertifyLegal
DeclaredLicensesHashHasPrefix applies the HasPrefix predicate on the "declared_licenses_hash" field.
func DeclaredLicensesHashHasSuffix ¶
func DeclaredLicensesHashHasSuffix(v string) predicate.CertifyLegal
DeclaredLicensesHashHasSuffix applies the HasSuffix predicate on the "declared_licenses_hash" field.
func DeclaredLicensesHashIn ¶
func DeclaredLicensesHashIn(vs ...string) predicate.CertifyLegal
DeclaredLicensesHashIn applies the In predicate on the "declared_licenses_hash" field.
func DeclaredLicensesHashLT ¶
func DeclaredLicensesHashLT(v string) predicate.CertifyLegal
DeclaredLicensesHashLT applies the LT predicate on the "declared_licenses_hash" field.
func DeclaredLicensesHashLTE ¶
func DeclaredLicensesHashLTE(v string) predicate.CertifyLegal
DeclaredLicensesHashLTE applies the LTE predicate on the "declared_licenses_hash" field.
func DeclaredLicensesHashNEQ ¶
func DeclaredLicensesHashNEQ(v string) predicate.CertifyLegal
DeclaredLicensesHashNEQ applies the NEQ predicate on the "declared_licenses_hash" field.
func DeclaredLicensesHashNotIn ¶
func DeclaredLicensesHashNotIn(vs ...string) predicate.CertifyLegal
DeclaredLicensesHashNotIn applies the NotIn predicate on the "declared_licenses_hash" field.
func DiscoveredLicense ¶
func DiscoveredLicense(v string) predicate.CertifyLegal
DiscoveredLicense applies equality check predicate on the "discovered_license" field. It's identical to DiscoveredLicenseEQ.
func DiscoveredLicenseContains ¶
func DiscoveredLicenseContains(v string) predicate.CertifyLegal
DiscoveredLicenseContains applies the Contains predicate on the "discovered_license" field.
func DiscoveredLicenseContainsFold ¶
func DiscoveredLicenseContainsFold(v string) predicate.CertifyLegal
DiscoveredLicenseContainsFold applies the ContainsFold predicate on the "discovered_license" field.
func DiscoveredLicenseEQ ¶
func DiscoveredLicenseEQ(v string) predicate.CertifyLegal
DiscoveredLicenseEQ applies the EQ predicate on the "discovered_license" field.
func DiscoveredLicenseEqualFold ¶
func DiscoveredLicenseEqualFold(v string) predicate.CertifyLegal
DiscoveredLicenseEqualFold applies the EqualFold predicate on the "discovered_license" field.
func DiscoveredLicenseGT ¶
func DiscoveredLicenseGT(v string) predicate.CertifyLegal
DiscoveredLicenseGT applies the GT predicate on the "discovered_license" field.
func DiscoveredLicenseGTE ¶
func DiscoveredLicenseGTE(v string) predicate.CertifyLegal
DiscoveredLicenseGTE applies the GTE predicate on the "discovered_license" field.
func DiscoveredLicenseHasPrefix ¶
func DiscoveredLicenseHasPrefix(v string) predicate.CertifyLegal
DiscoveredLicenseHasPrefix applies the HasPrefix predicate on the "discovered_license" field.
func DiscoveredLicenseHasSuffix ¶
func DiscoveredLicenseHasSuffix(v string) predicate.CertifyLegal
DiscoveredLicenseHasSuffix applies the HasSuffix predicate on the "discovered_license" field.
func DiscoveredLicenseIn ¶
func DiscoveredLicenseIn(vs ...string) predicate.CertifyLegal
DiscoveredLicenseIn applies the In predicate on the "discovered_license" field.
func DiscoveredLicenseLT ¶
func DiscoveredLicenseLT(v string) predicate.CertifyLegal
DiscoveredLicenseLT applies the LT predicate on the "discovered_license" field.
func DiscoveredLicenseLTE ¶
func DiscoveredLicenseLTE(v string) predicate.CertifyLegal
DiscoveredLicenseLTE applies the LTE predicate on the "discovered_license" field.
func DiscoveredLicenseNEQ ¶
func DiscoveredLicenseNEQ(v string) predicate.CertifyLegal
DiscoveredLicenseNEQ applies the NEQ predicate on the "discovered_license" field.
func DiscoveredLicenseNotIn ¶
func DiscoveredLicenseNotIn(vs ...string) predicate.CertifyLegal
DiscoveredLicenseNotIn applies the NotIn predicate on the "discovered_license" field.
func DiscoveredLicensesHash ¶
func DiscoveredLicensesHash(v string) predicate.CertifyLegal
DiscoveredLicensesHash applies equality check predicate on the "discovered_licenses_hash" field. It's identical to DiscoveredLicensesHashEQ.
func DiscoveredLicensesHashContains ¶
func DiscoveredLicensesHashContains(v string) predicate.CertifyLegal
DiscoveredLicensesHashContains applies the Contains predicate on the "discovered_licenses_hash" field.
func DiscoveredLicensesHashContainsFold ¶
func DiscoveredLicensesHashContainsFold(v string) predicate.CertifyLegal
DiscoveredLicensesHashContainsFold applies the ContainsFold predicate on the "discovered_licenses_hash" field.
func DiscoveredLicensesHashEQ ¶
func DiscoveredLicensesHashEQ(v string) predicate.CertifyLegal
DiscoveredLicensesHashEQ applies the EQ predicate on the "discovered_licenses_hash" field.
func DiscoveredLicensesHashEqualFold ¶
func DiscoveredLicensesHashEqualFold(v string) predicate.CertifyLegal
DiscoveredLicensesHashEqualFold applies the EqualFold predicate on the "discovered_licenses_hash" field.
func DiscoveredLicensesHashGT ¶
func DiscoveredLicensesHashGT(v string) predicate.CertifyLegal
DiscoveredLicensesHashGT applies the GT predicate on the "discovered_licenses_hash" field.
func DiscoveredLicensesHashGTE ¶
func DiscoveredLicensesHashGTE(v string) predicate.CertifyLegal
DiscoveredLicensesHashGTE applies the GTE predicate on the "discovered_licenses_hash" field.
func DiscoveredLicensesHashHasPrefix ¶
func DiscoveredLicensesHashHasPrefix(v string) predicate.CertifyLegal
DiscoveredLicensesHashHasPrefix applies the HasPrefix predicate on the "discovered_licenses_hash" field.
func DiscoveredLicensesHashHasSuffix ¶
func DiscoveredLicensesHashHasSuffix(v string) predicate.CertifyLegal
DiscoveredLicensesHashHasSuffix applies the HasSuffix predicate on the "discovered_licenses_hash" field.
func DiscoveredLicensesHashIn ¶
func DiscoveredLicensesHashIn(vs ...string) predicate.CertifyLegal
DiscoveredLicensesHashIn applies the In predicate on the "discovered_licenses_hash" field.
func DiscoveredLicensesHashLT ¶
func DiscoveredLicensesHashLT(v string) predicate.CertifyLegal
DiscoveredLicensesHashLT applies the LT predicate on the "discovered_licenses_hash" field.
func DiscoveredLicensesHashLTE ¶
func DiscoveredLicensesHashLTE(v string) predicate.CertifyLegal
DiscoveredLicensesHashLTE applies the LTE predicate on the "discovered_licenses_hash" field.
func DiscoveredLicensesHashNEQ ¶
func DiscoveredLicensesHashNEQ(v string) predicate.CertifyLegal
DiscoveredLicensesHashNEQ applies the NEQ predicate on the "discovered_licenses_hash" field.
func DiscoveredLicensesHashNotIn ¶
func DiscoveredLicensesHashNotIn(vs ...string) predicate.CertifyLegal
DiscoveredLicensesHashNotIn applies the NotIn predicate on the "discovered_licenses_hash" field.
func HasDeclaredLicenses ¶
func HasDeclaredLicenses() predicate.CertifyLegal
HasDeclaredLicenses applies the HasEdge predicate on the "declared_licenses" edge.
func HasDeclaredLicensesWith ¶
func HasDeclaredLicensesWith(preds ...predicate.License) predicate.CertifyLegal
HasDeclaredLicensesWith applies the HasEdge predicate on the "declared_licenses" edge with a given conditions (other predicates).
func HasDiscoveredLicenses ¶
func HasDiscoveredLicenses() predicate.CertifyLegal
HasDiscoveredLicenses applies the HasEdge predicate on the "discovered_licenses" edge.
func HasDiscoveredLicensesWith ¶
func HasDiscoveredLicensesWith(preds ...predicate.License) predicate.CertifyLegal
HasDiscoveredLicensesWith applies the HasEdge predicate on the "discovered_licenses" edge with a given conditions (other predicates).
func HasPackage ¶
func HasPackage() predicate.CertifyLegal
HasPackage applies the HasEdge predicate on the "package" edge.
func HasPackageWith ¶
func HasPackageWith(preds ...predicate.PackageVersion) predicate.CertifyLegal
HasPackageWith applies the HasEdge predicate on the "package" edge with a given conditions (other predicates).
func HasSource ¶
func HasSource() predicate.CertifyLegal
HasSource applies the HasEdge predicate on the "source" edge.
func HasSourceWith ¶
func HasSourceWith(preds ...predicate.SourceName) predicate.CertifyLegal
HasSourceWith applies the HasEdge predicate on the "source" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.CertifyLegal
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.CertifyLegal
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.CertifyLegal
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.CertifyLegal
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.CertifyLegal
IDNotIn applies the NotIn predicate on the ID field.
func Justification ¶
func Justification(v string) predicate.CertifyLegal
Justification applies equality check predicate on the "justification" field. It's identical to JustificationEQ.
func JustificationContains ¶
func JustificationContains(v string) predicate.CertifyLegal
JustificationContains applies the Contains predicate on the "justification" field.
func JustificationContainsFold ¶
func JustificationContainsFold(v string) predicate.CertifyLegal
JustificationContainsFold applies the ContainsFold predicate on the "justification" field.
func JustificationEQ ¶
func JustificationEQ(v string) predicate.CertifyLegal
JustificationEQ applies the EQ predicate on the "justification" field.
func JustificationEqualFold ¶
func JustificationEqualFold(v string) predicate.CertifyLegal
JustificationEqualFold applies the EqualFold predicate on the "justification" field.
func JustificationGT ¶
func JustificationGT(v string) predicate.CertifyLegal
JustificationGT applies the GT predicate on the "justification" field.
func JustificationGTE ¶
func JustificationGTE(v string) predicate.CertifyLegal
JustificationGTE applies the GTE predicate on the "justification" field.
func JustificationHasPrefix ¶
func JustificationHasPrefix(v string) predicate.CertifyLegal
JustificationHasPrefix applies the HasPrefix predicate on the "justification" field.
func JustificationHasSuffix ¶
func JustificationHasSuffix(v string) predicate.CertifyLegal
JustificationHasSuffix applies the HasSuffix predicate on the "justification" field.
func JustificationIn ¶
func JustificationIn(vs ...string) predicate.CertifyLegal
JustificationIn applies the In predicate on the "justification" field.
func JustificationLT ¶
func JustificationLT(v string) predicate.CertifyLegal
JustificationLT applies the LT predicate on the "justification" field.
func JustificationLTE ¶
func JustificationLTE(v string) predicate.CertifyLegal
JustificationLTE applies the LTE predicate on the "justification" field.
func JustificationNEQ ¶
func JustificationNEQ(v string) predicate.CertifyLegal
JustificationNEQ applies the NEQ predicate on the "justification" field.
func JustificationNotIn ¶
func JustificationNotIn(vs ...string) predicate.CertifyLegal
JustificationNotIn applies the NotIn predicate on the "justification" field.
func Not ¶
func Not(p predicate.CertifyLegal) predicate.CertifyLegal
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CertifyLegal) predicate.CertifyLegal
Or groups predicates with the OR operator between them.
func Origin ¶
func Origin(v string) predicate.CertifyLegal
Origin applies equality check predicate on the "origin" field. It's identical to OriginEQ.
func OriginContains ¶
func OriginContains(v string) predicate.CertifyLegal
OriginContains applies the Contains predicate on the "origin" field.
func OriginContainsFold ¶
func OriginContainsFold(v string) predicate.CertifyLegal
OriginContainsFold applies the ContainsFold predicate on the "origin" field.
func OriginEQ ¶
func OriginEQ(v string) predicate.CertifyLegal
OriginEQ applies the EQ predicate on the "origin" field.
func OriginEqualFold ¶
func OriginEqualFold(v string) predicate.CertifyLegal
OriginEqualFold applies the EqualFold predicate on the "origin" field.
func OriginGT ¶
func OriginGT(v string) predicate.CertifyLegal
OriginGT applies the GT predicate on the "origin" field.
func OriginGTE ¶
func OriginGTE(v string) predicate.CertifyLegal
OriginGTE applies the GTE predicate on the "origin" field.
func OriginHasPrefix ¶
func OriginHasPrefix(v string) predicate.CertifyLegal
OriginHasPrefix applies the HasPrefix predicate on the "origin" field.
func OriginHasSuffix ¶
func OriginHasSuffix(v string) predicate.CertifyLegal
OriginHasSuffix applies the HasSuffix predicate on the "origin" field.
func OriginIn ¶
func OriginIn(vs ...string) predicate.CertifyLegal
OriginIn applies the In predicate on the "origin" field.
func OriginLT ¶
func OriginLT(v string) predicate.CertifyLegal
OriginLT applies the LT predicate on the "origin" field.
func OriginLTE ¶
func OriginLTE(v string) predicate.CertifyLegal
OriginLTE applies the LTE predicate on the "origin" field.
func OriginNEQ ¶
func OriginNEQ(v string) predicate.CertifyLegal
OriginNEQ applies the NEQ predicate on the "origin" field.
func OriginNotIn ¶
func OriginNotIn(vs ...string) predicate.CertifyLegal
OriginNotIn applies the NotIn predicate on the "origin" field.
func PackageID ¶
func PackageID(v int) predicate.CertifyLegal
PackageID applies equality check predicate on the "package_id" field. It's identical to PackageIDEQ.
func PackageIDEQ ¶
func PackageIDEQ(v int) predicate.CertifyLegal
PackageIDEQ applies the EQ predicate on the "package_id" field.
func PackageIDIn ¶
func PackageIDIn(vs ...int) predicate.CertifyLegal
PackageIDIn applies the In predicate on the "package_id" field.
func PackageIDIsNil ¶
func PackageIDIsNil() predicate.CertifyLegal
PackageIDIsNil applies the IsNil predicate on the "package_id" field.
func PackageIDNEQ ¶
func PackageIDNEQ(v int) predicate.CertifyLegal
PackageIDNEQ applies the NEQ predicate on the "package_id" field.
func PackageIDNotIn ¶
func PackageIDNotIn(vs ...int) predicate.CertifyLegal
PackageIDNotIn applies the NotIn predicate on the "package_id" field.
func PackageIDNotNil ¶
func PackageIDNotNil() predicate.CertifyLegal
PackageIDNotNil applies the NotNil predicate on the "package_id" field.
func SourceID ¶
func SourceID(v int) predicate.CertifyLegal
SourceID applies equality check predicate on the "source_id" field. It's identical to SourceIDEQ.
func SourceIDEQ ¶
func SourceIDEQ(v int) predicate.CertifyLegal
SourceIDEQ applies the EQ predicate on the "source_id" field.
func SourceIDIn ¶
func SourceIDIn(vs ...int) predicate.CertifyLegal
SourceIDIn applies the In predicate on the "source_id" field.
func SourceIDIsNil ¶
func SourceIDIsNil() predicate.CertifyLegal
SourceIDIsNil applies the IsNil predicate on the "source_id" field.
func SourceIDNEQ ¶
func SourceIDNEQ(v int) predicate.CertifyLegal
SourceIDNEQ applies the NEQ predicate on the "source_id" field.
func SourceIDNotIn ¶
func SourceIDNotIn(vs ...int) predicate.CertifyLegal
SourceIDNotIn applies the NotIn predicate on the "source_id" field.
func SourceIDNotNil ¶
func SourceIDNotNil() predicate.CertifyLegal
SourceIDNotNil applies the NotNil predicate on the "source_id" field.
func TimeScanned ¶
func TimeScanned(v time.Time) predicate.CertifyLegal
TimeScanned applies equality check predicate on the "time_scanned" field. It's identical to TimeScannedEQ.
func TimeScannedEQ ¶
func TimeScannedEQ(v time.Time) predicate.CertifyLegal
TimeScannedEQ applies the EQ predicate on the "time_scanned" field.
func TimeScannedGT ¶
func TimeScannedGT(v time.Time) predicate.CertifyLegal
TimeScannedGT applies the GT predicate on the "time_scanned" field.
func TimeScannedGTE ¶
func TimeScannedGTE(v time.Time) predicate.CertifyLegal
TimeScannedGTE applies the GTE predicate on the "time_scanned" field.
func TimeScannedIn ¶
func TimeScannedIn(vs ...time.Time) predicate.CertifyLegal
TimeScannedIn applies the In predicate on the "time_scanned" field.
func TimeScannedLT ¶
func TimeScannedLT(v time.Time) predicate.CertifyLegal
TimeScannedLT applies the LT predicate on the "time_scanned" field.
func TimeScannedLTE ¶
func TimeScannedLTE(v time.Time) predicate.CertifyLegal
TimeScannedLTE applies the LTE predicate on the "time_scanned" field.
func TimeScannedNEQ ¶
func TimeScannedNEQ(v time.Time) predicate.CertifyLegal
TimeScannedNEQ applies the NEQ predicate on the "time_scanned" field.
func TimeScannedNotIn ¶
func TimeScannedNotIn(vs ...time.Time) predicate.CertifyLegal
TimeScannedNotIn applies the NotIn predicate on the "time_scanned" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the CertifyLegal queries.
func ByAttribution ¶
func ByAttribution(opts ...sql.OrderTermOption) OrderOption
ByAttribution orders the results by the attribution field.
func ByCollector ¶
func ByCollector(opts ...sql.OrderTermOption) OrderOption
ByCollector orders the results by the collector field.
func ByDeclaredLicense ¶
func ByDeclaredLicense(opts ...sql.OrderTermOption) OrderOption
ByDeclaredLicense orders the results by the declared_license field.
func ByDeclaredLicenses ¶
func ByDeclaredLicenses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDeclaredLicenses orders the results by declared_licenses terms.
func ByDeclaredLicensesCount ¶
func ByDeclaredLicensesCount(opts ...sql.OrderTermOption) OrderOption
ByDeclaredLicensesCount orders the results by declared_licenses count.
func ByDeclaredLicensesHash ¶
func ByDeclaredLicensesHash(opts ...sql.OrderTermOption) OrderOption
ByDeclaredLicensesHash orders the results by the declared_licenses_hash field.
func ByDiscoveredLicense ¶
func ByDiscoveredLicense(opts ...sql.OrderTermOption) OrderOption
ByDiscoveredLicense orders the results by the discovered_license field.
func ByDiscoveredLicenses ¶
func ByDiscoveredLicenses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDiscoveredLicenses orders the results by discovered_licenses terms.
func ByDiscoveredLicensesCount ¶
func ByDiscoveredLicensesCount(opts ...sql.OrderTermOption) OrderOption
ByDiscoveredLicensesCount orders the results by discovered_licenses count.
func ByDiscoveredLicensesHash ¶
func ByDiscoveredLicensesHash(opts ...sql.OrderTermOption) OrderOption
ByDiscoveredLicensesHash orders the results by the discovered_licenses_hash 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 ByOrigin ¶
func ByOrigin(opts ...sql.OrderTermOption) OrderOption
ByOrigin orders the results by the origin field.
func ByPackageField ¶
func ByPackageField(field string, opts ...sql.OrderTermOption) OrderOption
ByPackageField orders the results by package field.
func ByPackageID ¶
func ByPackageID(opts ...sql.OrderTermOption) OrderOption
ByPackageID orders the results by the package_id field.
func BySourceField ¶
func BySourceField(field string, opts ...sql.OrderTermOption) OrderOption
BySourceField orders the results by source field.
func BySourceID ¶
func BySourceID(opts ...sql.OrderTermOption) OrderOption
BySourceID orders the results by the source_id field.
func ByTimeScanned ¶
func ByTimeScanned(opts ...sql.OrderTermOption) OrderOption
ByTimeScanned orders the results by the time_scanned field.