Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.History) predicate.History
- func CreatedAt(v time.Time) predicate.History
- func CreatedAtEQ(v time.Time) predicate.History
- func CreatedAtGT(v time.Time) predicate.History
- func CreatedAtGTE(v time.Time) predicate.History
- func CreatedAtIn(vs ...time.Time) predicate.History
- func CreatedAtLT(v time.Time) predicate.History
- func CreatedAtLTE(v time.Time) predicate.History
- func CreatedAtNEQ(v time.Time) predicate.History
- func CreatedAtNotIn(vs ...time.Time) predicate.History
- func Duration(v int) predicate.History
- func DurationEQ(v int) predicate.History
- func DurationGT(v int) predicate.History
- func DurationGTE(v int) predicate.History
- func DurationIn(vs ...int) predicate.History
- func DurationLT(v int) predicate.History
- func DurationLTE(v int) predicate.History
- func DurationNEQ(v int) predicate.History
- func DurationNotIn(vs ...int) predicate.History
- func ExitCode(v int) predicate.History
- func ExitCodeEQ(v int) predicate.History
- func ExitCodeGT(v int) predicate.History
- func ExitCodeGTE(v int) predicate.History
- func ExitCodeIn(vs ...int) predicate.History
- func ExitCodeLT(v int) predicate.History
- func ExitCodeLTE(v int) predicate.History
- func ExitCodeNEQ(v int) predicate.History
- func ExitCodeNotIn(vs ...int) predicate.History
- func ID(id int) predicate.History
- func IDEQ(id int) predicate.History
- func IDGT(id int) predicate.History
- func IDGTE(id int) predicate.History
- func IDIn(ids ...int) predicate.History
- func IDLT(id int) predicate.History
- func IDLTE(id int) predicate.History
- func IDNEQ(id int) predicate.History
- func IDNotIn(ids ...int) predicate.History
- func Not(p predicate.History) predicate.History
- func Or(predicates ...predicate.History) predicate.History
- func Output(v string) predicate.History
- func OutputContains(v string) predicate.History
- func OutputContainsFold(v string) predicate.History
- func OutputEQ(v string) predicate.History
- func OutputEqualFold(v string) predicate.History
- func OutputGT(v string) predicate.History
- func OutputGTE(v string) predicate.History
- func OutputHasPrefix(v string) predicate.History
- func OutputHasSuffix(v string) predicate.History
- func OutputIn(vs ...string) predicate.History
- func OutputLT(v string) predicate.History
- func OutputLTE(v string) predicate.History
- func OutputNEQ(v string) predicate.History
- func OutputNotIn(vs ...string) predicate.History
- func RunID(v string) predicate.History
- func RunIDContains(v string) predicate.History
- func RunIDContainsFold(v string) predicate.History
- func RunIDEQ(v string) predicate.History
- func RunIDEqualFold(v string) predicate.History
- func RunIDGT(v string) predicate.History
- func RunIDGTE(v string) predicate.History
- func RunIDHasPrefix(v string) predicate.History
- func RunIDHasSuffix(v string) predicate.History
- func RunIDIn(vs ...string) predicate.History
- func RunIDLT(v string) predicate.History
- func RunIDLTE(v string) predicate.History
- func RunIDNEQ(v string) predicate.History
- func RunIDNotIn(vs ...string) predicate.History
- func ScriptID(v int) predicate.History
- func ScriptIDEQ(v int) predicate.History
- func ScriptIDGT(v int) predicate.History
- func ScriptIDGTE(v int) predicate.History
- func ScriptIDIn(vs ...int) predicate.History
- func ScriptIDLT(v int) predicate.History
- func ScriptIDLTE(v int) predicate.History
- func ScriptIDNEQ(v int) predicate.History
- func ScriptIDNotIn(vs ...int) predicate.History
- func Status(v string) predicate.History
- func StatusContains(v string) predicate.History
- func StatusContainsFold(v string) predicate.History
- func StatusEQ(v string) predicate.History
- func StatusEqualFold(v string) predicate.History
- func StatusGT(v string) predicate.History
- func StatusGTE(v string) predicate.History
- func StatusHasPrefix(v string) predicate.History
- func StatusHasSuffix(v string) predicate.History
- func StatusIn(vs ...string) predicate.History
- func StatusLT(v string) predicate.History
- func StatusLTE(v string) predicate.History
- func StatusNEQ(v string) predicate.History
- func StatusNotIn(vs ...string) predicate.History
- func Success(v bool) predicate.History
- func SuccessEQ(v bool) predicate.History
- func SuccessNEQ(v bool) predicate.History
- func Trigger(v string) predicate.History
- func TriggerContains(v string) predicate.History
- func TriggerContainsFold(v string) predicate.History
- func TriggerEQ(v string) predicate.History
- func TriggerEqualFold(v string) predicate.History
- func TriggerGT(v string) predicate.History
- func TriggerGTE(v string) predicate.History
- func TriggerHasPrefix(v string) predicate.History
- func TriggerHasSuffix(v string) predicate.History
- func TriggerIn(vs ...string) predicate.History
- func TriggerLT(v string) predicate.History
- func TriggerLTE(v string) predicate.History
- func TriggerNEQ(v string) predicate.History
- func TriggerNotIn(vs ...string) predicate.History
- func TriggeredBy(v string) predicate.History
- func TriggeredByContains(v string) predicate.History
- func TriggeredByContainsFold(v string) predicate.History
- func TriggeredByEQ(v string) predicate.History
- func TriggeredByEqualFold(v string) predicate.History
- func TriggeredByGT(v string) predicate.History
- func TriggeredByGTE(v string) predicate.History
- func TriggeredByHasPrefix(v string) predicate.History
- func TriggeredByHasSuffix(v string) predicate.History
- func TriggeredByIn(vs ...string) predicate.History
- func TriggeredByLT(v string) predicate.History
- func TriggeredByLTE(v string) predicate.History
- func TriggeredByNEQ(v string) predicate.History
- func TriggeredByNotIn(vs ...string) predicate.History
- func UpdatedAt(v time.Time) predicate.History
- func UpdatedAtEQ(v time.Time) predicate.History
- func UpdatedAtGT(v time.Time) predicate.History
- func UpdatedAtGTE(v time.Time) predicate.History
- func UpdatedAtIn(vs ...time.Time) predicate.History
- func UpdatedAtLT(v time.Time) predicate.History
- func UpdatedAtLTE(v time.Time) predicate.History
- func UpdatedAtNEQ(v time.Time) predicate.History
- func UpdatedAtNotIn(vs ...time.Time) predicate.History
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDuration(opts ...sql.OrderTermOption) OrderOption
- func ByExitCode(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOutput(opts ...sql.OrderTermOption) OrderOption
- func ByRunID(opts ...sql.OrderTermOption) OrderOption
- func ByScriptID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func BySuccess(opts ...sql.OrderTermOption) OrderOption
- func ByTrigger(opts ...sql.OrderTermOption) OrderOption
- func ByTriggeredBy(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the history type in the database. Label = "history" // 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" // FieldRunID holds the string denoting the run_id field in the database. FieldRunID = "run_id" // FieldSuccess holds the string denoting the success field in the database. FieldSuccess = "success" // FieldExitCode holds the string denoting the exit_code field in the database. FieldExitCode = "exit_code" // FieldDuration holds the string denoting the duration field in the database. FieldDuration = "duration" // FieldTrigger holds the string denoting the trigger field in the database. FieldTrigger = "trigger" // FieldOutput holds the string denoting the output field in the database. FieldOutput = "output" // FieldTriggeredBy holds the string denoting the triggered_by field in the database. FieldTriggeredBy = "triggered_by" // FieldScriptID holds the string denoting the script_id field in the database. FieldScriptID = "script_id" // FieldArguments holds the string denoting the arguments field in the database. FieldArguments = "arguments" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // Table holds the table name of the history in the database. Table = "histories" )
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 // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldRunID, FieldSuccess, FieldExitCode, FieldDuration, FieldTrigger, FieldOutput, FieldTriggeredBy, FieldScriptID, FieldArguments, FieldStatus, }
Columns holds all SQL columns for history fields.
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 ExitCode ¶
ExitCode applies equality check predicate on the "exit_code" field. It's identical to ExitCodeEQ.
func ExitCodeEQ ¶
ExitCodeEQ applies the EQ predicate on the "exit_code" field.
func ExitCodeGT ¶
ExitCodeGT applies the GT predicate on the "exit_code" field.
func ExitCodeGTE ¶
ExitCodeGTE applies the GTE predicate on the "exit_code" field.
func ExitCodeIn ¶
ExitCodeIn applies the In predicate on the "exit_code" field.
func ExitCodeLT ¶
ExitCodeLT applies the LT predicate on the "exit_code" field.
func ExitCodeLTE ¶
ExitCodeLTE applies the LTE predicate on the "exit_code" field.
func ExitCodeNEQ ¶
ExitCodeNEQ applies the NEQ predicate on the "exit_code" field.
func ExitCodeNotIn ¶
ExitCodeNotIn applies the NotIn predicate on the "exit_code" field.
func Output ¶
Output applies equality check predicate on the "output" field. It's identical to OutputEQ.
func OutputContains ¶
OutputContains applies the Contains predicate on the "output" field.
func OutputContainsFold ¶
OutputContainsFold applies the ContainsFold predicate on the "output" field.
func OutputEqualFold ¶
OutputEqualFold applies the EqualFold predicate on the "output" field.
func OutputHasPrefix ¶
OutputHasPrefix applies the HasPrefix predicate on the "output" field.
func OutputHasSuffix ¶
OutputHasSuffix applies the HasSuffix predicate on the "output" field.
func OutputNotIn ¶
OutputNotIn applies the NotIn predicate on the "output" field.
func RunID ¶
RunID applies equality check predicate on the "run_id" field. It's identical to RunIDEQ.
func RunIDContains ¶
RunIDContains applies the Contains predicate on the "run_id" field.
func RunIDContainsFold ¶
RunIDContainsFold applies the ContainsFold predicate on the "run_id" field.
func RunIDEqualFold ¶
RunIDEqualFold applies the EqualFold predicate on the "run_id" field.
func RunIDHasPrefix ¶
RunIDHasPrefix applies the HasPrefix predicate on the "run_id" field.
func RunIDHasSuffix ¶
RunIDHasSuffix applies the HasSuffix predicate on the "run_id" field.
func RunIDNotIn ¶
RunIDNotIn applies the NotIn predicate on the "run_id" field.
func ScriptID ¶
ScriptID applies equality check predicate on the "script_id" field. It's identical to ScriptIDEQ.
func ScriptIDEQ ¶
ScriptIDEQ applies the EQ predicate on the "script_id" field.
func ScriptIDGT ¶
ScriptIDGT applies the GT predicate on the "script_id" field.
func ScriptIDGTE ¶
ScriptIDGTE applies the GTE predicate on the "script_id" field.
func ScriptIDIn ¶
ScriptIDIn applies the In predicate on the "script_id" field.
func ScriptIDLT ¶
ScriptIDLT applies the LT predicate on the "script_id" field.
func ScriptIDLTE ¶
ScriptIDLTE applies the LTE predicate on the "script_id" field.
func ScriptIDNEQ ¶
ScriptIDNEQ applies the NEQ predicate on the "script_id" field.
func ScriptIDNotIn ¶
ScriptIDNotIn applies the NotIn predicate on the "script_id" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func Success ¶
Success applies equality check predicate on the "success" field. It's identical to SuccessEQ.
func SuccessNEQ ¶
SuccessNEQ applies the NEQ predicate on the "success" field.
func Trigger ¶
Trigger applies equality check predicate on the "trigger" field. It's identical to TriggerEQ.
func TriggerContains ¶
TriggerContains applies the Contains predicate on the "trigger" field.
func TriggerContainsFold ¶
TriggerContainsFold applies the ContainsFold predicate on the "trigger" field.
func TriggerEqualFold ¶
TriggerEqualFold applies the EqualFold predicate on the "trigger" field.
func TriggerGTE ¶
TriggerGTE applies the GTE predicate on the "trigger" field.
func TriggerHasPrefix ¶
TriggerHasPrefix applies the HasPrefix predicate on the "trigger" field.
func TriggerHasSuffix ¶
TriggerHasSuffix applies the HasSuffix predicate on the "trigger" field.
func TriggerLTE ¶
TriggerLTE applies the LTE predicate on the "trigger" field.
func TriggerNEQ ¶
TriggerNEQ applies the NEQ predicate on the "trigger" field.
func TriggerNotIn ¶
TriggerNotIn applies the NotIn predicate on the "trigger" field.
func TriggeredBy ¶
TriggeredBy applies equality check predicate on the "triggered_by" field. It's identical to TriggeredByEQ.
func TriggeredByContains ¶
TriggeredByContains applies the Contains predicate on the "triggered_by" field.
func TriggeredByContainsFold ¶
TriggeredByContainsFold applies the ContainsFold predicate on the "triggered_by" field.
func TriggeredByEQ ¶
TriggeredByEQ applies the EQ predicate on the "triggered_by" field.
func TriggeredByEqualFold ¶
TriggeredByEqualFold applies the EqualFold predicate on the "triggered_by" field.
func TriggeredByGT ¶
TriggeredByGT applies the GT predicate on the "triggered_by" field.
func TriggeredByGTE ¶
TriggeredByGTE applies the GTE predicate on the "triggered_by" field.
func TriggeredByHasPrefix ¶
TriggeredByHasPrefix applies the HasPrefix predicate on the "triggered_by" field.
func TriggeredByHasSuffix ¶
TriggeredByHasSuffix applies the HasSuffix predicate on the "triggered_by" field.
func TriggeredByIn ¶
TriggeredByIn applies the In predicate on the "triggered_by" field.
func TriggeredByLT ¶
TriggeredByLT applies the LT predicate on the "triggered_by" field.
func TriggeredByLTE ¶
TriggeredByLTE applies the LTE predicate on the "triggered_by" field.
func TriggeredByNEQ ¶
TriggeredByNEQ applies the NEQ predicate on the "triggered_by" field.
func TriggeredByNotIn ¶
TriggeredByNotIn applies the NotIn predicate on the "triggered_by" 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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the History queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDuration ¶
func ByDuration(opts ...sql.OrderTermOption) OrderOption
ByDuration orders the results by the duration field.
func ByExitCode ¶
func ByExitCode(opts ...sql.OrderTermOption) OrderOption
ByExitCode orders the results by the exit_code field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOutput ¶
func ByOutput(opts ...sql.OrderTermOption) OrderOption
ByOutput orders the results by the output field.
func ByRunID ¶
func ByRunID(opts ...sql.OrderTermOption) OrderOption
ByRunID orders the results by the run_id field.
func ByScriptID ¶
func ByScriptID(opts ...sql.OrderTermOption) OrderOption
ByScriptID orders the results by the script_id field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func BySuccess ¶
func BySuccess(opts ...sql.OrderTermOption) OrderOption
BySuccess orders the results by the success field.
func ByTrigger ¶
func ByTrigger(opts ...sql.OrderTermOption) OrderOption
ByTrigger orders the results by the trigger field.
func ByTriggeredBy ¶
func ByTriggeredBy(opts ...sql.OrderTermOption) OrderOption
ByTriggeredBy orders the results by the triggered_by field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.