Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Step) predicate.Step
- func CreatedAt(v time.Time) predicate.Step
- func CreatedAtEQ(v time.Time) predicate.Step
- func CreatedAtGT(v time.Time) predicate.Step
- func CreatedAtGTE(v time.Time) predicate.Step
- func CreatedAtIn(vs ...time.Time) predicate.Step
- func CreatedAtLT(v time.Time) predicate.Step
- func CreatedAtLTE(v time.Time) predicate.Step
- func CreatedAtNEQ(v time.Time) predicate.Step
- func CreatedAtNotIn(vs ...time.Time) predicate.Step
- func Duration(v int) predicate.Step
- func DurationEQ(v int) predicate.Step
- func DurationGT(v int) predicate.Step
- func DurationGTE(v int) predicate.Step
- func DurationIn(vs ...int) predicate.Step
- func DurationLT(v int) predicate.Step
- func DurationLTE(v int) predicate.Step
- func DurationNEQ(v int) predicate.Step
- func DurationNotIn(vs ...int) predicate.Step
- func FilterArgsIsNil() predicate.Step
- func FilterArgsNotNil() predicate.Step
- func HasStepRun() predicate.Step
- func HasStepRunWith(preds ...predicate.StepRun) predicate.Step
- func HasTemplate() predicate.Step
- func HasTemplateWith(preds ...predicate.Template) predicate.Step
- func HitArgsIsNil() predicate.Step
- func HitArgsNotNil() predicate.Step
- func ID(id string) predicate.Step
- func IDEQ(id string) predicate.Step
- func IDGT(id string) predicate.Step
- func IDGTE(id string) predicate.Step
- func IDIn(ids ...string) predicate.Step
- func IDLT(id string) predicate.Step
- func IDLTE(id string) predicate.Step
- func IDNEQ(id string) predicate.Step
- func IDNotIn(ids ...string) predicate.Step
- func Index(v int) predicate.Step
- func IndexEQ(v int) predicate.Step
- func IndexGT(v int) predicate.Step
- func IndexGTE(v int) predicate.Step
- func IndexIn(vs ...int) predicate.Step
- func IndexLT(v int) predicate.Step
- func IndexLTE(v int) predicate.Step
- func IndexNEQ(v int) predicate.Step
- func IndexNotIn(vs ...int) predicate.Step
- func MsgArgsIsNil() predicate.Step
- func MsgArgsNotNil() predicate.Step
- func Not(p predicate.Step) predicate.Step
- func Or(predicates ...predicate.Step) predicate.Step
- func TypeEQ(v Type) predicate.Step
- func TypeIn(vs ...Type) predicate.Step
- func TypeNEQ(v Type) predicate.Step
- func TypeNotIn(vs ...Type) predicate.Step
- func TypeValidator(_type Type) error
- func UpdatedAt(v time.Time) predicate.Step
- func UpdatedAtEQ(v time.Time) predicate.Step
- func UpdatedAtGT(v time.Time) predicate.Step
- func UpdatedAtGTE(v time.Time) predicate.Step
- func UpdatedAtIn(vs ...time.Time) predicate.Step
- func UpdatedAtLT(v time.Time) predicate.Step
- func UpdatedAtLTE(v time.Time) predicate.Step
- func UpdatedAtNEQ(v time.Time) predicate.Step
- func UpdatedAtNotIn(vs ...time.Time) predicate.Step
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the step type in the database. Label = "step" // 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" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldIndex holds the string denoting the index field in the database. FieldIndex = "index" // FieldDuration holds the string denoting the duration field in the database. FieldDuration = "duration" // FieldMsgArgs holds the string denoting the msgargs field in the database. FieldMsgArgs = "msg_args" // FieldHitArgs holds the string denoting the hitargs field in the database. FieldHitArgs = "hit_args" // FieldFilterArgs holds the string denoting the filterargs field in the database. FieldFilterArgs = "filter_args" // EdgeStepRun holds the string denoting the steprun edge name in mutations. EdgeStepRun = "stepRun" // EdgeTemplate holds the string denoting the template edge name in mutations. EdgeTemplate = "template" // Table holds the table name of the step in the database. Table = "steps" // StepRunTable is the table the holds the stepRun relation/edge. StepRunTable = "steps" // StepRunInverseTable is the table name for the StepRun entity. // It exists in this package in order to avoid circular dependency with the "steprun" package. StepRunInverseTable = "step_runs" // StepRunColumn is the table column denoting the stepRun relation/edge. StepRunColumn = "step_run_step" // TemplateTable is the table the holds the template relation/edge. TemplateTable = "steps" // TemplateInverseTable is the table name for the Template entity. // It exists in this package in order to avoid circular dependency with the "template" package. TemplateInverseTable = "templates" // TemplateColumn is the table column denoting the template relation/edge. TemplateColumn = "template_steps" )
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 // UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. UpdateDefaultUpdatedAt func() time.Time // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldType, FieldIndex, FieldDuration, FieldMsgArgs, FieldHitArgs, FieldFilterArgs, }
Columns holds all SQL columns for step fields.
var ForeignKeys = []string{
"step_run_step",
"template_steps",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Step 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 Duration ¶
Duration applies equality check predicate on the "duration" field. It's identical to DurationEQ.
func DurationEQ ¶
DurationEQ applies the EQ predicate on the "duration" field.
func DurationGT ¶
DurationGT applies the GT predicate on the "duration" field.
func DurationGTE ¶
DurationGTE applies the GTE predicate on the "duration" field.
func DurationIn ¶
DurationIn applies the In predicate on the "duration" field.
func DurationLT ¶
DurationLT applies the LT predicate on the "duration" field.
func DurationLTE ¶
DurationLTE applies the LTE predicate on the "duration" field.
func DurationNEQ ¶
DurationNEQ applies the NEQ predicate on the "duration" field.
func DurationNotIn ¶
DurationNotIn applies the NotIn predicate on the "duration" field.
func FilterArgsIsNil ¶
FilterArgsIsNil applies the IsNil predicate on the "filterArgs" field.
func FilterArgsNotNil ¶
FilterArgsNotNil applies the NotNil predicate on the "filterArgs" field.
func HasStepRun ¶
HasStepRun applies the HasEdge predicate on the "stepRun" edge.
func HasStepRunWith ¶
HasStepRunWith applies the HasEdge predicate on the "stepRun" edge with a given conditions (other predicates).
func HasTemplate ¶
HasTemplate applies the HasEdge predicate on the "template" edge.
func HasTemplateWith ¶
HasTemplateWith applies the HasEdge predicate on the "template" edge with a given conditions (other predicates).
func HitArgsIsNil ¶
HitArgsIsNil applies the IsNil predicate on the "hitArgs" field.
func HitArgsNotNil ¶
HitArgsNotNil applies the NotNil predicate on the "hitArgs" field.
func Index ¶
Index applies equality check predicate on the "index" field. It's identical to IndexEQ.
func IndexNotIn ¶
IndexNotIn applies the NotIn predicate on the "index" field.
func MsgArgsIsNil ¶
MsgArgsIsNil applies the IsNil predicate on the "msgArgs" field.
func MsgArgsNotNil ¶
MsgArgsNotNil applies the NotNil predicate on the "msgArgs" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
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).