history

package
v0.0.0-...-83e02d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for history fields.

Functions

func And

func And(predicates ...predicate.History) predicate.History

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.History

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.History

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.History

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.History

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.History

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.History

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.History

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.History

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.History

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Duration

func Duration(v int) predicate.History

Duration applies equality check predicate on the "duration" field. It's identical to DurationEQ.

func DurationEQ

func DurationEQ(v int) predicate.History

DurationEQ applies the EQ predicate on the "duration" field.

func DurationGT

func DurationGT(v int) predicate.History

DurationGT applies the GT predicate on the "duration" field.

func DurationGTE

func DurationGTE(v int) predicate.History

DurationGTE applies the GTE predicate on the "duration" field.

func DurationIn

func DurationIn(vs ...int) predicate.History

DurationIn applies the In predicate on the "duration" field.

func DurationLT

func DurationLT(v int) predicate.History

DurationLT applies the LT predicate on the "duration" field.

func DurationLTE

func DurationLTE(v int) predicate.History

DurationLTE applies the LTE predicate on the "duration" field.

func DurationNEQ

func DurationNEQ(v int) predicate.History

DurationNEQ applies the NEQ predicate on the "duration" field.

func DurationNotIn

func DurationNotIn(vs ...int) predicate.History

DurationNotIn applies the NotIn predicate on the "duration" field.

func ExitCode

func ExitCode(v int) predicate.History

ExitCode applies equality check predicate on the "exit_code" field. It's identical to ExitCodeEQ.

func ExitCodeEQ

func ExitCodeEQ(v int) predicate.History

ExitCodeEQ applies the EQ predicate on the "exit_code" field.

func ExitCodeGT

func ExitCodeGT(v int) predicate.History

ExitCodeGT applies the GT predicate on the "exit_code" field.

func ExitCodeGTE

func ExitCodeGTE(v int) predicate.History

ExitCodeGTE applies the GTE predicate on the "exit_code" field.

func ExitCodeIn

func ExitCodeIn(vs ...int) predicate.History

ExitCodeIn applies the In predicate on the "exit_code" field.

func ExitCodeLT

func ExitCodeLT(v int) predicate.History

ExitCodeLT applies the LT predicate on the "exit_code" field.

func ExitCodeLTE

func ExitCodeLTE(v int) predicate.History

ExitCodeLTE applies the LTE predicate on the "exit_code" field.

func ExitCodeNEQ

func ExitCodeNEQ(v int) predicate.History

ExitCodeNEQ applies the NEQ predicate on the "exit_code" field.

func ExitCodeNotIn

func ExitCodeNotIn(vs ...int) predicate.History

ExitCodeNotIn applies the NotIn predicate on the "exit_code" field.

func ID

func ID(id int) predicate.History

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.History

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.History

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.History

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.History

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.History

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.History

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.History

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.History

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.History) predicate.History

Or groups predicates with the OR operator between them.

func Output

func Output(v string) predicate.History

Output applies equality check predicate on the "output" field. It's identical to OutputEQ.

func OutputContains

func OutputContains(v string) predicate.History

OutputContains applies the Contains predicate on the "output" field.

func OutputContainsFold

func OutputContainsFold(v string) predicate.History

OutputContainsFold applies the ContainsFold predicate on the "output" field.

func OutputEQ

func OutputEQ(v string) predicate.History

OutputEQ applies the EQ predicate on the "output" field.

func OutputEqualFold

func OutputEqualFold(v string) predicate.History

OutputEqualFold applies the EqualFold predicate on the "output" field.

func OutputGT

func OutputGT(v string) predicate.History

OutputGT applies the GT predicate on the "output" field.

func OutputGTE

func OutputGTE(v string) predicate.History

OutputGTE applies the GTE predicate on the "output" field.

func OutputHasPrefix

func OutputHasPrefix(v string) predicate.History

OutputHasPrefix applies the HasPrefix predicate on the "output" field.

func OutputHasSuffix

func OutputHasSuffix(v string) predicate.History

OutputHasSuffix applies the HasSuffix predicate on the "output" field.

func OutputIn

func OutputIn(vs ...string) predicate.History

OutputIn applies the In predicate on the "output" field.

func OutputLT

func OutputLT(v string) predicate.History

OutputLT applies the LT predicate on the "output" field.

func OutputLTE

func OutputLTE(v string) predicate.History

OutputLTE applies the LTE predicate on the "output" field.

func OutputNEQ

func OutputNEQ(v string) predicate.History

OutputNEQ applies the NEQ predicate on the "output" field.

func OutputNotIn

func OutputNotIn(vs ...string) predicate.History

OutputNotIn applies the NotIn predicate on the "output" field.

func RunID

func RunID(v string) predicate.History

RunID applies equality check predicate on the "run_id" field. It's identical to RunIDEQ.

func RunIDContains

func RunIDContains(v string) predicate.History

RunIDContains applies the Contains predicate on the "run_id" field.

func RunIDContainsFold

func RunIDContainsFold(v string) predicate.History

RunIDContainsFold applies the ContainsFold predicate on the "run_id" field.

func RunIDEQ

func RunIDEQ(v string) predicate.History

RunIDEQ applies the EQ predicate on the "run_id" field.

func RunIDEqualFold

func RunIDEqualFold(v string) predicate.History

RunIDEqualFold applies the EqualFold predicate on the "run_id" field.

func RunIDGT

func RunIDGT(v string) predicate.History

RunIDGT applies the GT predicate on the "run_id" field.

func RunIDGTE

func RunIDGTE(v string) predicate.History

RunIDGTE applies the GTE predicate on the "run_id" field.

func RunIDHasPrefix

func RunIDHasPrefix(v string) predicate.History

RunIDHasPrefix applies the HasPrefix predicate on the "run_id" field.

func RunIDHasSuffix

func RunIDHasSuffix(v string) predicate.History

RunIDHasSuffix applies the HasSuffix predicate on the "run_id" field.

func RunIDIn

func RunIDIn(vs ...string) predicate.History

RunIDIn applies the In predicate on the "run_id" field.

func RunIDLT

func RunIDLT(v string) predicate.History

RunIDLT applies the LT predicate on the "run_id" field.

func RunIDLTE

func RunIDLTE(v string) predicate.History

RunIDLTE applies the LTE predicate on the "run_id" field.

func RunIDNEQ

func RunIDNEQ(v string) predicate.History

RunIDNEQ applies the NEQ predicate on the "run_id" field.

func RunIDNotIn

func RunIDNotIn(vs ...string) predicate.History

RunIDNotIn applies the NotIn predicate on the "run_id" field.

func ScriptID

func ScriptID(v int) predicate.History

ScriptID applies equality check predicate on the "script_id" field. It's identical to ScriptIDEQ.

func ScriptIDEQ

func ScriptIDEQ(v int) predicate.History

ScriptIDEQ applies the EQ predicate on the "script_id" field.

func ScriptIDGT

func ScriptIDGT(v int) predicate.History

ScriptIDGT applies the GT predicate on the "script_id" field.

func ScriptIDGTE

func ScriptIDGTE(v int) predicate.History

ScriptIDGTE applies the GTE predicate on the "script_id" field.

func ScriptIDIn

func ScriptIDIn(vs ...int) predicate.History

ScriptIDIn applies the In predicate on the "script_id" field.

func ScriptIDLT

func ScriptIDLT(v int) predicate.History

ScriptIDLT applies the LT predicate on the "script_id" field.

func ScriptIDLTE

func ScriptIDLTE(v int) predicate.History

ScriptIDLTE applies the LTE predicate on the "script_id" field.

func ScriptIDNEQ

func ScriptIDNEQ(v int) predicate.History

ScriptIDNEQ applies the NEQ predicate on the "script_id" field.

func ScriptIDNotIn

func ScriptIDNotIn(vs ...int) predicate.History

ScriptIDNotIn applies the NotIn predicate on the "script_id" field.

func Status

func Status(v string) predicate.History

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.History

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.History

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.History

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.History

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.History

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.History

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.History

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.History

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.History

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.History

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.History

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.History

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.History

StatusNotIn applies the NotIn predicate on the "status" field.

func Success

func Success(v bool) predicate.History

Success applies equality check predicate on the "success" field. It's identical to SuccessEQ.

func SuccessEQ

func SuccessEQ(v bool) predicate.History

SuccessEQ applies the EQ predicate on the "success" field.

func SuccessNEQ

func SuccessNEQ(v bool) predicate.History

SuccessNEQ applies the NEQ predicate on the "success" field.

func Trigger

func Trigger(v string) predicate.History

Trigger applies equality check predicate on the "trigger" field. It's identical to TriggerEQ.

func TriggerContains

func TriggerContains(v string) predicate.History

TriggerContains applies the Contains predicate on the "trigger" field.

func TriggerContainsFold

func TriggerContainsFold(v string) predicate.History

TriggerContainsFold applies the ContainsFold predicate on the "trigger" field.

func TriggerEQ

func TriggerEQ(v string) predicate.History

TriggerEQ applies the EQ predicate on the "trigger" field.

func TriggerEqualFold

func TriggerEqualFold(v string) predicate.History

TriggerEqualFold applies the EqualFold predicate on the "trigger" field.

func TriggerGT

func TriggerGT(v string) predicate.History

TriggerGT applies the GT predicate on the "trigger" field.

func TriggerGTE

func TriggerGTE(v string) predicate.History

TriggerGTE applies the GTE predicate on the "trigger" field.

func TriggerHasPrefix

func TriggerHasPrefix(v string) predicate.History

TriggerHasPrefix applies the HasPrefix predicate on the "trigger" field.

func TriggerHasSuffix

func TriggerHasSuffix(v string) predicate.History

TriggerHasSuffix applies the HasSuffix predicate on the "trigger" field.

func TriggerIn

func TriggerIn(vs ...string) predicate.History

TriggerIn applies the In predicate on the "trigger" field.

func TriggerLT

func TriggerLT(v string) predicate.History

TriggerLT applies the LT predicate on the "trigger" field.

func TriggerLTE

func TriggerLTE(v string) predicate.History

TriggerLTE applies the LTE predicate on the "trigger" field.

func TriggerNEQ

func TriggerNEQ(v string) predicate.History

TriggerNEQ applies the NEQ predicate on the "trigger" field.

func TriggerNotIn

func TriggerNotIn(vs ...string) predicate.History

TriggerNotIn applies the NotIn predicate on the "trigger" field.

func TriggeredBy

func TriggeredBy(v string) predicate.History

TriggeredBy applies equality check predicate on the "triggered_by" field. It's identical to TriggeredByEQ.

func TriggeredByContains

func TriggeredByContains(v string) predicate.History

TriggeredByContains applies the Contains predicate on the "triggered_by" field.

func TriggeredByContainsFold

func TriggeredByContainsFold(v string) predicate.History

TriggeredByContainsFold applies the ContainsFold predicate on the "triggered_by" field.

func TriggeredByEQ

func TriggeredByEQ(v string) predicate.History

TriggeredByEQ applies the EQ predicate on the "triggered_by" field.

func TriggeredByEqualFold

func TriggeredByEqualFold(v string) predicate.History

TriggeredByEqualFold applies the EqualFold predicate on the "triggered_by" field.

func TriggeredByGT

func TriggeredByGT(v string) predicate.History

TriggeredByGT applies the GT predicate on the "triggered_by" field.

func TriggeredByGTE

func TriggeredByGTE(v string) predicate.History

TriggeredByGTE applies the GTE predicate on the "triggered_by" field.

func TriggeredByHasPrefix

func TriggeredByHasPrefix(v string) predicate.History

TriggeredByHasPrefix applies the HasPrefix predicate on the "triggered_by" field.

func TriggeredByHasSuffix

func TriggeredByHasSuffix(v string) predicate.History

TriggeredByHasSuffix applies the HasSuffix predicate on the "triggered_by" field.

func TriggeredByIn

func TriggeredByIn(vs ...string) predicate.History

TriggeredByIn applies the In predicate on the "triggered_by" field.

func TriggeredByLT

func TriggeredByLT(v string) predicate.History

TriggeredByLT applies the LT predicate on the "triggered_by" field.

func TriggeredByLTE

func TriggeredByLTE(v string) predicate.History

TriggeredByLTE applies the LTE predicate on the "triggered_by" field.

func TriggeredByNEQ

func TriggeredByNEQ(v string) predicate.History

TriggeredByNEQ applies the NEQ predicate on the "triggered_by" field.

func TriggeredByNotIn

func TriggeredByNotIn(vs ...string) predicate.History

TriggeredByNotIn applies the NotIn predicate on the "triggered_by" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.History

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.History

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.History

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.History

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.History

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.History

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.History

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.History

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.History

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL