Documentation
¶
Index ¶
- Constants
- Variables
- func AnalysisID(v string) predicate.ReportMalware
- func AnalysisIDContains(v string) predicate.ReportMalware
- func AnalysisIDContainsFold(v string) predicate.ReportMalware
- func AnalysisIDEQ(v string) predicate.ReportMalware
- func AnalysisIDEqualFold(v string) predicate.ReportMalware
- func AnalysisIDGT(v string) predicate.ReportMalware
- func AnalysisIDGTE(v string) predicate.ReportMalware
- func AnalysisIDHasPrefix(v string) predicate.ReportMalware
- func AnalysisIDHasSuffix(v string) predicate.ReportMalware
- func AnalysisIDIn(vs ...string) predicate.ReportMalware
- func AnalysisIDLT(v string) predicate.ReportMalware
- func AnalysisIDLTE(v string) predicate.ReportMalware
- func AnalysisIDNEQ(v string) predicate.ReportMalware
- func AnalysisIDNotIn(vs ...string) predicate.ReportMalware
- func And(predicates ...predicate.ReportMalware) predicate.ReportMalware
- func Confidence(v string) predicate.ReportMalware
- func ConfidenceContains(v string) predicate.ReportMalware
- func ConfidenceContainsFold(v string) predicate.ReportMalware
- func ConfidenceEQ(v string) predicate.ReportMalware
- func ConfidenceEqualFold(v string) predicate.ReportMalware
- func ConfidenceGT(v string) predicate.ReportMalware
- func ConfidenceGTE(v string) predicate.ReportMalware
- func ConfidenceHasPrefix(v string) predicate.ReportMalware
- func ConfidenceHasSuffix(v string) predicate.ReportMalware
- func ConfidenceIn(vs ...string) predicate.ReportMalware
- func ConfidenceIsNil() predicate.ReportMalware
- func ConfidenceLT(v string) predicate.ReportMalware
- func ConfidenceLTE(v string) predicate.ReportMalware
- func ConfidenceNEQ(v string) predicate.ReportMalware
- func ConfidenceNotIn(vs ...string) predicate.ReportMalware
- func ConfidenceNotNil() predicate.ReportMalware
- func CreatedAt(v time.Time) predicate.ReportMalware
- func CreatedAtEQ(v time.Time) predicate.ReportMalware
- func CreatedAtGT(v time.Time) predicate.ReportMalware
- func CreatedAtGTE(v time.Time) predicate.ReportMalware
- func CreatedAtIn(vs ...time.Time) predicate.ReportMalware
- func CreatedAtIsNil() predicate.ReportMalware
- func CreatedAtLT(v time.Time) predicate.ReportMalware
- func CreatedAtLTE(v time.Time) predicate.ReportMalware
- func CreatedAtNEQ(v time.Time) predicate.ReportMalware
- func CreatedAtNotIn(vs ...time.Time) predicate.ReportMalware
- func CreatedAtNotNil() predicate.ReportMalware
- func HasPackage() predicate.ReportMalware
- func HasPackageWith(preds ...predicate.ReportPackage) predicate.ReportMalware
- func ID(id int) predicate.ReportMalware
- func IDEQ(id int) predicate.ReportMalware
- func IDGT(id int) predicate.ReportMalware
- func IDGTE(id int) predicate.ReportMalware
- func IDIn(ids ...int) predicate.ReportMalware
- func IDLT(id int) predicate.ReportMalware
- func IDLTE(id int) predicate.ReportMalware
- func IDNEQ(id int) predicate.ReportMalware
- func IDNotIn(ids ...int) predicate.ReportMalware
- func IsMalware(v bool) predicate.ReportMalware
- func IsMalwareEQ(v bool) predicate.ReportMalware
- func IsMalwareNEQ(v bool) predicate.ReportMalware
- func IsSuspicious(v bool) predicate.ReportMalware
- func IsSuspiciousEQ(v bool) predicate.ReportMalware
- func IsSuspiciousNEQ(v bool) predicate.ReportMalware
- func Not(p predicate.ReportMalware) predicate.ReportMalware
- func Or(predicates ...predicate.ReportMalware) predicate.ReportMalware
- func ReportIsNil() predicate.ReportMalware
- func ReportNotNil() predicate.ReportMalware
- func UpdatedAt(v time.Time) predicate.ReportMalware
- func UpdatedAtEQ(v time.Time) predicate.ReportMalware
- func UpdatedAtGT(v time.Time) predicate.ReportMalware
- func UpdatedAtGTE(v time.Time) predicate.ReportMalware
- func UpdatedAtIn(vs ...time.Time) predicate.ReportMalware
- func UpdatedAtIsNil() predicate.ReportMalware
- func UpdatedAtLT(v time.Time) predicate.ReportMalware
- func UpdatedAtLTE(v time.Time) predicate.ReportMalware
- func UpdatedAtNEQ(v time.Time) predicate.ReportMalware
- func UpdatedAtNotIn(vs ...time.Time) predicate.ReportMalware
- func UpdatedAtNotNil() predicate.ReportMalware
- func ValidColumn(column string) bool
- func VerificationRecordIsNil() predicate.ReportMalware
- func VerificationRecordNotNil() predicate.ReportMalware
- type OrderOption
- func ByAnalysisID(opts ...sql.OrderTermOption) OrderOption
- func ByConfidence(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsMalware(opts ...sql.OrderTermOption) OrderOption
- func ByIsSuspicious(opts ...sql.OrderTermOption) OrderOption
- func ByPackageField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the reportmalware type in the database. Label = "report_malware" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldAnalysisID holds the string denoting the analysis_id field in the database. FieldAnalysisID = "analysis_id" // FieldIsMalware holds the string denoting the is_malware field in the database. FieldIsMalware = "is_malware" // FieldIsSuspicious holds the string denoting the is_suspicious field in the database. FieldIsSuspicious = "is_suspicious" // FieldConfidence holds the string denoting the confidence field in the database. FieldConfidence = "confidence" // FieldReport holds the string denoting the report field in the database. FieldReport = "report" // FieldVerificationRecord holds the string denoting the verification_record field in the database. FieldVerificationRecord = "verification_record" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgePackage holds the string denoting the package edge name in mutations. EdgePackage = "package" // Table holds the table name of the reportmalware in the database. Table = "report_malwares" // PackageTable is the table that holds the package relation/edge. PackageTable = "report_malwares" // PackageInverseTable is the table name for the ReportPackage entity. // It exists in this package in order to avoid circular dependency with the "reportpackage" package. PackageInverseTable = "report_packages" // PackageColumn is the table column denoting the package relation/edge. PackageColumn = "report_package_malware_analysis" )
Variables ¶
var ( // AnalysisIDValidator is a validator for the "analysis_id" field. It is called by the builders before save. AnalysisIDValidator func(string) error // DefaultIsMalware holds the default value on creation for the "is_malware" field. DefaultIsMalware bool // DefaultIsSuspicious holds the default value on creation for the "is_suspicious" field. DefaultIsSuspicious bool )
var Columns = []string{ FieldID, FieldAnalysisID, FieldIsMalware, FieldIsSuspicious, FieldConfidence, FieldReport, FieldVerificationRecord, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for reportmalware fields.
var ForeignKeys = []string{
"report_package_malware_analysis",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "report_malwares" table and are not defined as standalone fields in the schema.
Functions ¶
func AnalysisID ¶
func AnalysisID(v string) predicate.ReportMalware
AnalysisID applies equality check predicate on the "analysis_id" field. It's identical to AnalysisIDEQ.
func AnalysisIDContains ¶
func AnalysisIDContains(v string) predicate.ReportMalware
AnalysisIDContains applies the Contains predicate on the "analysis_id" field.
func AnalysisIDContainsFold ¶
func AnalysisIDContainsFold(v string) predicate.ReportMalware
AnalysisIDContainsFold applies the ContainsFold predicate on the "analysis_id" field.
func AnalysisIDEQ ¶
func AnalysisIDEQ(v string) predicate.ReportMalware
AnalysisIDEQ applies the EQ predicate on the "analysis_id" field.
func AnalysisIDEqualFold ¶
func AnalysisIDEqualFold(v string) predicate.ReportMalware
AnalysisIDEqualFold applies the EqualFold predicate on the "analysis_id" field.
func AnalysisIDGT ¶
func AnalysisIDGT(v string) predicate.ReportMalware
AnalysisIDGT applies the GT predicate on the "analysis_id" field.
func AnalysisIDGTE ¶
func AnalysisIDGTE(v string) predicate.ReportMalware
AnalysisIDGTE applies the GTE predicate on the "analysis_id" field.
func AnalysisIDHasPrefix ¶
func AnalysisIDHasPrefix(v string) predicate.ReportMalware
AnalysisIDHasPrefix applies the HasPrefix predicate on the "analysis_id" field.
func AnalysisIDHasSuffix ¶
func AnalysisIDHasSuffix(v string) predicate.ReportMalware
AnalysisIDHasSuffix applies the HasSuffix predicate on the "analysis_id" field.
func AnalysisIDIn ¶
func AnalysisIDIn(vs ...string) predicate.ReportMalware
AnalysisIDIn applies the In predicate on the "analysis_id" field.
func AnalysisIDLT ¶
func AnalysisIDLT(v string) predicate.ReportMalware
AnalysisIDLT applies the LT predicate on the "analysis_id" field.
func AnalysisIDLTE ¶
func AnalysisIDLTE(v string) predicate.ReportMalware
AnalysisIDLTE applies the LTE predicate on the "analysis_id" field.
func AnalysisIDNEQ ¶
func AnalysisIDNEQ(v string) predicate.ReportMalware
AnalysisIDNEQ applies the NEQ predicate on the "analysis_id" field.
func AnalysisIDNotIn ¶
func AnalysisIDNotIn(vs ...string) predicate.ReportMalware
AnalysisIDNotIn applies the NotIn predicate on the "analysis_id" field.
func And ¶
func And(predicates ...predicate.ReportMalware) predicate.ReportMalware
And groups predicates with the AND operator between them.
func Confidence ¶
func Confidence(v string) predicate.ReportMalware
Confidence applies equality check predicate on the "confidence" field. It's identical to ConfidenceEQ.
func ConfidenceContains ¶
func ConfidenceContains(v string) predicate.ReportMalware
ConfidenceContains applies the Contains predicate on the "confidence" field.
func ConfidenceContainsFold ¶
func ConfidenceContainsFold(v string) predicate.ReportMalware
ConfidenceContainsFold applies the ContainsFold predicate on the "confidence" field.
func ConfidenceEQ ¶
func ConfidenceEQ(v string) predicate.ReportMalware
ConfidenceEQ applies the EQ predicate on the "confidence" field.
func ConfidenceEqualFold ¶
func ConfidenceEqualFold(v string) predicate.ReportMalware
ConfidenceEqualFold applies the EqualFold predicate on the "confidence" field.
func ConfidenceGT ¶
func ConfidenceGT(v string) predicate.ReportMalware
ConfidenceGT applies the GT predicate on the "confidence" field.
func ConfidenceGTE ¶
func ConfidenceGTE(v string) predicate.ReportMalware
ConfidenceGTE applies the GTE predicate on the "confidence" field.
func ConfidenceHasPrefix ¶
func ConfidenceHasPrefix(v string) predicate.ReportMalware
ConfidenceHasPrefix applies the HasPrefix predicate on the "confidence" field.
func ConfidenceHasSuffix ¶
func ConfidenceHasSuffix(v string) predicate.ReportMalware
ConfidenceHasSuffix applies the HasSuffix predicate on the "confidence" field.
func ConfidenceIn ¶
func ConfidenceIn(vs ...string) predicate.ReportMalware
ConfidenceIn applies the In predicate on the "confidence" field.
func ConfidenceIsNil ¶
func ConfidenceIsNil() predicate.ReportMalware
ConfidenceIsNil applies the IsNil predicate on the "confidence" field.
func ConfidenceLT ¶
func ConfidenceLT(v string) predicate.ReportMalware
ConfidenceLT applies the LT predicate on the "confidence" field.
func ConfidenceLTE ¶
func ConfidenceLTE(v string) predicate.ReportMalware
ConfidenceLTE applies the LTE predicate on the "confidence" field.
func ConfidenceNEQ ¶
func ConfidenceNEQ(v string) predicate.ReportMalware
ConfidenceNEQ applies the NEQ predicate on the "confidence" field.
func ConfidenceNotIn ¶
func ConfidenceNotIn(vs ...string) predicate.ReportMalware
ConfidenceNotIn applies the NotIn predicate on the "confidence" field.
func ConfidenceNotNil ¶
func ConfidenceNotNil() predicate.ReportMalware
ConfidenceNotNil applies the NotNil predicate on the "confidence" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ReportMalware
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ReportMalware
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ReportMalware
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ReportMalware
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ReportMalware
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
func CreatedAtIsNil() predicate.ReportMalware
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ReportMalware
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ReportMalware
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ReportMalware
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ReportMalware
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
func CreatedAtNotNil() predicate.ReportMalware
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func HasPackage ¶
func HasPackage() predicate.ReportMalware
HasPackage applies the HasEdge predicate on the "package" edge.
func HasPackageWith ¶
func HasPackageWith(preds ...predicate.ReportPackage) predicate.ReportMalware
HasPackageWith applies the HasEdge predicate on the "package" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.ReportMalware
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.ReportMalware
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.ReportMalware
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.ReportMalware
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.ReportMalware
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.ReportMalware
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.ReportMalware
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.ReportMalware
IDNotIn applies the NotIn predicate on the ID field.
func IsMalware ¶
func IsMalware(v bool) predicate.ReportMalware
IsMalware applies equality check predicate on the "is_malware" field. It's identical to IsMalwareEQ.
func IsMalwareEQ ¶
func IsMalwareEQ(v bool) predicate.ReportMalware
IsMalwareEQ applies the EQ predicate on the "is_malware" field.
func IsMalwareNEQ ¶
func IsMalwareNEQ(v bool) predicate.ReportMalware
IsMalwareNEQ applies the NEQ predicate on the "is_malware" field.
func IsSuspicious ¶
func IsSuspicious(v bool) predicate.ReportMalware
IsSuspicious applies equality check predicate on the "is_suspicious" field. It's identical to IsSuspiciousEQ.
func IsSuspiciousEQ ¶
func IsSuspiciousEQ(v bool) predicate.ReportMalware
IsSuspiciousEQ applies the EQ predicate on the "is_suspicious" field.
func IsSuspiciousNEQ ¶
func IsSuspiciousNEQ(v bool) predicate.ReportMalware
IsSuspiciousNEQ applies the NEQ predicate on the "is_suspicious" field.
func Not ¶
func Not(p predicate.ReportMalware) predicate.ReportMalware
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ReportMalware) predicate.ReportMalware
Or groups predicates with the OR operator between them.
func ReportIsNil ¶
func ReportIsNil() predicate.ReportMalware
ReportIsNil applies the IsNil predicate on the "report" field.
func ReportNotNil ¶
func ReportNotNil() predicate.ReportMalware
ReportNotNil applies the NotNil predicate on the "report" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ReportMalware
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ReportMalware
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ReportMalware
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ReportMalware
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ReportMalware
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.ReportMalware
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ReportMalware
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ReportMalware
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ReportMalware
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ReportMalware
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.ReportMalware
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VerificationRecordIsNil ¶
func VerificationRecordIsNil() predicate.ReportMalware
VerificationRecordIsNil applies the IsNil predicate on the "verification_record" field.
func VerificationRecordNotNil ¶
func VerificationRecordNotNil() predicate.ReportMalware
VerificationRecordNotNil applies the NotNil predicate on the "verification_record" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the ReportMalware queries.
func ByAnalysisID ¶
func ByAnalysisID(opts ...sql.OrderTermOption) OrderOption
ByAnalysisID orders the results by the analysis_id field.
func ByConfidence ¶
func ByConfidence(opts ...sql.OrderTermOption) OrderOption
ByConfidence orders the results by the confidence field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsMalware ¶
func ByIsMalware(opts ...sql.OrderTermOption) OrderOption
ByIsMalware orders the results by the is_malware field.
func ByIsSuspicious ¶
func ByIsSuspicious(opts ...sql.OrderTermOption) OrderOption
ByIsSuspicious orders the results by the is_suspicious field.
func ByPackageField ¶
func ByPackageField(field string, opts ...sql.OrderTermOption) OrderOption
ByPackageField orders the results by package field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.