steprun

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the steprun type in the database.
	Label = "step_run"
	// 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"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldStartedAt holds the string denoting the startedat field in the database.
	FieldStartedAt = "started_at"
	// FieldEndedAt holds the string denoting the endedat field in the database.
	FieldEndedAt = "ended_at"
	// FieldIndex holds the string denoting the index field in the database.
	FieldIndex = "index"
	// FieldParticipantsCount holds the string denoting the participantscount field in the database.
	FieldParticipantsCount = "participants_count"
	// FieldHitID holds the string denoting the hitid field in the database.
	FieldHitID = "hit_id"
	// FieldUrlToken holds the string denoting the urltoken field in the database.
	FieldUrlToken = "url_token"

	// EdgeCreatedParticipants holds the string denoting the createdparticipants edge name in mutations.
	EdgeCreatedParticipants = "createdParticipants"
	// EdgeParticipants holds the string denoting the participants edge name in mutations.
	EdgeParticipants = "participants"
	// EdgeParticipations holds the string denoting the participations edge name in mutations.
	EdgeParticipations = "participations"
	// EdgeStep holds the string denoting the step edge name in mutations.
	EdgeStep = "step"
	// EdgeRun holds the string denoting the run edge name in mutations.
	EdgeRun = "run"

	// Table holds the table name of the steprun in the database.
	Table = "step_runs"
	// CreatedParticipantsTable is the table the holds the createdParticipants relation/edge.
	CreatedParticipantsTable = "participants"
	// CreatedParticipantsInverseTable is the table name for the Participant entity.
	// It exists in this package in order to avoid circular dependency with the "participant" package.
	CreatedParticipantsInverseTable = "participants"
	// CreatedParticipantsColumn is the table column denoting the createdParticipants relation/edge.
	CreatedParticipantsColumn = "step_run_created_participants"
	// ParticipantsTable is the table the holds the participants relation/edge. The primary key declared below.
	ParticipantsTable = "step_run_participants"
	// ParticipantsInverseTable is the table name for the Participant entity.
	// It exists in this package in order to avoid circular dependency with the "participant" package.
	ParticipantsInverseTable = "participants"
	// ParticipationsTable is the table the holds the participations relation/edge.
	ParticipationsTable = "participations"
	// ParticipationsInverseTable is the table name for the Participation entity.
	// It exists in this package in order to avoid circular dependency with the "participation" package.
	ParticipationsInverseTable = "participations"
	// ParticipationsColumn is the table column denoting the participations relation/edge.
	ParticipationsColumn = "step_run_participations"
	// StepTable is the table the holds the step relation/edge.
	StepTable = "steps"
	// StepInverseTable is the table name for the Step entity.
	// It exists in this package in order to avoid circular dependency with the "step" package.
	StepInverseTable = "steps"
	// StepColumn is the table column denoting the step relation/edge.
	StepColumn = "step_run_step"
	// RunTable is the table the holds the run relation/edge.
	RunTable = "step_runs"
	// RunInverseTable is the table name for the Run entity.
	// It exists in this package in order to avoid circular dependency with the "run" package.
	RunInverseTable = "runs"
	// RunColumn is the table column denoting the run relation/edge.
	RunColumn = "run_steps"
)

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
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for steprun fields.

View Source
var ForeignKeys = []string{
	"run_steps",
}

ForeignKeys holds the SQL foreign-keys that are owned by the StepRun type.

View Source
var (
	// ParticipantsPrimaryKey and ParticipantsColumn2 are the table columns denoting the
	// primary key for the participants relation (M2M).
	ParticipantsPrimaryKey = []string{"step_run_id", "participant_id"}
)

Functions

func And

func And(predicates ...predicate.StepRun) predicate.StepRun

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.StepRun

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.StepRun

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.StepRun

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.StepRun

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.StepRun

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.StepRun

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.StepRun

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

func CreatedAtNotIn

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

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

func EndedAt

func EndedAt(v time.Time) predicate.StepRun

EndedAt applies equality check predicate on the "endedAt" field. It's identical to EndedAtEQ.

func EndedAtEQ

func EndedAtEQ(v time.Time) predicate.StepRun

EndedAtEQ applies the EQ predicate on the "endedAt" field.

func EndedAtGT

func EndedAtGT(v time.Time) predicate.StepRun

EndedAtGT applies the GT predicate on the "endedAt" field.

func EndedAtGTE

func EndedAtGTE(v time.Time) predicate.StepRun

EndedAtGTE applies the GTE predicate on the "endedAt" field.

func EndedAtIn

func EndedAtIn(vs ...time.Time) predicate.StepRun

EndedAtIn applies the In predicate on the "endedAt" field.

func EndedAtIsNil

func EndedAtIsNil() predicate.StepRun

EndedAtIsNil applies the IsNil predicate on the "endedAt" field.

func EndedAtLT

func EndedAtLT(v time.Time) predicate.StepRun

EndedAtLT applies the LT predicate on the "endedAt" field.

func EndedAtLTE

func EndedAtLTE(v time.Time) predicate.StepRun

EndedAtLTE applies the LTE predicate on the "endedAt" field.

func EndedAtNEQ

func EndedAtNEQ(v time.Time) predicate.StepRun

EndedAtNEQ applies the NEQ predicate on the "endedAt" field.

func EndedAtNotIn

func EndedAtNotIn(vs ...time.Time) predicate.StepRun

EndedAtNotIn applies the NotIn predicate on the "endedAt" field.

func EndedAtNotNil

func EndedAtNotNil() predicate.StepRun

EndedAtNotNil applies the NotNil predicate on the "endedAt" field.

func HasCreatedParticipants

func HasCreatedParticipants() predicate.StepRun

HasCreatedParticipants applies the HasEdge predicate on the "createdParticipants" edge.

func HasCreatedParticipantsWith

func HasCreatedParticipantsWith(preds ...predicate.Participant) predicate.StepRun

HasCreatedParticipantsWith applies the HasEdge predicate on the "createdParticipants" edge with a given conditions (other predicates).

func HasParticipants

func HasParticipants() predicate.StepRun

HasParticipants applies the HasEdge predicate on the "participants" edge.

func HasParticipantsWith

func HasParticipantsWith(preds ...predicate.Participant) predicate.StepRun

HasParticipantsWith applies the HasEdge predicate on the "participants" edge with a given conditions (other predicates).

func HasParticipations

func HasParticipations() predicate.StepRun

HasParticipations applies the HasEdge predicate on the "participations" edge.

func HasParticipationsWith

func HasParticipationsWith(preds ...predicate.Participation) predicate.StepRun

HasParticipationsWith applies the HasEdge predicate on the "participations" edge with a given conditions (other predicates).

func HasRun

func HasRun() predicate.StepRun

HasRun applies the HasEdge predicate on the "run" edge.

func HasRunWith

func HasRunWith(preds ...predicate.Run) predicate.StepRun

HasRunWith applies the HasEdge predicate on the "run" edge with a given conditions (other predicates).

func HasStep

func HasStep() predicate.StepRun

HasStep applies the HasEdge predicate on the "step" edge.

func HasStepWith

func HasStepWith(preds ...predicate.Step) predicate.StepRun

HasStepWith applies the HasEdge predicate on the "step" edge with a given conditions (other predicates).

func HitID

func HitID(v string) predicate.StepRun

HitID applies equality check predicate on the "hitID" field. It's identical to HitIDEQ.

func HitIDContains

func HitIDContains(v string) predicate.StepRun

HitIDContains applies the Contains predicate on the "hitID" field.

func HitIDContainsFold

func HitIDContainsFold(v string) predicate.StepRun

HitIDContainsFold applies the ContainsFold predicate on the "hitID" field.

func HitIDEQ

func HitIDEQ(v string) predicate.StepRun

HitIDEQ applies the EQ predicate on the "hitID" field.

func HitIDEqualFold

func HitIDEqualFold(v string) predicate.StepRun

HitIDEqualFold applies the EqualFold predicate on the "hitID" field.

func HitIDGT

func HitIDGT(v string) predicate.StepRun

HitIDGT applies the GT predicate on the "hitID" field.

func HitIDGTE

func HitIDGTE(v string) predicate.StepRun

HitIDGTE applies the GTE predicate on the "hitID" field.

func HitIDHasPrefix

func HitIDHasPrefix(v string) predicate.StepRun

HitIDHasPrefix applies the HasPrefix predicate on the "hitID" field.

func HitIDHasSuffix

func HitIDHasSuffix(v string) predicate.StepRun

HitIDHasSuffix applies the HasSuffix predicate on the "hitID" field.

func HitIDIn

func HitIDIn(vs ...string) predicate.StepRun

HitIDIn applies the In predicate on the "hitID" field.

func HitIDIsNil

func HitIDIsNil() predicate.StepRun

HitIDIsNil applies the IsNil predicate on the "hitID" field.

func HitIDLT

func HitIDLT(v string) predicate.StepRun

HitIDLT applies the LT predicate on the "hitID" field.

func HitIDLTE

func HitIDLTE(v string) predicate.StepRun

HitIDLTE applies the LTE predicate on the "hitID" field.

func HitIDNEQ

func HitIDNEQ(v string) predicate.StepRun

HitIDNEQ applies the NEQ predicate on the "hitID" field.

func HitIDNotIn

func HitIDNotIn(vs ...string) predicate.StepRun

HitIDNotIn applies the NotIn predicate on the "hitID" field.

func HitIDNotNil

func HitIDNotNil() predicate.StepRun

HitIDNotNil applies the NotNil predicate on the "hitID" field.

func ID

func ID(id string) predicate.StepRun

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id string) predicate.StepRun

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.StepRun

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.StepRun

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.StepRun

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.StepRun

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.StepRun

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.StepRun

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.StepRun

IDNotIn applies the NotIn predicate on the ID field.

func Index

func Index(v int) predicate.StepRun

Index applies equality check predicate on the "index" field. It's identical to IndexEQ.

func IndexEQ

func IndexEQ(v int) predicate.StepRun

IndexEQ applies the EQ predicate on the "index" field.

func IndexGT

func IndexGT(v int) predicate.StepRun

IndexGT applies the GT predicate on the "index" field.

func IndexGTE

func IndexGTE(v int) predicate.StepRun

IndexGTE applies the GTE predicate on the "index" field.

func IndexIn

func IndexIn(vs ...int) predicate.StepRun

IndexIn applies the In predicate on the "index" field.

func IndexLT

func IndexLT(v int) predicate.StepRun

IndexLT applies the LT predicate on the "index" field.

func IndexLTE

func IndexLTE(v int) predicate.StepRun

IndexLTE applies the LTE predicate on the "index" field.

func IndexNEQ

func IndexNEQ(v int) predicate.StepRun

IndexNEQ applies the NEQ predicate on the "index" field.

func IndexNotIn

func IndexNotIn(vs ...int) predicate.StepRun

IndexNotIn applies the NotIn predicate on the "index" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.StepRun) predicate.StepRun

Or groups list of predicates with the OR operator between them.

func ParticipantsCount

func ParticipantsCount(v int) predicate.StepRun

ParticipantsCount applies equality check predicate on the "participantsCount" field. It's identical to ParticipantsCountEQ.

func ParticipantsCountEQ

func ParticipantsCountEQ(v int) predicate.StepRun

ParticipantsCountEQ applies the EQ predicate on the "participantsCount" field.

func ParticipantsCountGT

func ParticipantsCountGT(v int) predicate.StepRun

ParticipantsCountGT applies the GT predicate on the "participantsCount" field.

func ParticipantsCountGTE

func ParticipantsCountGTE(v int) predicate.StepRun

ParticipantsCountGTE applies the GTE predicate on the "participantsCount" field.

func ParticipantsCountIn

func ParticipantsCountIn(vs ...int) predicate.StepRun

ParticipantsCountIn applies the In predicate on the "participantsCount" field.

func ParticipantsCountLT

func ParticipantsCountLT(v int) predicate.StepRun

ParticipantsCountLT applies the LT predicate on the "participantsCount" field.

func ParticipantsCountLTE

func ParticipantsCountLTE(v int) predicate.StepRun

ParticipantsCountLTE applies the LTE predicate on the "participantsCount" field.

func ParticipantsCountNEQ

func ParticipantsCountNEQ(v int) predicate.StepRun

ParticipantsCountNEQ applies the NEQ predicate on the "participantsCount" field.

func ParticipantsCountNotIn

func ParticipantsCountNotIn(vs ...int) predicate.StepRun

ParticipantsCountNotIn applies the NotIn predicate on the "participantsCount" field.

func StartedAt

func StartedAt(v time.Time) predicate.StepRun

StartedAt applies equality check predicate on the "startedAt" field. It's identical to StartedAtEQ.

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.StepRun

StartedAtEQ applies the EQ predicate on the "startedAt" field.

func StartedAtGT

func StartedAtGT(v time.Time) predicate.StepRun

StartedAtGT applies the GT predicate on the "startedAt" field.

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.StepRun

StartedAtGTE applies the GTE predicate on the "startedAt" field.

func StartedAtIn

func StartedAtIn(vs ...time.Time) predicate.StepRun

StartedAtIn applies the In predicate on the "startedAt" field.

func StartedAtIsNil

func StartedAtIsNil() predicate.StepRun

StartedAtIsNil applies the IsNil predicate on the "startedAt" field.

func StartedAtLT

func StartedAtLT(v time.Time) predicate.StepRun

StartedAtLT applies the LT predicate on the "startedAt" field.

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.StepRun

StartedAtLTE applies the LTE predicate on the "startedAt" field.

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.StepRun

StartedAtNEQ applies the NEQ predicate on the "startedAt" field.

func StartedAtNotIn

func StartedAtNotIn(vs ...time.Time) predicate.StepRun

StartedAtNotIn applies the NotIn predicate on the "startedAt" field.

func StartedAtNotNil

func StartedAtNotNil() predicate.StepRun

StartedAtNotNil applies the NotNil predicate on the "startedAt" field.

func StatusEQ

func StatusEQ(v Status) predicate.StepRun

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

func StatusIn

func StatusIn(vs ...Status) predicate.StepRun

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

func StatusNEQ

func StatusNEQ(v Status) predicate.StepRun

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

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.StepRun

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

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.StepRun

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.StepRun

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.StepRun

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.StepRun

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.StepRun

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.StepRun

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.StepRun

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

func UpdatedAtNotIn

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

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

func UrlToken

func UrlToken(v string) predicate.StepRun

UrlToken applies equality check predicate on the "urlToken" field. It's identical to UrlTokenEQ.

func UrlTokenContains

func UrlTokenContains(v string) predicate.StepRun

UrlTokenContains applies the Contains predicate on the "urlToken" field.

func UrlTokenContainsFold

func UrlTokenContainsFold(v string) predicate.StepRun

UrlTokenContainsFold applies the ContainsFold predicate on the "urlToken" field.

func UrlTokenEQ

func UrlTokenEQ(v string) predicate.StepRun

UrlTokenEQ applies the EQ predicate on the "urlToken" field.

func UrlTokenEqualFold

func UrlTokenEqualFold(v string) predicate.StepRun

UrlTokenEqualFold applies the EqualFold predicate on the "urlToken" field.

func UrlTokenGT

func UrlTokenGT(v string) predicate.StepRun

UrlTokenGT applies the GT predicate on the "urlToken" field.

func UrlTokenGTE

func UrlTokenGTE(v string) predicate.StepRun

UrlTokenGTE applies the GTE predicate on the "urlToken" field.

func UrlTokenHasPrefix

func UrlTokenHasPrefix(v string) predicate.StepRun

UrlTokenHasPrefix applies the HasPrefix predicate on the "urlToken" field.

func UrlTokenHasSuffix

func UrlTokenHasSuffix(v string) predicate.StepRun

UrlTokenHasSuffix applies the HasSuffix predicate on the "urlToken" field.

func UrlTokenIn

func UrlTokenIn(vs ...string) predicate.StepRun

UrlTokenIn applies the In predicate on the "urlToken" field.

func UrlTokenLT

func UrlTokenLT(v string) predicate.StepRun

UrlTokenLT applies the LT predicate on the "urlToken" field.

func UrlTokenLTE

func UrlTokenLTE(v string) predicate.StepRun

UrlTokenLTE applies the LTE predicate on the "urlToken" field.

func UrlTokenNEQ

func UrlTokenNEQ(v string) predicate.StepRun

UrlTokenNEQ applies the NEQ predicate on the "urlToken" field.

func UrlTokenNotIn

func UrlTokenNotIn(vs ...string) predicate.StepRun

UrlTokenNotIn applies the NotIn predicate on the "urlToken" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Status

type Status string

Status defines the type for the status enum field.

const (
	StatusCREATED    Status = "CREATED"
	StatusRUNNING    Status = "RUNNING"
	StatusPAUSED     Status = "PAUSED"
	StatusDONE       Status = "DONE"
	StatusTERMINATED Status = "TERMINATED"
	StatusFAILED     Status = "FAILED"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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