Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Anomaly) predicate.Anomaly
- func CreateTime(v time.Time) predicate.Anomaly
- func CreateTimeEQ(v time.Time) predicate.Anomaly
- func CreateTimeGT(v time.Time) predicate.Anomaly
- func CreateTimeGTE(v time.Time) predicate.Anomaly
- func CreateTimeIn(vs ...time.Time) predicate.Anomaly
- func CreateTimeLT(v time.Time) predicate.Anomaly
- func CreateTimeLTE(v time.Time) predicate.Anomaly
- func CreateTimeNEQ(v time.Time) predicate.Anomaly
- func CreateTimeNotIn(vs ...time.Time) predicate.Anomaly
- func HasDetectionJobInstance() predicate.Anomaly
- func HasDetectionJobInstanceWith(preds ...predicate.DetectionJobInstance) predicate.Anomaly
- func ID(id int) predicate.Anomaly
- func IDEQ(id int) predicate.Anomaly
- func IDGT(id int) predicate.Anomaly
- func IDGTE(id int) predicate.Anomaly
- func IDIn(ids ...int) predicate.Anomaly
- func IDLT(id int) predicate.Anomaly
- func IDLTE(id int) predicate.Anomaly
- func IDNEQ(id int) predicate.Anomaly
- func IDNotIn(ids ...int) predicate.Anomaly
- func Not(p predicate.Anomaly) predicate.Anomaly
- func Or(predicates ...predicate.Anomaly) predicate.Anomaly
- func PeriodEnd(v time.Time) predicate.Anomaly
- func PeriodEndEQ(v time.Time) predicate.Anomaly
- func PeriodEndGT(v time.Time) predicate.Anomaly
- func PeriodEndGTE(v time.Time) predicate.Anomaly
- func PeriodEndIn(vs ...time.Time) predicate.Anomaly
- func PeriodEndLT(v time.Time) predicate.Anomaly
- func PeriodEndLTE(v time.Time) predicate.Anomaly
- func PeriodEndNEQ(v time.Time) predicate.Anomaly
- func PeriodEndNotIn(vs ...time.Time) predicate.Anomaly
- func PeriodStart(v time.Time) predicate.Anomaly
- func PeriodStartEQ(v time.Time) predicate.Anomaly
- func PeriodStartGT(v time.Time) predicate.Anomaly
- func PeriodStartGTE(v time.Time) predicate.Anomaly
- func PeriodStartIn(vs ...time.Time) predicate.Anomaly
- func PeriodStartLT(v time.Time) predicate.Anomaly
- func PeriodStartLTE(v time.Time) predicate.Anomaly
- func PeriodStartNEQ(v time.Time) predicate.Anomaly
- func PeriodStartNotIn(vs ...time.Time) predicate.Anomaly
- func Processed(v bool) predicate.Anomaly
- func ProcessedEQ(v bool) predicate.Anomaly
- func ProcessedNEQ(v bool) predicate.Anomaly
- func Type(v string) predicate.Anomaly
- func TypeContains(v string) predicate.Anomaly
- func TypeContainsFold(v string) predicate.Anomaly
- func TypeEQ(v string) predicate.Anomaly
- func TypeEqualFold(v string) predicate.Anomaly
- func TypeGT(v string) predicate.Anomaly
- func TypeGTE(v string) predicate.Anomaly
- func TypeHasPrefix(v string) predicate.Anomaly
- func TypeHasSuffix(v string) predicate.Anomaly
- func TypeIn(vs ...string) predicate.Anomaly
- func TypeLT(v string) predicate.Anomaly
- func TypeLTE(v string) predicate.Anomaly
- func TypeNEQ(v string) predicate.Anomaly
- func TypeNotIn(vs ...string) predicate.Anomaly
- func UpdateTime(v time.Time) predicate.Anomaly
- func UpdateTimeEQ(v time.Time) predicate.Anomaly
- func UpdateTimeGT(v time.Time) predicate.Anomaly
- func UpdateTimeGTE(v time.Time) predicate.Anomaly
- func UpdateTimeIn(vs ...time.Time) predicate.Anomaly
- func UpdateTimeLT(v time.Time) predicate.Anomaly
- func UpdateTimeLTE(v time.Time) predicate.Anomaly
- func UpdateTimeNEQ(v time.Time) predicate.Anomaly
- func UpdateTimeNotIn(vs ...time.Time) predicate.Anomaly
- func ValidColumn(column string) bool
- func Value(v float64) predicate.Anomaly
- func ValueEQ(v float64) predicate.Anomaly
- func ValueGT(v float64) predicate.Anomaly
- func ValueGTE(v float64) predicate.Anomaly
- func ValueIn(vs ...float64) predicate.Anomaly
- func ValueLT(v float64) predicate.Anomaly
- func ValueLTE(v float64) predicate.Anomaly
- func ValueNEQ(v float64) predicate.Anomaly
- func ValueNotIn(vs ...float64) predicate.Anomaly
Constants ¶
const ( // Label holds the string label denoting the anomaly type in the database. Label = "anomaly" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldProcessed holds the string denoting the processed field in the database. FieldProcessed = "processed" // FieldPeriodStart holds the string denoting the period_start field in the database. FieldPeriodStart = "period_start" // FieldPeriodEnd holds the string denoting the period_end field in the database. FieldPeriodEnd = "period_end" // EdgeDetectionJobInstance holds the string denoting the detection_job_instance edge name in mutations. EdgeDetectionJobInstance = "detection_job_instance" // Table holds the table name of the anomaly in the database. Table = "anomalies" // DetectionJobInstanceTable is the table the holds the detection_job_instance relation/edge. DetectionJobInstanceTable = "anomalies" // DetectionJobInstanceInverseTable is the table name for the DetectionJobInstance entity. // It exists in this package in order to avoid circular dependency with the "detectionjobinstance" package. DetectionJobInstanceInverseTable = "detection_job_instances" // DetectionJobInstanceColumn is the table column denoting the detection_job_instance relation/edge. DetectionJobInstanceColumn = "detection_job_instance_anomalies" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // DefaultProcessed holds the default value on creation for the "processed" field. DefaultProcessed bool )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldType, FieldValue, FieldProcessed, FieldPeriodStart, FieldPeriodEnd, }
Columns holds all SQL columns for anomaly fields.
var ForeignKeys = []string{
"detection_job_instance_anomalies",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Anomaly type.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasDetectionJobInstance ¶
HasDetectionJobInstance applies the HasEdge predicate on the "detection_job_instance" edge.
func HasDetectionJobInstanceWith ¶
func HasDetectionJobInstanceWith(preds ...predicate.DetectionJobInstance) predicate.Anomaly
HasDetectionJobInstanceWith applies the HasEdge predicate on the "detection_job_instance" edge with a given conditions (other predicates).
func PeriodEnd ¶
PeriodEnd applies equality check predicate on the "period_end" field. It's identical to PeriodEndEQ.
func PeriodEndEQ ¶
PeriodEndEQ applies the EQ predicate on the "period_end" field.
func PeriodEndGT ¶
PeriodEndGT applies the GT predicate on the "period_end" field.
func PeriodEndGTE ¶
PeriodEndGTE applies the GTE predicate on the "period_end" field.
func PeriodEndIn ¶
PeriodEndIn applies the In predicate on the "period_end" field.
func PeriodEndLT ¶
PeriodEndLT applies the LT predicate on the "period_end" field.
func PeriodEndLTE ¶
PeriodEndLTE applies the LTE predicate on the "period_end" field.
func PeriodEndNEQ ¶
PeriodEndNEQ applies the NEQ predicate on the "period_end" field.
func PeriodEndNotIn ¶
PeriodEndNotIn applies the NotIn predicate on the "period_end" field.
func PeriodStart ¶
PeriodStart applies equality check predicate on the "period_start" field. It's identical to PeriodStartEQ.
func PeriodStartEQ ¶
PeriodStartEQ applies the EQ predicate on the "period_start" field.
func PeriodStartGT ¶
PeriodStartGT applies the GT predicate on the "period_start" field.
func PeriodStartGTE ¶
PeriodStartGTE applies the GTE predicate on the "period_start" field.
func PeriodStartIn ¶
PeriodStartIn applies the In predicate on the "period_start" field.
func PeriodStartLT ¶
PeriodStartLT applies the LT predicate on the "period_start" field.
func PeriodStartLTE ¶
PeriodStartLTE applies the LTE predicate on the "period_start" field.
func PeriodStartNEQ ¶
PeriodStartNEQ applies the NEQ predicate on the "period_start" field.
func PeriodStartNotIn ¶
PeriodStartNotIn applies the NotIn predicate on the "period_start" field.
func Processed ¶
Processed applies equality check predicate on the "processed" field. It's identical to ProcessedEQ.
func ProcessedEQ ¶
ProcessedEQ applies the EQ predicate on the "processed" field.
func ProcessedNEQ ¶
ProcessedNEQ applies the NEQ predicate on the "processed" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
This section is empty.