Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Decision) predicate.Decision
- func CreatedAt(v time.Time) predicate.Decision
- func CreatedAtEQ(v time.Time) predicate.Decision
- func CreatedAtGT(v time.Time) predicate.Decision
- func CreatedAtGTE(v time.Time) predicate.Decision
- func CreatedAtIn(vs ...time.Time) predicate.Decision
- func CreatedAtIsNil() predicate.Decision
- func CreatedAtLT(v time.Time) predicate.Decision
- func CreatedAtLTE(v time.Time) predicate.Decision
- func CreatedAtNEQ(v time.Time) predicate.Decision
- func CreatedAtNotIn(vs ...time.Time) predicate.Decision
- func CreatedAtNotNil() predicate.Decision
- func EndIP(v int64) predicate.Decision
- func EndIPEQ(v int64) predicate.Decision
- func EndIPGT(v int64) predicate.Decision
- func EndIPGTE(v int64) predicate.Decision
- func EndIPIn(vs ...int64) predicate.Decision
- func EndIPIsNil() predicate.Decision
- func EndIPLT(v int64) predicate.Decision
- func EndIPLTE(v int64) predicate.Decision
- func EndIPNEQ(v int64) predicate.Decision
- func EndIPNotIn(vs ...int64) predicate.Decision
- func EndIPNotNil() predicate.Decision
- func EndSuffix(v int64) predicate.Decision
- func EndSuffixEQ(v int64) predicate.Decision
- func EndSuffixGT(v int64) predicate.Decision
- func EndSuffixGTE(v int64) predicate.Decision
- func EndSuffixIn(vs ...int64) predicate.Decision
- func EndSuffixIsNil() predicate.Decision
- func EndSuffixLT(v int64) predicate.Decision
- func EndSuffixLTE(v int64) predicate.Decision
- func EndSuffixNEQ(v int64) predicate.Decision
- func EndSuffixNotIn(vs ...int64) predicate.Decision
- func EndSuffixNotNil() predicate.Decision
- func HasOwner() predicate.Decision
- func HasOwnerWith(preds ...predicate.Alert) predicate.Decision
- func ID(id int) predicate.Decision
- func IDEQ(id int) predicate.Decision
- func IDGT(id int) predicate.Decision
- func IDGTE(id int) predicate.Decision
- func IDIn(ids ...int) predicate.Decision
- func IDLT(id int) predicate.Decision
- func IDLTE(id int) predicate.Decision
- func IDNEQ(id int) predicate.Decision
- func IDNotIn(ids ...int) predicate.Decision
- func IPSize(v int64) predicate.Decision
- func IPSizeEQ(v int64) predicate.Decision
- func IPSizeGT(v int64) predicate.Decision
- func IPSizeGTE(v int64) predicate.Decision
- func IPSizeIn(vs ...int64) predicate.Decision
- func IPSizeIsNil() predicate.Decision
- func IPSizeLT(v int64) predicate.Decision
- func IPSizeLTE(v int64) predicate.Decision
- func IPSizeNEQ(v int64) predicate.Decision
- func IPSizeNotIn(vs ...int64) predicate.Decision
- func IPSizeNotNil() predicate.Decision
- func Not(p predicate.Decision) predicate.Decision
- func Or(predicates ...predicate.Decision) predicate.Decision
- func Origin(v string) predicate.Decision
- func OriginContains(v string) predicate.Decision
- func OriginContainsFold(v string) predicate.Decision
- func OriginEQ(v string) predicate.Decision
- func OriginEqualFold(v string) predicate.Decision
- func OriginGT(v string) predicate.Decision
- func OriginGTE(v string) predicate.Decision
- func OriginHasPrefix(v string) predicate.Decision
- func OriginHasSuffix(v string) predicate.Decision
- func OriginIn(vs ...string) predicate.Decision
- func OriginLT(v string) predicate.Decision
- func OriginLTE(v string) predicate.Decision
- func OriginNEQ(v string) predicate.Decision
- func OriginNotIn(vs ...string) predicate.Decision
- func Scenario(v string) predicate.Decision
- func ScenarioContains(v string) predicate.Decision
- func ScenarioContainsFold(v string) predicate.Decision
- func ScenarioEQ(v string) predicate.Decision
- func ScenarioEqualFold(v string) predicate.Decision
- func ScenarioGT(v string) predicate.Decision
- func ScenarioGTE(v string) predicate.Decision
- func ScenarioHasPrefix(v string) predicate.Decision
- func ScenarioHasSuffix(v string) predicate.Decision
- func ScenarioIn(vs ...string) predicate.Decision
- func ScenarioLT(v string) predicate.Decision
- func ScenarioLTE(v string) predicate.Decision
- func ScenarioNEQ(v string) predicate.Decision
- func ScenarioNotIn(vs ...string) predicate.Decision
- func Scope(v string) predicate.Decision
- func ScopeContains(v string) predicate.Decision
- func ScopeContainsFold(v string) predicate.Decision
- func ScopeEQ(v string) predicate.Decision
- func ScopeEqualFold(v string) predicate.Decision
- func ScopeGT(v string) predicate.Decision
- func ScopeGTE(v string) predicate.Decision
- func ScopeHasPrefix(v string) predicate.Decision
- func ScopeHasSuffix(v string) predicate.Decision
- func ScopeIn(vs ...string) predicate.Decision
- func ScopeLT(v string) predicate.Decision
- func ScopeLTE(v string) predicate.Decision
- func ScopeNEQ(v string) predicate.Decision
- func ScopeNotIn(vs ...string) predicate.Decision
- func Simulated(v bool) predicate.Decision
- func SimulatedEQ(v bool) predicate.Decision
- func SimulatedNEQ(v bool) predicate.Decision
- func StartIP(v int64) predicate.Decision
- func StartIPEQ(v int64) predicate.Decision
- func StartIPGT(v int64) predicate.Decision
- func StartIPGTE(v int64) predicate.Decision
- func StartIPIn(vs ...int64) predicate.Decision
- func StartIPIsNil() predicate.Decision
- func StartIPLT(v int64) predicate.Decision
- func StartIPLTE(v int64) predicate.Decision
- func StartIPNEQ(v int64) predicate.Decision
- func StartIPNotIn(vs ...int64) predicate.Decision
- func StartIPNotNil() predicate.Decision
- func StartSuffix(v int64) predicate.Decision
- func StartSuffixEQ(v int64) predicate.Decision
- func StartSuffixGT(v int64) predicate.Decision
- func StartSuffixGTE(v int64) predicate.Decision
- func StartSuffixIn(vs ...int64) predicate.Decision
- func StartSuffixIsNil() predicate.Decision
- func StartSuffixLT(v int64) predicate.Decision
- func StartSuffixLTE(v int64) predicate.Decision
- func StartSuffixNEQ(v int64) predicate.Decision
- func StartSuffixNotIn(vs ...int64) predicate.Decision
- func StartSuffixNotNil() predicate.Decision
- func Type(v string) predicate.Decision
- func TypeContains(v string) predicate.Decision
- func TypeContainsFold(v string) predicate.Decision
- func TypeEQ(v string) predicate.Decision
- func TypeEqualFold(v string) predicate.Decision
- func TypeGT(v string) predicate.Decision
- func TypeGTE(v string) predicate.Decision
- func TypeHasPrefix(v string) predicate.Decision
- func TypeHasSuffix(v string) predicate.Decision
- func TypeIn(vs ...string) predicate.Decision
- func TypeLT(v string) predicate.Decision
- func TypeLTE(v string) predicate.Decision
- func TypeNEQ(v string) predicate.Decision
- func TypeNotIn(vs ...string) predicate.Decision
- func Until(v time.Time) predicate.Decision
- func UntilEQ(v time.Time) predicate.Decision
- func UntilGT(v time.Time) predicate.Decision
- func UntilGTE(v time.Time) predicate.Decision
- func UntilIn(vs ...time.Time) predicate.Decision
- func UntilLT(v time.Time) predicate.Decision
- func UntilLTE(v time.Time) predicate.Decision
- func UntilNEQ(v time.Time) predicate.Decision
- func UntilNotIn(vs ...time.Time) predicate.Decision
- func UpdatedAt(v time.Time) predicate.Decision
- func UpdatedAtEQ(v time.Time) predicate.Decision
- func UpdatedAtGT(v time.Time) predicate.Decision
- func UpdatedAtGTE(v time.Time) predicate.Decision
- func UpdatedAtIn(vs ...time.Time) predicate.Decision
- func UpdatedAtIsNil() predicate.Decision
- func UpdatedAtLT(v time.Time) predicate.Decision
- func UpdatedAtLTE(v time.Time) predicate.Decision
- func UpdatedAtNEQ(v time.Time) predicate.Decision
- func UpdatedAtNotIn(vs ...time.Time) predicate.Decision
- func UpdatedAtNotNil() predicate.Decision
- func ValidColumn(column string) bool
- func Value(v string) predicate.Decision
- func ValueContains(v string) predicate.Decision
- func ValueContainsFold(v string) predicate.Decision
- func ValueEQ(v string) predicate.Decision
- func ValueEqualFold(v string) predicate.Decision
- func ValueGT(v string) predicate.Decision
- func ValueGTE(v string) predicate.Decision
- func ValueHasPrefix(v string) predicate.Decision
- func ValueHasSuffix(v string) predicate.Decision
- func ValueIn(vs ...string) predicate.Decision
- func ValueLT(v string) predicate.Decision
- func ValueLTE(v string) predicate.Decision
- func ValueNEQ(v string) predicate.Decision
- func ValueNotIn(vs ...string) predicate.Decision
Constants ¶
const ( // Label holds the string label denoting the decision type in the database. Label = "decision" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldUntil holds the string denoting the until field in the database. FieldUntil = "until" // FieldScenario holds the string denoting the scenario field in the database. FieldScenario = "scenario" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldStartIP holds the string denoting the start_ip field in the database. FieldStartIP = "start_ip" // FieldEndIP holds the string denoting the end_ip field in the database. FieldEndIP = "end_ip" // FieldStartSuffix holds the string denoting the start_suffix field in the database. FieldStartSuffix = "start_suffix" // FieldEndSuffix holds the string denoting the end_suffix field in the database. FieldEndSuffix = "end_suffix" // FieldIPSize holds the string denoting the ip_size field in the database. FieldIPSize = "ip_size" // FieldScope holds the string denoting the scope field in the database. FieldScope = "scope" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldOrigin holds the string denoting the origin field in the database. FieldOrigin = "origin" // FieldSimulated holds the string denoting the simulated field in the database. FieldSimulated = "simulated" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the decision in the database. Table = "decisions" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "decisions" // OwnerInverseTable is the table name for the Alert entity. // It exists in this package in order to avoid circular dependency with the "alert" package. OwnerInverseTable = "alerts" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "alert_decisions" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // UpdateDefaultCreatedAt holds the default value on update for the "created_at" field. UpdateDefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultSimulated holds the default value on creation for the "simulated" field. DefaultSimulated bool )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldUntil, FieldScenario, FieldType, FieldStartIP, FieldEndIP, FieldStartSuffix, FieldEndSuffix, FieldIPSize, FieldScope, FieldValue, FieldOrigin, FieldSimulated, }
Columns holds all SQL columns for decision fields.
var ForeignKeys = []string{
"alert_decisions",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "decisions" table and are not defined as standalone fields in the schema.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶ added in v1.3.0
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶ added in v1.3.0
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func EndIP ¶
EndIP applies equality check predicate on the "end_ip" field. It's identical to EndIPEQ.
func EndIPIsNil ¶
EndIPIsNil applies the IsNil predicate on the "end_ip" field.
func EndIPNotIn ¶
EndIPNotIn applies the NotIn predicate on the "end_ip" field.
func EndIPNotNil ¶
EndIPNotNil applies the NotNil predicate on the "end_ip" field.
func EndSuffix ¶ added in v1.0.3
EndSuffix applies equality check predicate on the "end_suffix" field. It's identical to EndSuffixEQ.
func EndSuffixEQ ¶ added in v1.0.3
EndSuffixEQ applies the EQ predicate on the "end_suffix" field.
func EndSuffixGT ¶ added in v1.0.3
EndSuffixGT applies the GT predicate on the "end_suffix" field.
func EndSuffixGTE ¶ added in v1.0.3
EndSuffixGTE applies the GTE predicate on the "end_suffix" field.
func EndSuffixIn ¶ added in v1.0.3
EndSuffixIn applies the In predicate on the "end_suffix" field.
func EndSuffixIsNil ¶ added in v1.0.3
EndSuffixIsNil applies the IsNil predicate on the "end_suffix" field.
func EndSuffixLT ¶ added in v1.0.3
EndSuffixLT applies the LT predicate on the "end_suffix" field.
func EndSuffixLTE ¶ added in v1.0.3
EndSuffixLTE applies the LTE predicate on the "end_suffix" field.
func EndSuffixNEQ ¶ added in v1.0.3
EndSuffixNEQ applies the NEQ predicate on the "end_suffix" field.
func EndSuffixNotIn ¶ added in v1.0.3
EndSuffixNotIn applies the NotIn predicate on the "end_suffix" field.
func EndSuffixNotNil ¶ added in v1.0.3
EndSuffixNotNil applies the NotNil predicate on the "end_suffix" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func IPSize ¶ added in v1.0.3
IPSize applies equality check predicate on the "ip_size" field. It's identical to IPSizeEQ.
func IPSizeIsNil ¶ added in v1.0.3
IPSizeIsNil applies the IsNil predicate on the "ip_size" field.
func IPSizeNotIn ¶ added in v1.0.3
IPSizeNotIn applies the NotIn predicate on the "ip_size" field.
func IPSizeNotNil ¶ added in v1.0.3
IPSizeNotNil applies the NotNil predicate on the "ip_size" field.
func Origin ¶
Origin applies equality check predicate on the "origin" field. It's identical to OriginEQ.
func OriginContains ¶
OriginContains applies the Contains predicate on the "origin" field.
func OriginContainsFold ¶
OriginContainsFold applies the ContainsFold predicate on the "origin" field.
func OriginEqualFold ¶
OriginEqualFold applies the EqualFold predicate on the "origin" field.
func OriginHasPrefix ¶
OriginHasPrefix applies the HasPrefix predicate on the "origin" field.
func OriginHasSuffix ¶
OriginHasSuffix applies the HasSuffix predicate on the "origin" field.
func OriginNotIn ¶
OriginNotIn applies the NotIn predicate on the "origin" field.
func Scenario ¶
Scenario applies equality check predicate on the "scenario" field. It's identical to ScenarioEQ.
func ScenarioContains ¶
ScenarioContains applies the Contains predicate on the "scenario" field.
func ScenarioContainsFold ¶
ScenarioContainsFold applies the ContainsFold predicate on the "scenario" field.
func ScenarioEQ ¶
ScenarioEQ applies the EQ predicate on the "scenario" field.
func ScenarioEqualFold ¶
ScenarioEqualFold applies the EqualFold predicate on the "scenario" field.
func ScenarioGT ¶
ScenarioGT applies the GT predicate on the "scenario" field.
func ScenarioGTE ¶
ScenarioGTE applies the GTE predicate on the "scenario" field.
func ScenarioHasPrefix ¶
ScenarioHasPrefix applies the HasPrefix predicate on the "scenario" field.
func ScenarioHasSuffix ¶
ScenarioHasSuffix applies the HasSuffix predicate on the "scenario" field.
func ScenarioIn ¶
ScenarioIn applies the In predicate on the "scenario" field.
func ScenarioLT ¶
ScenarioLT applies the LT predicate on the "scenario" field.
func ScenarioLTE ¶
ScenarioLTE applies the LTE predicate on the "scenario" field.
func ScenarioNEQ ¶
ScenarioNEQ applies the NEQ predicate on the "scenario" field.
func ScenarioNotIn ¶
ScenarioNotIn applies the NotIn predicate on the "scenario" field.
func Scope ¶
Scope applies equality check predicate on the "scope" field. It's identical to ScopeEQ.
func ScopeContains ¶
ScopeContains applies the Contains predicate on the "scope" field.
func ScopeContainsFold ¶
ScopeContainsFold applies the ContainsFold predicate on the "scope" field.
func ScopeEqualFold ¶
ScopeEqualFold applies the EqualFold predicate on the "scope" field.
func ScopeHasPrefix ¶
ScopeHasPrefix applies the HasPrefix predicate on the "scope" field.
func ScopeHasSuffix ¶
ScopeHasSuffix applies the HasSuffix predicate on the "scope" field.
func ScopeNotIn ¶
ScopeNotIn applies the NotIn predicate on the "scope" field.
func Simulated ¶
Simulated applies equality check predicate on the "simulated" field. It's identical to SimulatedEQ.
func SimulatedEQ ¶
SimulatedEQ applies the EQ predicate on the "simulated" field.
func SimulatedNEQ ¶
SimulatedNEQ applies the NEQ predicate on the "simulated" field.
func StartIP ¶
StartIP applies equality check predicate on the "start_ip" field. It's identical to StartIPEQ.
func StartIPGTE ¶
StartIPGTE applies the GTE predicate on the "start_ip" field.
func StartIPIsNil ¶
StartIPIsNil applies the IsNil predicate on the "start_ip" field.
func StartIPLTE ¶
StartIPLTE applies the LTE predicate on the "start_ip" field.
func StartIPNEQ ¶
StartIPNEQ applies the NEQ predicate on the "start_ip" field.
func StartIPNotIn ¶
StartIPNotIn applies the NotIn predicate on the "start_ip" field.
func StartIPNotNil ¶
StartIPNotNil applies the NotNil predicate on the "start_ip" field.
func StartSuffix ¶ added in v1.0.3
StartSuffix applies equality check predicate on the "start_suffix" field. It's identical to StartSuffixEQ.
func StartSuffixEQ ¶ added in v1.0.3
StartSuffixEQ applies the EQ predicate on the "start_suffix" field.
func StartSuffixGT ¶ added in v1.0.3
StartSuffixGT applies the GT predicate on the "start_suffix" field.
func StartSuffixGTE ¶ added in v1.0.3
StartSuffixGTE applies the GTE predicate on the "start_suffix" field.
func StartSuffixIn ¶ added in v1.0.3
StartSuffixIn applies the In predicate on the "start_suffix" field.
func StartSuffixIsNil ¶ added in v1.0.3
StartSuffixIsNil applies the IsNil predicate on the "start_suffix" field.
func StartSuffixLT ¶ added in v1.0.3
StartSuffixLT applies the LT predicate on the "start_suffix" field.
func StartSuffixLTE ¶ added in v1.0.3
StartSuffixLTE applies the LTE predicate on the "start_suffix" field.
func StartSuffixNEQ ¶ added in v1.0.3
StartSuffixNEQ applies the NEQ predicate on the "start_suffix" field.
func StartSuffixNotIn ¶ added in v1.0.3
StartSuffixNotIn applies the NotIn predicate on the "start_suffix" field.
func StartSuffixNotNil ¶ added in v1.0.3
StartSuffixNotNil applies the NotNil predicate on the "start_suffix" 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 Until ¶
Until applies equality check predicate on the "until" field. It's identical to UntilEQ.
func UntilNotIn ¶
UntilNotIn applies the NotIn predicate on the "until" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶ added in v1.3.0
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶ added in v1.3.0
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 Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEqualFold ¶
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueHasPrefix ¶
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
This section is empty.