Help us shape the future of Go! Take the 2026 Go Developer Survey

schedule

package
v1.97.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the schedule type in the database.
	Label = "schedule"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "set_name"
	// FieldAgentID holds the string denoting the agent_id field in the database.
	FieldAgentID = "agent_id"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldLongestGap holds the string denoting the longest_gap field in the database.
	FieldLongestGap = "longest_gap"
	// FieldJitter holds the string denoting the jitter field in the database.
	FieldJitter = "jitter"
	// FieldCommitEvery holds the string denoting the commit_every field in the database.
	FieldCommitEvery = "commit_every"
	// FieldSince holds the string denoting the since field in the database.
	FieldSince = "since"
	// FieldReportedAt holds the string denoting the reported_at field in the database.
	FieldReportedAt = "reported_at"
	// Table holds the table name of the schedule in the database.
	Table = "schedules"
)

Variables

Columns holds all SQL columns for schedule fields.

Functions

func AgentID

func AgentID(v string) predicate.Schedule

AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.

func AgentIDContains

func AgentIDContains(v string) predicate.Schedule

AgentIDContains applies the Contains predicate on the "agent_id" field.

func AgentIDContainsFold

func AgentIDContainsFold(v string) predicate.Schedule

AgentIDContainsFold applies the ContainsFold predicate on the "agent_id" field.

func AgentIDEQ

func AgentIDEQ(v string) predicate.Schedule

AgentIDEQ applies the EQ predicate on the "agent_id" field.

func AgentIDEqualFold

func AgentIDEqualFold(v string) predicate.Schedule

AgentIDEqualFold applies the EqualFold predicate on the "agent_id" field.

func AgentIDGT

func AgentIDGT(v string) predicate.Schedule

AgentIDGT applies the GT predicate on the "agent_id" field.

func AgentIDGTE

func AgentIDGTE(v string) predicate.Schedule

AgentIDGTE applies the GTE predicate on the "agent_id" field.

func AgentIDHasPrefix

func AgentIDHasPrefix(v string) predicate.Schedule

AgentIDHasPrefix applies the HasPrefix predicate on the "agent_id" field.

func AgentIDHasSuffix

func AgentIDHasSuffix(v string) predicate.Schedule

AgentIDHasSuffix applies the HasSuffix predicate on the "agent_id" field.

func AgentIDIn

func AgentIDIn(vs ...string) predicate.Schedule

AgentIDIn applies the In predicate on the "agent_id" field.

func AgentIDLT

func AgentIDLT(v string) predicate.Schedule

AgentIDLT applies the LT predicate on the "agent_id" field.

func AgentIDLTE

func AgentIDLTE(v string) predicate.Schedule

AgentIDLTE applies the LTE predicate on the "agent_id" field.

func AgentIDNEQ

func AgentIDNEQ(v string) predicate.Schedule

AgentIDNEQ applies the NEQ predicate on the "agent_id" field.

func AgentIDNotIn

func AgentIDNotIn(vs ...string) predicate.Schedule

AgentIDNotIn applies the NotIn predicate on the "agent_id" field.

func And

func And(predicates ...predicate.Schedule) predicate.Schedule

And groups predicates with the AND operator between them.

func CommitEvery

func CommitEvery(v time.Duration) predicate.Schedule

CommitEvery applies equality check predicate on the "commit_every" field. It's identical to CommitEveryEQ.

func CommitEveryEQ

func CommitEveryEQ(v time.Duration) predicate.Schedule

CommitEveryEQ applies the EQ predicate on the "commit_every" field.

func CommitEveryGT

func CommitEveryGT(v time.Duration) predicate.Schedule

CommitEveryGT applies the GT predicate on the "commit_every" field.

func CommitEveryGTE

func CommitEveryGTE(v time.Duration) predicate.Schedule

CommitEveryGTE applies the GTE predicate on the "commit_every" field.

func CommitEveryIn

func CommitEveryIn(vs ...time.Duration) predicate.Schedule

CommitEveryIn applies the In predicate on the "commit_every" field.

func CommitEveryLT

func CommitEveryLT(v time.Duration) predicate.Schedule

CommitEveryLT applies the LT predicate on the "commit_every" field.

func CommitEveryLTE

func CommitEveryLTE(v time.Duration) predicate.Schedule

CommitEveryLTE applies the LTE predicate on the "commit_every" field.

func CommitEveryNEQ

func CommitEveryNEQ(v time.Duration) predicate.Schedule

CommitEveryNEQ applies the NEQ predicate on the "commit_every" field.

func CommitEveryNotIn

func CommitEveryNotIn(vs ...time.Duration) predicate.Schedule

CommitEveryNotIn applies the NotIn predicate on the "commit_every" field.

func ID

func ID(id string) predicate.Schedule

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Schedule

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Schedule

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Schedule

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Schedule

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Schedule

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Schedule

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Schedule

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Schedule

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Jitter

func Jitter(v time.Duration) predicate.Schedule

Jitter applies equality check predicate on the "jitter" field. It's identical to JitterEQ.

func JitterEQ

func JitterEQ(v time.Duration) predicate.Schedule

JitterEQ applies the EQ predicate on the "jitter" field.

func JitterGT

func JitterGT(v time.Duration) predicate.Schedule

JitterGT applies the GT predicate on the "jitter" field.

func JitterGTE

func JitterGTE(v time.Duration) predicate.Schedule

JitterGTE applies the GTE predicate on the "jitter" field.

func JitterIn

func JitterIn(vs ...time.Duration) predicate.Schedule

JitterIn applies the In predicate on the "jitter" field.

func JitterLT

func JitterLT(v time.Duration) predicate.Schedule

JitterLT applies the LT predicate on the "jitter" field.

func JitterLTE

func JitterLTE(v time.Duration) predicate.Schedule

JitterLTE applies the LTE predicate on the "jitter" field.

func JitterNEQ

func JitterNEQ(v time.Duration) predicate.Schedule

JitterNEQ applies the NEQ predicate on the "jitter" field.

func JitterNotIn

func JitterNotIn(vs ...time.Duration) predicate.Schedule

JitterNotIn applies the NotIn predicate on the "jitter" field.

func Kind

func Kind(v string) predicate.Schedule

Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.

func KindContains

func KindContains(v string) predicate.Schedule

KindContains applies the Contains predicate on the "kind" field.

func KindContainsFold

func KindContainsFold(v string) predicate.Schedule

KindContainsFold applies the ContainsFold predicate on the "kind" field.

func KindEQ

func KindEQ(v string) predicate.Schedule

KindEQ applies the EQ predicate on the "kind" field.

func KindEqualFold

func KindEqualFold(v string) predicate.Schedule

KindEqualFold applies the EqualFold predicate on the "kind" field.

func KindGT

func KindGT(v string) predicate.Schedule

KindGT applies the GT predicate on the "kind" field.

func KindGTE

func KindGTE(v string) predicate.Schedule

KindGTE applies the GTE predicate on the "kind" field.

func KindHasPrefix

func KindHasPrefix(v string) predicate.Schedule

KindHasPrefix applies the HasPrefix predicate on the "kind" field.

func KindHasSuffix

func KindHasSuffix(v string) predicate.Schedule

KindHasSuffix applies the HasSuffix predicate on the "kind" field.

func KindIn

func KindIn(vs ...string) predicate.Schedule

KindIn applies the In predicate on the "kind" field.

func KindLT

func KindLT(v string) predicate.Schedule

KindLT applies the LT predicate on the "kind" field.

func KindLTE

func KindLTE(v string) predicate.Schedule

KindLTE applies the LTE predicate on the "kind" field.

func KindNEQ

func KindNEQ(v string) predicate.Schedule

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...string) predicate.Schedule

KindNotIn applies the NotIn predicate on the "kind" field.

func LongestGap

func LongestGap(v time.Duration) predicate.Schedule

LongestGap applies equality check predicate on the "longest_gap" field. It's identical to LongestGapEQ.

func LongestGapEQ

func LongestGapEQ(v time.Duration) predicate.Schedule

LongestGapEQ applies the EQ predicate on the "longest_gap" field.

func LongestGapGT

func LongestGapGT(v time.Duration) predicate.Schedule

LongestGapGT applies the GT predicate on the "longest_gap" field.

func LongestGapGTE

func LongestGapGTE(v time.Duration) predicate.Schedule

LongestGapGTE applies the GTE predicate on the "longest_gap" field.

func LongestGapIn

func LongestGapIn(vs ...time.Duration) predicate.Schedule

LongestGapIn applies the In predicate on the "longest_gap" field.

func LongestGapLT

func LongestGapLT(v time.Duration) predicate.Schedule

LongestGapLT applies the LT predicate on the "longest_gap" field.

func LongestGapLTE

func LongestGapLTE(v time.Duration) predicate.Schedule

LongestGapLTE applies the LTE predicate on the "longest_gap" field.

func LongestGapNEQ

func LongestGapNEQ(v time.Duration) predicate.Schedule

LongestGapNEQ applies the NEQ predicate on the "longest_gap" field.

func LongestGapNotIn

func LongestGapNotIn(vs ...time.Duration) predicate.Schedule

LongestGapNotIn applies the NotIn predicate on the "longest_gap" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Schedule) predicate.Schedule

Or groups predicates with the OR operator between them.

func ReportedAt

func ReportedAt(v time.Time) predicate.Schedule

ReportedAt applies equality check predicate on the "reported_at" field. It's identical to ReportedAtEQ.

func ReportedAtEQ

func ReportedAtEQ(v time.Time) predicate.Schedule

ReportedAtEQ applies the EQ predicate on the "reported_at" field.

func ReportedAtGT

func ReportedAtGT(v time.Time) predicate.Schedule

ReportedAtGT applies the GT predicate on the "reported_at" field.

func ReportedAtGTE

func ReportedAtGTE(v time.Time) predicate.Schedule

ReportedAtGTE applies the GTE predicate on the "reported_at" field.

func ReportedAtIn

func ReportedAtIn(vs ...time.Time) predicate.Schedule

ReportedAtIn applies the In predicate on the "reported_at" field.

func ReportedAtLT

func ReportedAtLT(v time.Time) predicate.Schedule

ReportedAtLT applies the LT predicate on the "reported_at" field.

func ReportedAtLTE

func ReportedAtLTE(v time.Time) predicate.Schedule

ReportedAtLTE applies the LTE predicate on the "reported_at" field.

func ReportedAtNEQ

func ReportedAtNEQ(v time.Time) predicate.Schedule

ReportedAtNEQ applies the NEQ predicate on the "reported_at" field.

func ReportedAtNotIn

func ReportedAtNotIn(vs ...time.Time) predicate.Schedule

ReportedAtNotIn applies the NotIn predicate on the "reported_at" field.

func Since

func Since(v time.Time) predicate.Schedule

Since applies equality check predicate on the "since" field. It's identical to SinceEQ.

func SinceEQ

func SinceEQ(v time.Time) predicate.Schedule

SinceEQ applies the EQ predicate on the "since" field.

func SinceGT

func SinceGT(v time.Time) predicate.Schedule

SinceGT applies the GT predicate on the "since" field.

func SinceGTE

func SinceGTE(v time.Time) predicate.Schedule

SinceGTE applies the GTE predicate on the "since" field.

func SinceIn

func SinceIn(vs ...time.Time) predicate.Schedule

SinceIn applies the In predicate on the "since" field.

func SinceLT

func SinceLT(v time.Time) predicate.Schedule

SinceLT applies the LT predicate on the "since" field.

func SinceLTE

func SinceLTE(v time.Time) predicate.Schedule

SinceLTE applies the LTE predicate on the "since" field.

func SinceNEQ

func SinceNEQ(v time.Time) predicate.Schedule

SinceNEQ applies the NEQ predicate on the "since" field.

func SinceNotIn

func SinceNotIn(vs ...time.Time) predicate.Schedule

SinceNotIn applies the NotIn predicate on the "since" 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 Schedule queries.

func ByAgentID

func ByAgentID(opts ...sql.OrderTermOption) OrderOption

ByAgentID orders the results by the agent_id field.

func ByCommitEvery

func ByCommitEvery(opts ...sql.OrderTermOption) OrderOption

ByCommitEvery orders the results by the commit_every field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByJitter

func ByJitter(opts ...sql.OrderTermOption) OrderOption

ByJitter orders the results by the jitter field.

func ByKind

func ByKind(opts ...sql.OrderTermOption) OrderOption

ByKind orders the results by the kind field.

func ByLongestGap

func ByLongestGap(opts ...sql.OrderTermOption) OrderOption

ByLongestGap orders the results by the longest_gap field.

func ByReportedAt

func ByReportedAt(opts ...sql.OrderTermOption) OrderOption

ByReportedAt orders the results by the reported_at field.

func BySince

func BySince(opts ...sql.OrderTermOption) OrderOption

BySince orders the results by the since field.

Jump to

Keyboard shortcuts

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