workspaceinitlease

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the workspaceinitlease type in the database.
	Label = "workspace_init_lease"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldLeaseKey holds the string denoting the lease_key field in the database.
	FieldLeaseKey = "lease_key"
	// FieldMachineID holds the string denoting the machine_id field in the database.
	FieldMachineID = "machine_id"
	// FieldOwnerRunID holds the string denoting the owner_run_id field in the database.
	FieldOwnerRunID = "owner_run_id"
	// FieldLeaseExpiresAt holds the string denoting the lease_expires_at field in the database.
	FieldLeaseExpiresAt = "lease_expires_at"
	// FieldHeartbeatAt holds the string denoting the heartbeat_at field in the database.
	FieldHeartbeatAt = "heartbeat_at"
	// 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"
	// Table holds the table name of the workspaceinitlease in the database.
	Table = "workspace_init_leases"
)

Variables

View Source
var (
	// LeaseKeyValidator is a validator for the "lease_key" field. It is called by the builders before save.
	LeaseKeyValidator func(string) error
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for workspaceinitlease fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.WorkspaceInitLease

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.WorkspaceInitLease

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.WorkspaceInitLease

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.WorkspaceInitLease

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.WorkspaceInitLease

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.WorkspaceInitLease

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

func CreatedAtNotIn

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

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

func HeartbeatAt

func HeartbeatAt(v time.Time) predicate.WorkspaceInitLease

HeartbeatAt applies equality check predicate on the "heartbeat_at" field. It's identical to HeartbeatAtEQ.

func HeartbeatAtEQ

func HeartbeatAtEQ(v time.Time) predicate.WorkspaceInitLease

HeartbeatAtEQ applies the EQ predicate on the "heartbeat_at" field.

func HeartbeatAtGT

func HeartbeatAtGT(v time.Time) predicate.WorkspaceInitLease

HeartbeatAtGT applies the GT predicate on the "heartbeat_at" field.

func HeartbeatAtGTE

func HeartbeatAtGTE(v time.Time) predicate.WorkspaceInitLease

HeartbeatAtGTE applies the GTE predicate on the "heartbeat_at" field.

func HeartbeatAtIn

func HeartbeatAtIn(vs ...time.Time) predicate.WorkspaceInitLease

HeartbeatAtIn applies the In predicate on the "heartbeat_at" field.

func HeartbeatAtLT

func HeartbeatAtLT(v time.Time) predicate.WorkspaceInitLease

HeartbeatAtLT applies the LT predicate on the "heartbeat_at" field.

func HeartbeatAtLTE

func HeartbeatAtLTE(v time.Time) predicate.WorkspaceInitLease

HeartbeatAtLTE applies the LTE predicate on the "heartbeat_at" field.

func HeartbeatAtNEQ

func HeartbeatAtNEQ(v time.Time) predicate.WorkspaceInitLease

HeartbeatAtNEQ applies the NEQ predicate on the "heartbeat_at" field.

func HeartbeatAtNotIn

func HeartbeatAtNotIn(vs ...time.Time) predicate.WorkspaceInitLease

HeartbeatAtNotIn applies the NotIn predicate on the "heartbeat_at" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.WorkspaceInitLease

IDNotIn applies the NotIn predicate on the ID field.

func LeaseExpiresAt

func LeaseExpiresAt(v time.Time) predicate.WorkspaceInitLease

LeaseExpiresAt applies equality check predicate on the "lease_expires_at" field. It's identical to LeaseExpiresAtEQ.

func LeaseExpiresAtEQ

func LeaseExpiresAtEQ(v time.Time) predicate.WorkspaceInitLease

LeaseExpiresAtEQ applies the EQ predicate on the "lease_expires_at" field.

func LeaseExpiresAtGT

func LeaseExpiresAtGT(v time.Time) predicate.WorkspaceInitLease

LeaseExpiresAtGT applies the GT predicate on the "lease_expires_at" field.

func LeaseExpiresAtGTE

func LeaseExpiresAtGTE(v time.Time) predicate.WorkspaceInitLease

LeaseExpiresAtGTE applies the GTE predicate on the "lease_expires_at" field.

func LeaseExpiresAtIn

func LeaseExpiresAtIn(vs ...time.Time) predicate.WorkspaceInitLease

LeaseExpiresAtIn applies the In predicate on the "lease_expires_at" field.

func LeaseExpiresAtLT

func LeaseExpiresAtLT(v time.Time) predicate.WorkspaceInitLease

LeaseExpiresAtLT applies the LT predicate on the "lease_expires_at" field.

func LeaseExpiresAtLTE

func LeaseExpiresAtLTE(v time.Time) predicate.WorkspaceInitLease

LeaseExpiresAtLTE applies the LTE predicate on the "lease_expires_at" field.

func LeaseExpiresAtNEQ

func LeaseExpiresAtNEQ(v time.Time) predicate.WorkspaceInitLease

LeaseExpiresAtNEQ applies the NEQ predicate on the "lease_expires_at" field.

func LeaseExpiresAtNotIn

func LeaseExpiresAtNotIn(vs ...time.Time) predicate.WorkspaceInitLease

LeaseExpiresAtNotIn applies the NotIn predicate on the "lease_expires_at" field.

func LeaseKey

LeaseKey applies equality check predicate on the "lease_key" field. It's identical to LeaseKeyEQ.

func LeaseKeyContains

func LeaseKeyContains(v string) predicate.WorkspaceInitLease

LeaseKeyContains applies the Contains predicate on the "lease_key" field.

func LeaseKeyContainsFold

func LeaseKeyContainsFold(v string) predicate.WorkspaceInitLease

LeaseKeyContainsFold applies the ContainsFold predicate on the "lease_key" field.

func LeaseKeyEQ

func LeaseKeyEQ(v string) predicate.WorkspaceInitLease

LeaseKeyEQ applies the EQ predicate on the "lease_key" field.

func LeaseKeyEqualFold

func LeaseKeyEqualFold(v string) predicate.WorkspaceInitLease

LeaseKeyEqualFold applies the EqualFold predicate on the "lease_key" field.

func LeaseKeyGT

func LeaseKeyGT(v string) predicate.WorkspaceInitLease

LeaseKeyGT applies the GT predicate on the "lease_key" field.

func LeaseKeyGTE

func LeaseKeyGTE(v string) predicate.WorkspaceInitLease

LeaseKeyGTE applies the GTE predicate on the "lease_key" field.

func LeaseKeyHasPrefix

func LeaseKeyHasPrefix(v string) predicate.WorkspaceInitLease

LeaseKeyHasPrefix applies the HasPrefix predicate on the "lease_key" field.

func LeaseKeyHasSuffix

func LeaseKeyHasSuffix(v string) predicate.WorkspaceInitLease

LeaseKeyHasSuffix applies the HasSuffix predicate on the "lease_key" field.

func LeaseKeyIn

func LeaseKeyIn(vs ...string) predicate.WorkspaceInitLease

LeaseKeyIn applies the In predicate on the "lease_key" field.

func LeaseKeyLT

func LeaseKeyLT(v string) predicate.WorkspaceInitLease

LeaseKeyLT applies the LT predicate on the "lease_key" field.

func LeaseKeyLTE

func LeaseKeyLTE(v string) predicate.WorkspaceInitLease

LeaseKeyLTE applies the LTE predicate on the "lease_key" field.

func LeaseKeyNEQ

func LeaseKeyNEQ(v string) predicate.WorkspaceInitLease

LeaseKeyNEQ applies the NEQ predicate on the "lease_key" field.

func LeaseKeyNotIn

func LeaseKeyNotIn(vs ...string) predicate.WorkspaceInitLease

LeaseKeyNotIn applies the NotIn predicate on the "lease_key" field.

func MachineID

MachineID applies equality check predicate on the "machine_id" field. It's identical to MachineIDEQ.

func MachineIDEQ

func MachineIDEQ(v uuid.UUID) predicate.WorkspaceInitLease

MachineIDEQ applies the EQ predicate on the "machine_id" field.

func MachineIDGT

func MachineIDGT(v uuid.UUID) predicate.WorkspaceInitLease

MachineIDGT applies the GT predicate on the "machine_id" field.

func MachineIDGTE

func MachineIDGTE(v uuid.UUID) predicate.WorkspaceInitLease

MachineIDGTE applies the GTE predicate on the "machine_id" field.

func MachineIDIn

func MachineIDIn(vs ...uuid.UUID) predicate.WorkspaceInitLease

MachineIDIn applies the In predicate on the "machine_id" field.

func MachineIDLT

func MachineIDLT(v uuid.UUID) predicate.WorkspaceInitLease

MachineIDLT applies the LT predicate on the "machine_id" field.

func MachineIDLTE

func MachineIDLTE(v uuid.UUID) predicate.WorkspaceInitLease

MachineIDLTE applies the LTE predicate on the "machine_id" field.

func MachineIDNEQ

func MachineIDNEQ(v uuid.UUID) predicate.WorkspaceInitLease

MachineIDNEQ applies the NEQ predicate on the "machine_id" field.

func MachineIDNotIn

func MachineIDNotIn(vs ...uuid.UUID) predicate.WorkspaceInitLease

MachineIDNotIn applies the NotIn predicate on the "machine_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func OwnerRunID

func OwnerRunID(v uuid.UUID) predicate.WorkspaceInitLease

OwnerRunID applies equality check predicate on the "owner_run_id" field. It's identical to OwnerRunIDEQ.

func OwnerRunIDEQ

func OwnerRunIDEQ(v uuid.UUID) predicate.WorkspaceInitLease

OwnerRunIDEQ applies the EQ predicate on the "owner_run_id" field.

func OwnerRunIDGT

func OwnerRunIDGT(v uuid.UUID) predicate.WorkspaceInitLease

OwnerRunIDGT applies the GT predicate on the "owner_run_id" field.

func OwnerRunIDGTE

func OwnerRunIDGTE(v uuid.UUID) predicate.WorkspaceInitLease

OwnerRunIDGTE applies the GTE predicate on the "owner_run_id" field.

func OwnerRunIDIn

func OwnerRunIDIn(vs ...uuid.UUID) predicate.WorkspaceInitLease

OwnerRunIDIn applies the In predicate on the "owner_run_id" field.

func OwnerRunIDLT

func OwnerRunIDLT(v uuid.UUID) predicate.WorkspaceInitLease

OwnerRunIDLT applies the LT predicate on the "owner_run_id" field.

func OwnerRunIDLTE

func OwnerRunIDLTE(v uuid.UUID) predicate.WorkspaceInitLease

OwnerRunIDLTE applies the LTE predicate on the "owner_run_id" field.

func OwnerRunIDNEQ

func OwnerRunIDNEQ(v uuid.UUID) predicate.WorkspaceInitLease

OwnerRunIDNEQ applies the NEQ predicate on the "owner_run_id" field.

func OwnerRunIDNotIn

func OwnerRunIDNotIn(vs ...uuid.UUID) predicate.WorkspaceInitLease

OwnerRunIDNotIn applies the NotIn predicate on the "owner_run_id" field.

func UpdatedAt

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.WorkspaceInitLease

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.WorkspaceInitLease

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.WorkspaceInitLease

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.WorkspaceInitLease

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.WorkspaceInitLease

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.WorkspaceInitLease

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

func UpdatedAtNotIn

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

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 WorkspaceInitLease queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByHeartbeatAt

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

ByHeartbeatAt orders the results by the heartbeat_at field.

func ByID

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

ByID orders the results by the id field.

func ByLeaseExpiresAt

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

ByLeaseExpiresAt orders the results by the lease_expires_at field.

func ByLeaseKey

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

ByLeaseKey orders the results by the lease_key field.

func ByMachineID

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

ByMachineID orders the results by the machine_id field.

func ByOwnerRunID

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

ByOwnerRunID orders the results by the owner_run_id 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