session

package
v1.63.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the session type in the database.
	Label = "session"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAgentID holds the string denoting the agent_id field in the database.
	FieldAgentID = "agent_id"
	// FieldBackupSet holds the string denoting the backup_set field in the database.
	FieldBackupSet = "backup_set"
	// FieldStartedAt holds the string denoting the started_at field in the database.
	FieldStartedAt = "started_at"
	// FieldLastSeen holds the string denoting the last_seen field in the database.
	FieldLastSeen = "last_seen"
	// FieldRestoreRef holds the string denoting the restore_ref field in the database.
	FieldRestoreRef = "restore_ref"
	// EdgeArchives holds the string denoting the archives edge name in mutations.
	EdgeArchives = "archives"
	// Table holds the table name of the session in the database.
	Table = "sessions"
	// ArchivesTable is the table that holds the archives relation/edge.
	ArchivesTable = "archives"
	// ArchivesInverseTable is the table name for the Archive entity.
	// It exists in this package in order to avoid circular dependency with the "archive" package.
	ArchivesInverseTable = "archives"
	// ArchivesColumn is the table column denoting the archives relation/edge.
	ArchivesColumn = "session_id"
)

Variables

Columns holds all SQL columns for session fields.

Functions

func AgentID

func AgentID(v string) predicate.Session

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

func AgentIDContains

func AgentIDContains(v string) predicate.Session

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

func AgentIDContainsFold

func AgentIDContainsFold(v string) predicate.Session

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

func AgentIDEQ

func AgentIDEQ(v string) predicate.Session

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

func AgentIDEqualFold

func AgentIDEqualFold(v string) predicate.Session

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

func AgentIDGT

func AgentIDGT(v string) predicate.Session

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

func AgentIDGTE

func AgentIDGTE(v string) predicate.Session

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

func AgentIDHasPrefix

func AgentIDHasPrefix(v string) predicate.Session

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

func AgentIDHasSuffix

func AgentIDHasSuffix(v string) predicate.Session

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

func AgentIDIn

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

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

func AgentIDLT

func AgentIDLT(v string) predicate.Session

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

func AgentIDLTE

func AgentIDLTE(v string) predicate.Session

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

func AgentIDNEQ

func AgentIDNEQ(v string) predicate.Session

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

func AgentIDNotIn

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

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

func And

func And(predicates ...predicate.Session) predicate.Session

And groups predicates with the AND operator between them.

func BackupSet

func BackupSet(v string) predicate.Session

BackupSet applies equality check predicate on the "backup_set" field. It's identical to BackupSetEQ.

func BackupSetContains

func BackupSetContains(v string) predicate.Session

BackupSetContains applies the Contains predicate on the "backup_set" field.

func BackupSetContainsFold

func BackupSetContainsFold(v string) predicate.Session

BackupSetContainsFold applies the ContainsFold predicate on the "backup_set" field.

func BackupSetEQ

func BackupSetEQ(v string) predicate.Session

BackupSetEQ applies the EQ predicate on the "backup_set" field.

func BackupSetEqualFold

func BackupSetEqualFold(v string) predicate.Session

BackupSetEqualFold applies the EqualFold predicate on the "backup_set" field.

func BackupSetGT

func BackupSetGT(v string) predicate.Session

BackupSetGT applies the GT predicate on the "backup_set" field.

func BackupSetGTE

func BackupSetGTE(v string) predicate.Session

BackupSetGTE applies the GTE predicate on the "backup_set" field.

func BackupSetHasPrefix

func BackupSetHasPrefix(v string) predicate.Session

BackupSetHasPrefix applies the HasPrefix predicate on the "backup_set" field.

func BackupSetHasSuffix

func BackupSetHasSuffix(v string) predicate.Session

BackupSetHasSuffix applies the HasSuffix predicate on the "backup_set" field.

func BackupSetIn

func BackupSetIn(vs ...string) predicate.Session

BackupSetIn applies the In predicate on the "backup_set" field.

func BackupSetLT

func BackupSetLT(v string) predicate.Session

BackupSetLT applies the LT predicate on the "backup_set" field.

func BackupSetLTE

func BackupSetLTE(v string) predicate.Session

BackupSetLTE applies the LTE predicate on the "backup_set" field.

func BackupSetNEQ

func BackupSetNEQ(v string) predicate.Session

BackupSetNEQ applies the NEQ predicate on the "backup_set" field.

func BackupSetNotIn

func BackupSetNotIn(vs ...string) predicate.Session

BackupSetNotIn applies the NotIn predicate on the "backup_set" field.

func HasArchives

func HasArchives() predicate.Session

HasArchives applies the HasEdge predicate on the "archives" edge.

func HasArchivesWith

func HasArchivesWith(preds ...predicate.Archive) predicate.Session

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

func ID

func ID(id string) predicate.Session

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Session

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Session

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Session

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Session

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Session

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Session

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Session

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Session

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastSeen

func LastSeen(v time.Time) predicate.Session

LastSeen applies equality check predicate on the "last_seen" field. It's identical to LastSeenEQ.

func LastSeenEQ

func LastSeenEQ(v time.Time) predicate.Session

LastSeenEQ applies the EQ predicate on the "last_seen" field.

func LastSeenGT

func LastSeenGT(v time.Time) predicate.Session

LastSeenGT applies the GT predicate on the "last_seen" field.

func LastSeenGTE

func LastSeenGTE(v time.Time) predicate.Session

LastSeenGTE applies the GTE predicate on the "last_seen" field.

func LastSeenIn

func LastSeenIn(vs ...time.Time) predicate.Session

LastSeenIn applies the In predicate on the "last_seen" field.

func LastSeenLT

func LastSeenLT(v time.Time) predicate.Session

LastSeenLT applies the LT predicate on the "last_seen" field.

func LastSeenLTE

func LastSeenLTE(v time.Time) predicate.Session

LastSeenLTE applies the LTE predicate on the "last_seen" field.

func LastSeenNEQ

func LastSeenNEQ(v time.Time) predicate.Session

LastSeenNEQ applies the NEQ predicate on the "last_seen" field.

func LastSeenNotIn

func LastSeenNotIn(vs ...time.Time) predicate.Session

LastSeenNotIn applies the NotIn predicate on the "last_seen" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Session) predicate.Session

Or groups predicates with the OR operator between them.

func RestoreRef

func RestoreRef(v []byte) predicate.Session

RestoreRef applies equality check predicate on the "restore_ref" field. It's identical to RestoreRefEQ.

func RestoreRefEQ

func RestoreRefEQ(v []byte) predicate.Session

RestoreRefEQ applies the EQ predicate on the "restore_ref" field.

func RestoreRefGT

func RestoreRefGT(v []byte) predicate.Session

RestoreRefGT applies the GT predicate on the "restore_ref" field.

func RestoreRefGTE

func RestoreRefGTE(v []byte) predicate.Session

RestoreRefGTE applies the GTE predicate on the "restore_ref" field.

func RestoreRefIn

func RestoreRefIn(vs ...[]byte) predicate.Session

RestoreRefIn applies the In predicate on the "restore_ref" field.

func RestoreRefIsNil

func RestoreRefIsNil() predicate.Session

RestoreRefIsNil applies the IsNil predicate on the "restore_ref" field.

func RestoreRefLT

func RestoreRefLT(v []byte) predicate.Session

RestoreRefLT applies the LT predicate on the "restore_ref" field.

func RestoreRefLTE

func RestoreRefLTE(v []byte) predicate.Session

RestoreRefLTE applies the LTE predicate on the "restore_ref" field.

func RestoreRefNEQ

func RestoreRefNEQ(v []byte) predicate.Session

RestoreRefNEQ applies the NEQ predicate on the "restore_ref" field.

func RestoreRefNotIn

func RestoreRefNotIn(vs ...[]byte) predicate.Session

RestoreRefNotIn applies the NotIn predicate on the "restore_ref" field.

func RestoreRefNotNil

func RestoreRefNotNil() predicate.Session

RestoreRefNotNil applies the NotNil predicate on the "restore_ref" field.

func StartedAt

func StartedAt(v time.Time) predicate.Session

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

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.Session

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

func StartedAtGT

func StartedAtGT(v time.Time) predicate.Session

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

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.Session

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

func StartedAtIn

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

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

func StartedAtLT

func StartedAtLT(v time.Time) predicate.Session

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

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.Session

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

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.Session

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

func StartedAtNotIn

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

StartedAtNotIn applies the NotIn predicate on the "started_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 Session queries.

func ByAgentID

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

ByAgentID orders the results by the agent_id field.

func ByArchives

func ByArchives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByArchives orders the results by archives terms.

func ByArchivesCount

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

ByArchivesCount orders the results by archives count.

func ByBackupSet

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

ByBackupSet orders the results by the backup_set field.

func ByID

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

ByID orders the results by the id field.

func ByLastSeen

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

ByLastSeen orders the results by the last_seen field.

func ByStartedAt

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

ByStartedAt orders the results by the started_at field.

Jump to

Keyboard shortcuts

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