Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v string) predicate.Session
- func AgentIDContains(v string) predicate.Session
- func AgentIDContainsFold(v string) predicate.Session
- func AgentIDEQ(v string) predicate.Session
- func AgentIDEqualFold(v string) predicate.Session
- func AgentIDGT(v string) predicate.Session
- func AgentIDGTE(v string) predicate.Session
- func AgentIDHasPrefix(v string) predicate.Session
- func AgentIDHasSuffix(v string) predicate.Session
- func AgentIDIn(vs ...string) predicate.Session
- func AgentIDLT(v string) predicate.Session
- func AgentIDLTE(v string) predicate.Session
- func AgentIDNEQ(v string) predicate.Session
- func AgentIDNotIn(vs ...string) predicate.Session
- func And(predicates ...predicate.Session) predicate.Session
- func BackupSet(v string) predicate.Session
- func BackupSetContains(v string) predicate.Session
- func BackupSetContainsFold(v string) predicate.Session
- func BackupSetEQ(v string) predicate.Session
- func BackupSetEqualFold(v string) predicate.Session
- func BackupSetGT(v string) predicate.Session
- func BackupSetGTE(v string) predicate.Session
- func BackupSetHasPrefix(v string) predicate.Session
- func BackupSetHasSuffix(v string) predicate.Session
- func BackupSetIn(vs ...string) predicate.Session
- func BackupSetLT(v string) predicate.Session
- func BackupSetLTE(v string) predicate.Session
- func BackupSetNEQ(v string) predicate.Session
- func BackupSetNotIn(vs ...string) predicate.Session
- func HasArchives() predicate.Session
- func HasArchivesWith(preds ...predicate.Archive) predicate.Session
- func ID(id string) predicate.Session
- func IDContainsFold(id string) predicate.Session
- func IDEQ(id string) predicate.Session
- func IDEqualFold(id string) predicate.Session
- func IDGT(id string) predicate.Session
- func IDGTE(id string) predicate.Session
- func IDIn(ids ...string) predicate.Session
- func IDLT(id string) predicate.Session
- func IDLTE(id string) predicate.Session
- func IDNEQ(id string) predicate.Session
- func IDNotIn(ids ...string) predicate.Session
- func LastSeen(v time.Time) predicate.Session
- func LastSeenEQ(v time.Time) predicate.Session
- func LastSeenGT(v time.Time) predicate.Session
- func LastSeenGTE(v time.Time) predicate.Session
- func LastSeenIn(vs ...time.Time) predicate.Session
- func LastSeenLT(v time.Time) predicate.Session
- func LastSeenLTE(v time.Time) predicate.Session
- func LastSeenNEQ(v time.Time) predicate.Session
- func LastSeenNotIn(vs ...time.Time) predicate.Session
- func Not(p predicate.Session) predicate.Session
- func Or(predicates ...predicate.Session) predicate.Session
- func RestoreRef(v []byte) predicate.Session
- func RestoreRefEQ(v []byte) predicate.Session
- func RestoreRefGT(v []byte) predicate.Session
- func RestoreRefGTE(v []byte) predicate.Session
- func RestoreRefIn(vs ...[]byte) predicate.Session
- func RestoreRefIsNil() predicate.Session
- func RestoreRefLT(v []byte) predicate.Session
- func RestoreRefLTE(v []byte) predicate.Session
- func RestoreRefNEQ(v []byte) predicate.Session
- func RestoreRefNotIn(vs ...[]byte) predicate.Session
- func RestoreRefNotNil() predicate.Session
- func StartedAt(v time.Time) predicate.Session
- func StartedAtEQ(v time.Time) predicate.Session
- func StartedAtGT(v time.Time) predicate.Session
- func StartedAtGTE(v time.Time) predicate.Session
- func StartedAtIn(vs ...time.Time) predicate.Session
- func StartedAtLT(v time.Time) predicate.Session
- func StartedAtLTE(v time.Time) predicate.Session
- func StartedAtNEQ(v time.Time) predicate.Session
- func StartedAtNotIn(vs ...time.Time) predicate.Session
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByArchives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByArchivesCount(opts ...sql.OrderTermOption) OrderOption
- func ByBackupSet(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastSeen(opts ...sql.OrderTermOption) OrderOption
- func ByStartedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldAgentID, FieldBackupSet, FieldStartedAt, FieldLastSeen, FieldRestoreRef, }
Columns holds all SQL columns for session fields.
Functions ¶
func AgentID ¶
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
func AgentIDContains ¶
AgentIDContains applies the Contains predicate on the "agent_id" field.
func AgentIDContainsFold ¶
AgentIDContainsFold applies the ContainsFold predicate on the "agent_id" field.
func AgentIDEqualFold ¶
AgentIDEqualFold applies the EqualFold predicate on the "agent_id" field.
func AgentIDGTE ¶
AgentIDGTE applies the GTE predicate on the "agent_id" field.
func AgentIDHasPrefix ¶
AgentIDHasPrefix applies the HasPrefix predicate on the "agent_id" field.
func AgentIDHasSuffix ¶
AgentIDHasSuffix applies the HasSuffix predicate on the "agent_id" field.
func AgentIDLTE ¶
AgentIDLTE applies the LTE predicate on the "agent_id" field.
func AgentIDNEQ ¶
AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
func AgentIDNotIn ¶
AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
func BackupSet ¶
BackupSet applies equality check predicate on the "backup_set" field. It's identical to BackupSetEQ.
func BackupSetContains ¶
BackupSetContains applies the Contains predicate on the "backup_set" field.
func BackupSetContainsFold ¶
BackupSetContainsFold applies the ContainsFold predicate on the "backup_set" field.
func BackupSetEQ ¶
BackupSetEQ applies the EQ predicate on the "backup_set" field.
func BackupSetEqualFold ¶
BackupSetEqualFold applies the EqualFold predicate on the "backup_set" field.
func BackupSetGT ¶
BackupSetGT applies the GT predicate on the "backup_set" field.
func BackupSetGTE ¶
BackupSetGTE applies the GTE predicate on the "backup_set" field.
func BackupSetHasPrefix ¶
BackupSetHasPrefix applies the HasPrefix predicate on the "backup_set" field.
func BackupSetHasSuffix ¶
BackupSetHasSuffix applies the HasSuffix predicate on the "backup_set" field.
func BackupSetIn ¶
BackupSetIn applies the In predicate on the "backup_set" field.
func BackupSetLT ¶
BackupSetLT applies the LT predicate on the "backup_set" field.
func BackupSetLTE ¶
BackupSetLTE applies the LTE predicate on the "backup_set" field.
func BackupSetNEQ ¶
BackupSetNEQ applies the NEQ predicate on the "backup_set" field.
func BackupSetNotIn ¶
BackupSetNotIn applies the NotIn predicate on the "backup_set" field.
func HasArchives ¶
HasArchives applies the HasEdge predicate on the "archives" edge.
func HasArchivesWith ¶
HasArchivesWith applies the HasEdge predicate on the "archives" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func LastSeen ¶
LastSeen applies equality check predicate on the "last_seen" field. It's identical to LastSeenEQ.
func LastSeenEQ ¶
LastSeenEQ applies the EQ predicate on the "last_seen" field.
func LastSeenGT ¶
LastSeenGT applies the GT predicate on the "last_seen" field.
func LastSeenGTE ¶
LastSeenGTE applies the GTE predicate on the "last_seen" field.
func LastSeenIn ¶
LastSeenIn applies the In predicate on the "last_seen" field.
func LastSeenLT ¶
LastSeenLT applies the LT predicate on the "last_seen" field.
func LastSeenLTE ¶
LastSeenLTE applies the LTE predicate on the "last_seen" field.
func LastSeenNEQ ¶
LastSeenNEQ applies the NEQ predicate on the "last_seen" field.
func LastSeenNotIn ¶
LastSeenNotIn applies the NotIn predicate on the "last_seen" field.
func RestoreRef ¶
RestoreRef applies equality check predicate on the "restore_ref" field. It's identical to RestoreRefEQ.
func RestoreRefEQ ¶
RestoreRefEQ applies the EQ predicate on the "restore_ref" field.
func RestoreRefGT ¶
RestoreRefGT applies the GT predicate on the "restore_ref" field.
func RestoreRefGTE ¶
RestoreRefGTE applies the GTE predicate on the "restore_ref" field.
func RestoreRefIn ¶
RestoreRefIn applies the In predicate on the "restore_ref" field.
func RestoreRefIsNil ¶
RestoreRefIsNil applies the IsNil predicate on the "restore_ref" field.
func RestoreRefLT ¶
RestoreRefLT applies the LT predicate on the "restore_ref" field.
func RestoreRefLTE ¶
RestoreRefLTE applies the LTE predicate on the "restore_ref" field.
func RestoreRefNEQ ¶
RestoreRefNEQ applies the NEQ predicate on the "restore_ref" field.
func RestoreRefNotIn ¶
RestoreRefNotIn applies the NotIn predicate on the "restore_ref" field.
func RestoreRefNotNil ¶
RestoreRefNotNil applies the NotNil predicate on the "restore_ref" field.
func StartedAt ¶
StartedAt applies equality check predicate on the "started_at" field. It's identical to StartedAtEQ.
func StartedAtEQ ¶
StartedAtEQ applies the EQ predicate on the "started_at" field.
func StartedAtGT ¶
StartedAtGT applies the GT predicate on the "started_at" field.
func StartedAtGTE ¶
StartedAtGTE applies the GTE predicate on the "started_at" field.
func StartedAtIn ¶
StartedAtIn applies the In predicate on the "started_at" field.
func StartedAtLT ¶
StartedAtLT applies the LT predicate on the "started_at" field.
func StartedAtLTE ¶
StartedAtLTE applies the LTE predicate on the "started_at" field.
func StartedAtNEQ ¶
StartedAtNEQ applies the NEQ predicate on the "started_at" field.
func StartedAtNotIn ¶
StartedAtNotIn applies the NotIn predicate on the "started_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.