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 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 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 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 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 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 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 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" // 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 the 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 // DefaultUpdatedAt holds the default value on creation for the updated_at field. DefaultUpdatedAt 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, 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 Decision type.
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 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 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 HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
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 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 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 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.