shell

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the shell type in the database.
	Label = "shell"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldCommand holds the string denoting the command field in the database.
	FieldCommand = "command"
	// FieldWorkingDir holds the string denoting the working_dir field in the database.
	FieldWorkingDir = "working_dir"
	// FieldTmuxSessionName holds the string denoting the tmux_session_name field in the database.
	FieldTmuxSessionName = "tmux_session_name"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldExitCode holds the string denoting the exit_code field in the database.
	FieldExitCode = "exit_code"
	// FieldOrderIndex holds the string denoting the order_index field in the database.
	FieldOrderIndex = "order_index"
	// FieldStartedAt holds the string denoting the started_at field in the database.
	FieldStartedAt = "started_at"
	// FieldStoppedAt holds the string denoting the stopped_at field in the database.
	FieldStoppedAt = "stopped_at"
	// EdgeSession holds the string denoting the session edge name in mutations.
	EdgeSession = "session"
	// Table holds the table name of the shell in the database.
	Table = "shells"
	// SessionTable is the table that holds the session relation/edge.
	SessionTable = "shells"
	// SessionInverseTable is the table name for the Session entity.
	// It exists in this package in order to avoid circular dependency with the "session" package.
	SessionInverseTable = "sessions"
	// SessionColumn is the table column denoting the session relation/edge.
	SessionColumn = "session_shells"
)

Variables

View Source
var (
	// DefaultCommand holds the default value on creation for the "command" field.
	DefaultCommand string
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus string
	// DefaultOrderIndex holds the default value on creation for the "order_index" field.
	DefaultOrderIndex int
	// DefaultStartedAt holds the default value on creation for the "started_at" field.
	DefaultStartedAt func() time.Time
)

Columns holds all SQL columns for shell fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the "shells" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Shell) predicate.Shell

And groups predicates with the AND operator between them.

func Command

func Command(v string) predicate.Shell

Command applies equality check predicate on the "command" field. It's identical to CommandEQ.

func CommandContains

func CommandContains(v string) predicate.Shell

CommandContains applies the Contains predicate on the "command" field.

func CommandContainsFold

func CommandContainsFold(v string) predicate.Shell

CommandContainsFold applies the ContainsFold predicate on the "command" field.

func CommandEQ

func CommandEQ(v string) predicate.Shell

CommandEQ applies the EQ predicate on the "command" field.

func CommandEqualFold

func CommandEqualFold(v string) predicate.Shell

CommandEqualFold applies the EqualFold predicate on the "command" field.

func CommandGT

func CommandGT(v string) predicate.Shell

CommandGT applies the GT predicate on the "command" field.

func CommandGTE

func CommandGTE(v string) predicate.Shell

CommandGTE applies the GTE predicate on the "command" field.

func CommandHasPrefix

func CommandHasPrefix(v string) predicate.Shell

CommandHasPrefix applies the HasPrefix predicate on the "command" field.

func CommandHasSuffix

func CommandHasSuffix(v string) predicate.Shell

CommandHasSuffix applies the HasSuffix predicate on the "command" field.

func CommandIn

func CommandIn(vs ...string) predicate.Shell

CommandIn applies the In predicate on the "command" field.

func CommandLT

func CommandLT(v string) predicate.Shell

CommandLT applies the LT predicate on the "command" field.

func CommandLTE

func CommandLTE(v string) predicate.Shell

CommandLTE applies the LTE predicate on the "command" field.

func CommandNEQ

func CommandNEQ(v string) predicate.Shell

CommandNEQ applies the NEQ predicate on the "command" field.

func CommandNotIn

func CommandNotIn(vs ...string) predicate.Shell

CommandNotIn applies the NotIn predicate on the "command" field.

func ExitCode

func ExitCode(v int) predicate.Shell

ExitCode applies equality check predicate on the "exit_code" field. It's identical to ExitCodeEQ.

func ExitCodeEQ

func ExitCodeEQ(v int) predicate.Shell

ExitCodeEQ applies the EQ predicate on the "exit_code" field.

func ExitCodeGT

func ExitCodeGT(v int) predicate.Shell

ExitCodeGT applies the GT predicate on the "exit_code" field.

func ExitCodeGTE

func ExitCodeGTE(v int) predicate.Shell

ExitCodeGTE applies the GTE predicate on the "exit_code" field.

func ExitCodeIn

func ExitCodeIn(vs ...int) predicate.Shell

ExitCodeIn applies the In predicate on the "exit_code" field.

func ExitCodeIsNil

func ExitCodeIsNil() predicate.Shell

ExitCodeIsNil applies the IsNil predicate on the "exit_code" field.

func ExitCodeLT

func ExitCodeLT(v int) predicate.Shell

ExitCodeLT applies the LT predicate on the "exit_code" field.

func ExitCodeLTE

func ExitCodeLTE(v int) predicate.Shell

ExitCodeLTE applies the LTE predicate on the "exit_code" field.

func ExitCodeNEQ

func ExitCodeNEQ(v int) predicate.Shell

ExitCodeNEQ applies the NEQ predicate on the "exit_code" field.

func ExitCodeNotIn

func ExitCodeNotIn(vs ...int) predicate.Shell

ExitCodeNotIn applies the NotIn predicate on the "exit_code" field.

func ExitCodeNotNil

func ExitCodeNotNil() predicate.Shell

ExitCodeNotNil applies the NotNil predicate on the "exit_code" field.

func HasSession

func HasSession() predicate.Shell

HasSession applies the HasEdge predicate on the "session" edge.

func HasSessionWith

func HasSessionWith(preds ...predicate.Session) predicate.Shell

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

func ID

func ID(id string) predicate.Shell

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Shell

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Shell

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Shell

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Shell

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Shell

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Shell

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Shell

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Shell

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Shell

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Shell

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Shell

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Shell

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Shell

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Shell

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Shell

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Shell

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Shell

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Shell

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Shell

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Shell

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Shell

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Shell

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Shell) predicate.Shell

Or groups predicates with the OR operator between them.

func OrderIndex

func OrderIndex(v int) predicate.Shell

OrderIndex applies equality check predicate on the "order_index" field. It's identical to OrderIndexEQ.

func OrderIndexEQ

func OrderIndexEQ(v int) predicate.Shell

OrderIndexEQ applies the EQ predicate on the "order_index" field.

func OrderIndexGT

func OrderIndexGT(v int) predicate.Shell

OrderIndexGT applies the GT predicate on the "order_index" field.

func OrderIndexGTE

func OrderIndexGTE(v int) predicate.Shell

OrderIndexGTE applies the GTE predicate on the "order_index" field.

func OrderIndexIn

func OrderIndexIn(vs ...int) predicate.Shell

OrderIndexIn applies the In predicate on the "order_index" field.

func OrderIndexLT

func OrderIndexLT(v int) predicate.Shell

OrderIndexLT applies the LT predicate on the "order_index" field.

func OrderIndexLTE

func OrderIndexLTE(v int) predicate.Shell

OrderIndexLTE applies the LTE predicate on the "order_index" field.

func OrderIndexNEQ

func OrderIndexNEQ(v int) predicate.Shell

OrderIndexNEQ applies the NEQ predicate on the "order_index" field.

func OrderIndexNotIn

func OrderIndexNotIn(vs ...int) predicate.Shell

OrderIndexNotIn applies the NotIn predicate on the "order_index" field.

func StartedAt

func StartedAt(v time.Time) predicate.Shell

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

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.Shell

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

func StartedAtGT

func StartedAtGT(v time.Time) predicate.Shell

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

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.Shell

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

func StartedAtIn

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

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

func StartedAtLT

func StartedAtLT(v time.Time) predicate.Shell

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

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.Shell

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

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.Shell

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

func StartedAtNotIn

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

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

func Status

func Status(v string) predicate.Shell

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.Shell

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.Shell

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.Shell

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

func StatusEqualFold

func StatusEqualFold(v string) predicate.Shell

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.Shell

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.Shell

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Shell

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Shell

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.Shell

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

func StatusLT

func StatusLT(v string) predicate.Shell

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.Shell

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.Shell

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

func StatusNotIn

func StatusNotIn(vs ...string) predicate.Shell

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

func StoppedAt

func StoppedAt(v time.Time) predicate.Shell

StoppedAt applies equality check predicate on the "stopped_at" field. It's identical to StoppedAtEQ.

func StoppedAtEQ

func StoppedAtEQ(v time.Time) predicate.Shell

StoppedAtEQ applies the EQ predicate on the "stopped_at" field.

func StoppedAtGT

func StoppedAtGT(v time.Time) predicate.Shell

StoppedAtGT applies the GT predicate on the "stopped_at" field.

func StoppedAtGTE

func StoppedAtGTE(v time.Time) predicate.Shell

StoppedAtGTE applies the GTE predicate on the "stopped_at" field.

func StoppedAtIn

func StoppedAtIn(vs ...time.Time) predicate.Shell

StoppedAtIn applies the In predicate on the "stopped_at" field.

func StoppedAtIsNil

func StoppedAtIsNil() predicate.Shell

StoppedAtIsNil applies the IsNil predicate on the "stopped_at" field.

func StoppedAtLT

func StoppedAtLT(v time.Time) predicate.Shell

StoppedAtLT applies the LT predicate on the "stopped_at" field.

func StoppedAtLTE

func StoppedAtLTE(v time.Time) predicate.Shell

StoppedAtLTE applies the LTE predicate on the "stopped_at" field.

func StoppedAtNEQ

func StoppedAtNEQ(v time.Time) predicate.Shell

StoppedAtNEQ applies the NEQ predicate on the "stopped_at" field.

func StoppedAtNotIn

func StoppedAtNotIn(vs ...time.Time) predicate.Shell

StoppedAtNotIn applies the NotIn predicate on the "stopped_at" field.

func StoppedAtNotNil

func StoppedAtNotNil() predicate.Shell

StoppedAtNotNil applies the NotNil predicate on the "stopped_at" field.

func TmuxSessionName

func TmuxSessionName(v string) predicate.Shell

TmuxSessionName applies equality check predicate on the "tmux_session_name" field. It's identical to TmuxSessionNameEQ.

func TmuxSessionNameContains

func TmuxSessionNameContains(v string) predicate.Shell

TmuxSessionNameContains applies the Contains predicate on the "tmux_session_name" field.

func TmuxSessionNameContainsFold

func TmuxSessionNameContainsFold(v string) predicate.Shell

TmuxSessionNameContainsFold applies the ContainsFold predicate on the "tmux_session_name" field.

func TmuxSessionNameEQ

func TmuxSessionNameEQ(v string) predicate.Shell

TmuxSessionNameEQ applies the EQ predicate on the "tmux_session_name" field.

func TmuxSessionNameEqualFold

func TmuxSessionNameEqualFold(v string) predicate.Shell

TmuxSessionNameEqualFold applies the EqualFold predicate on the "tmux_session_name" field.

func TmuxSessionNameGT

func TmuxSessionNameGT(v string) predicate.Shell

TmuxSessionNameGT applies the GT predicate on the "tmux_session_name" field.

func TmuxSessionNameGTE

func TmuxSessionNameGTE(v string) predicate.Shell

TmuxSessionNameGTE applies the GTE predicate on the "tmux_session_name" field.

func TmuxSessionNameHasPrefix

func TmuxSessionNameHasPrefix(v string) predicate.Shell

TmuxSessionNameHasPrefix applies the HasPrefix predicate on the "tmux_session_name" field.

func TmuxSessionNameHasSuffix

func TmuxSessionNameHasSuffix(v string) predicate.Shell

TmuxSessionNameHasSuffix applies the HasSuffix predicate on the "tmux_session_name" field.

func TmuxSessionNameIn

func TmuxSessionNameIn(vs ...string) predicate.Shell

TmuxSessionNameIn applies the In predicate on the "tmux_session_name" field.

func TmuxSessionNameLT

func TmuxSessionNameLT(v string) predicate.Shell

TmuxSessionNameLT applies the LT predicate on the "tmux_session_name" field.

func TmuxSessionNameLTE

func TmuxSessionNameLTE(v string) predicate.Shell

TmuxSessionNameLTE applies the LTE predicate on the "tmux_session_name" field.

func TmuxSessionNameNEQ

func TmuxSessionNameNEQ(v string) predicate.Shell

TmuxSessionNameNEQ applies the NEQ predicate on the "tmux_session_name" field.

func TmuxSessionNameNotIn

func TmuxSessionNameNotIn(vs ...string) predicate.Shell

TmuxSessionNameNotIn applies the NotIn predicate on the "tmux_session_name" field.

func ValidColumn

func ValidColumn(column string) bool

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

func WorkingDir

func WorkingDir(v string) predicate.Shell

WorkingDir applies equality check predicate on the "working_dir" field. It's identical to WorkingDirEQ.

func WorkingDirContains

func WorkingDirContains(v string) predicate.Shell

WorkingDirContains applies the Contains predicate on the "working_dir" field.

func WorkingDirContainsFold

func WorkingDirContainsFold(v string) predicate.Shell

WorkingDirContainsFold applies the ContainsFold predicate on the "working_dir" field.

func WorkingDirEQ

func WorkingDirEQ(v string) predicate.Shell

WorkingDirEQ applies the EQ predicate on the "working_dir" field.

func WorkingDirEqualFold

func WorkingDirEqualFold(v string) predicate.Shell

WorkingDirEqualFold applies the EqualFold predicate on the "working_dir" field.

func WorkingDirGT

func WorkingDirGT(v string) predicate.Shell

WorkingDirGT applies the GT predicate on the "working_dir" field.

func WorkingDirGTE

func WorkingDirGTE(v string) predicate.Shell

WorkingDirGTE applies the GTE predicate on the "working_dir" field.

func WorkingDirHasPrefix

func WorkingDirHasPrefix(v string) predicate.Shell

WorkingDirHasPrefix applies the HasPrefix predicate on the "working_dir" field.

func WorkingDirHasSuffix

func WorkingDirHasSuffix(v string) predicate.Shell

WorkingDirHasSuffix applies the HasSuffix predicate on the "working_dir" field.

func WorkingDirIn

func WorkingDirIn(vs ...string) predicate.Shell

WorkingDirIn applies the In predicate on the "working_dir" field.

func WorkingDirIsNil

func WorkingDirIsNil() predicate.Shell

WorkingDirIsNil applies the IsNil predicate on the "working_dir" field.

func WorkingDirLT

func WorkingDirLT(v string) predicate.Shell

WorkingDirLT applies the LT predicate on the "working_dir" field.

func WorkingDirLTE

func WorkingDirLTE(v string) predicate.Shell

WorkingDirLTE applies the LTE predicate on the "working_dir" field.

func WorkingDirNEQ

func WorkingDirNEQ(v string) predicate.Shell

WorkingDirNEQ applies the NEQ predicate on the "working_dir" field.

func WorkingDirNotIn

func WorkingDirNotIn(vs ...string) predicate.Shell

WorkingDirNotIn applies the NotIn predicate on the "working_dir" field.

func WorkingDirNotNil

func WorkingDirNotNil() predicate.Shell

WorkingDirNotNil applies the NotNil predicate on the "working_dir" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Shell queries.

func ByCommand

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

ByCommand orders the results by the command field.

func ByExitCode

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

ByExitCode orders the results by the exit_code field.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByOrderIndex

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

ByOrderIndex orders the results by the order_index field.

func BySessionField

func BySessionField(field string, opts ...sql.OrderTermOption) OrderOption

BySessionField orders the results by session field.

func ByStartedAt

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

ByStartedAt orders the results by the started_at field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByStoppedAt

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

ByStoppedAt orders the results by the stopped_at field.

func ByTmuxSessionName

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

ByTmuxSessionName orders the results by the tmux_session_name field.

func ByWorkingDir

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

ByWorkingDir orders the results by the working_dir field.

Jump to

Keyboard shortcuts

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