Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Shell) predicate.Shell
- func Command(v string) predicate.Shell
- func CommandContains(v string) predicate.Shell
- func CommandContainsFold(v string) predicate.Shell
- func CommandEQ(v string) predicate.Shell
- func CommandEqualFold(v string) predicate.Shell
- func CommandGT(v string) predicate.Shell
- func CommandGTE(v string) predicate.Shell
- func CommandHasPrefix(v string) predicate.Shell
- func CommandHasSuffix(v string) predicate.Shell
- func CommandIn(vs ...string) predicate.Shell
- func CommandLT(v string) predicate.Shell
- func CommandLTE(v string) predicate.Shell
- func CommandNEQ(v string) predicate.Shell
- func CommandNotIn(vs ...string) predicate.Shell
- func ExitCode(v int) predicate.Shell
- func ExitCodeEQ(v int) predicate.Shell
- func ExitCodeGT(v int) predicate.Shell
- func ExitCodeGTE(v int) predicate.Shell
- func ExitCodeIn(vs ...int) predicate.Shell
- func ExitCodeIsNil() predicate.Shell
- func ExitCodeLT(v int) predicate.Shell
- func ExitCodeLTE(v int) predicate.Shell
- func ExitCodeNEQ(v int) predicate.Shell
- func ExitCodeNotIn(vs ...int) predicate.Shell
- func ExitCodeNotNil() predicate.Shell
- func HasSession() predicate.Shell
- func HasSessionWith(preds ...predicate.Session) predicate.Shell
- func ID(id string) predicate.Shell
- func IDContainsFold(id string) predicate.Shell
- func IDEQ(id string) predicate.Shell
- func IDEqualFold(id string) predicate.Shell
- func IDGT(id string) predicate.Shell
- func IDGTE(id string) predicate.Shell
- func IDIn(ids ...string) predicate.Shell
- func IDLT(id string) predicate.Shell
- func IDLTE(id string) predicate.Shell
- func IDNEQ(id string) predicate.Shell
- func IDNotIn(ids ...string) predicate.Shell
- func Name(v string) predicate.Shell
- func NameContains(v string) predicate.Shell
- func NameContainsFold(v string) predicate.Shell
- func NameEQ(v string) predicate.Shell
- func NameEqualFold(v string) predicate.Shell
- func NameGT(v string) predicate.Shell
- func NameGTE(v string) predicate.Shell
- func NameHasPrefix(v string) predicate.Shell
- func NameHasSuffix(v string) predicate.Shell
- func NameIn(vs ...string) predicate.Shell
- func NameLT(v string) predicate.Shell
- func NameLTE(v string) predicate.Shell
- func NameNEQ(v string) predicate.Shell
- func NameNotIn(vs ...string) predicate.Shell
- func Not(p predicate.Shell) predicate.Shell
- func Or(predicates ...predicate.Shell) predicate.Shell
- func OrderIndex(v int) predicate.Shell
- func OrderIndexEQ(v int) predicate.Shell
- func OrderIndexGT(v int) predicate.Shell
- func OrderIndexGTE(v int) predicate.Shell
- func OrderIndexIn(vs ...int) predicate.Shell
- func OrderIndexLT(v int) predicate.Shell
- func OrderIndexLTE(v int) predicate.Shell
- func OrderIndexNEQ(v int) predicate.Shell
- func OrderIndexNotIn(vs ...int) predicate.Shell
- func StartedAt(v time.Time) predicate.Shell
- func StartedAtEQ(v time.Time) predicate.Shell
- func StartedAtGT(v time.Time) predicate.Shell
- func StartedAtGTE(v time.Time) predicate.Shell
- func StartedAtIn(vs ...time.Time) predicate.Shell
- func StartedAtLT(v time.Time) predicate.Shell
- func StartedAtLTE(v time.Time) predicate.Shell
- func StartedAtNEQ(v time.Time) predicate.Shell
- func StartedAtNotIn(vs ...time.Time) predicate.Shell
- func Status(v string) predicate.Shell
- func StatusContains(v string) predicate.Shell
- func StatusContainsFold(v string) predicate.Shell
- func StatusEQ(v string) predicate.Shell
- func StatusEqualFold(v string) predicate.Shell
- func StatusGT(v string) predicate.Shell
- func StatusGTE(v string) predicate.Shell
- func StatusHasPrefix(v string) predicate.Shell
- func StatusHasSuffix(v string) predicate.Shell
- func StatusIn(vs ...string) predicate.Shell
- func StatusLT(v string) predicate.Shell
- func StatusLTE(v string) predicate.Shell
- func StatusNEQ(v string) predicate.Shell
- func StatusNotIn(vs ...string) predicate.Shell
- func StoppedAt(v time.Time) predicate.Shell
- func StoppedAtEQ(v time.Time) predicate.Shell
- func StoppedAtGT(v time.Time) predicate.Shell
- func StoppedAtGTE(v time.Time) predicate.Shell
- func StoppedAtIn(vs ...time.Time) predicate.Shell
- func StoppedAtIsNil() predicate.Shell
- func StoppedAtLT(v time.Time) predicate.Shell
- func StoppedAtLTE(v time.Time) predicate.Shell
- func StoppedAtNEQ(v time.Time) predicate.Shell
- func StoppedAtNotIn(vs ...time.Time) predicate.Shell
- func StoppedAtNotNil() predicate.Shell
- func TmuxSessionName(v string) predicate.Shell
- func TmuxSessionNameContains(v string) predicate.Shell
- func TmuxSessionNameContainsFold(v string) predicate.Shell
- func TmuxSessionNameEQ(v string) predicate.Shell
- func TmuxSessionNameEqualFold(v string) predicate.Shell
- func TmuxSessionNameGT(v string) predicate.Shell
- func TmuxSessionNameGTE(v string) predicate.Shell
- func TmuxSessionNameHasPrefix(v string) predicate.Shell
- func TmuxSessionNameHasSuffix(v string) predicate.Shell
- func TmuxSessionNameIn(vs ...string) predicate.Shell
- func TmuxSessionNameLT(v string) predicate.Shell
- func TmuxSessionNameLTE(v string) predicate.Shell
- func TmuxSessionNameNEQ(v string) predicate.Shell
- func TmuxSessionNameNotIn(vs ...string) predicate.Shell
- func ValidColumn(column string) bool
- func WorkingDir(v string) predicate.Shell
- func WorkingDirContains(v string) predicate.Shell
- func WorkingDirContainsFold(v string) predicate.Shell
- func WorkingDirEQ(v string) predicate.Shell
- func WorkingDirEqualFold(v string) predicate.Shell
- func WorkingDirGT(v string) predicate.Shell
- func WorkingDirGTE(v string) predicate.Shell
- func WorkingDirHasPrefix(v string) predicate.Shell
- func WorkingDirHasSuffix(v string) predicate.Shell
- func WorkingDirIn(vs ...string) predicate.Shell
- func WorkingDirIsNil() predicate.Shell
- func WorkingDirLT(v string) predicate.Shell
- func WorkingDirLTE(v string) predicate.Shell
- func WorkingDirNEQ(v string) predicate.Shell
- func WorkingDirNotIn(vs ...string) predicate.Shell
- func WorkingDirNotNil() predicate.Shell
- type OrderOption
- func ByCommand(opts ...sql.OrderTermOption) OrderOption
- func ByExitCode(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrderIndex(opts ...sql.OrderTermOption) OrderOption
- func BySessionField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByStartedAt(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByStoppedAt(opts ...sql.OrderTermOption) OrderOption
- func ByTmuxSessionName(opts ...sql.OrderTermOption) OrderOption
- func ByWorkingDir(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldName, FieldCommand, FieldWorkingDir, FieldTmuxSessionName, FieldStatus, FieldExitCode, FieldOrderIndex, FieldStartedAt, FieldStoppedAt, }
Columns holds all SQL columns for shell fields.
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 Command ¶
Command applies equality check predicate on the "command" field. It's identical to CommandEQ.
func CommandContains ¶
CommandContains applies the Contains predicate on the "command" field.
func CommandContainsFold ¶
CommandContainsFold applies the ContainsFold predicate on the "command" field.
func CommandEqualFold ¶
CommandEqualFold applies the EqualFold predicate on the "command" field.
func CommandGTE ¶
CommandGTE applies the GTE predicate on the "command" field.
func CommandHasPrefix ¶
CommandHasPrefix applies the HasPrefix predicate on the "command" field.
func CommandHasSuffix ¶
CommandHasSuffix applies the HasSuffix predicate on the "command" field.
func CommandLTE ¶
CommandLTE applies the LTE predicate on the "command" field.
func CommandNEQ ¶
CommandNEQ applies the NEQ predicate on the "command" field.
func CommandNotIn ¶
CommandNotIn applies the NotIn predicate on the "command" field.
func ExitCode ¶
ExitCode applies equality check predicate on the "exit_code" field. It's identical to ExitCodeEQ.
func ExitCodeEQ ¶
ExitCodeEQ applies the EQ predicate on the "exit_code" field.
func ExitCodeGT ¶
ExitCodeGT applies the GT predicate on the "exit_code" field.
func ExitCodeGTE ¶
ExitCodeGTE applies the GTE predicate on the "exit_code" field.
func ExitCodeIn ¶
ExitCodeIn applies the In predicate on the "exit_code" field.
func ExitCodeIsNil ¶
ExitCodeIsNil applies the IsNil predicate on the "exit_code" field.
func ExitCodeLT ¶
ExitCodeLT applies the LT predicate on the "exit_code" field.
func ExitCodeLTE ¶
ExitCodeLTE applies the LTE predicate on the "exit_code" field.
func ExitCodeNEQ ¶
ExitCodeNEQ applies the NEQ predicate on the "exit_code" field.
func ExitCodeNotIn ¶
ExitCodeNotIn applies the NotIn predicate on the "exit_code" field.
func ExitCodeNotNil ¶
ExitCodeNotNil applies the NotNil predicate on the "exit_code" field.
func HasSession ¶
HasSession applies the HasEdge predicate on the "session" edge.
func HasSessionWith ¶
HasSessionWith applies the HasEdge predicate on the "session" 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 NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OrderIndex ¶
OrderIndex applies equality check predicate on the "order_index" field. It's identical to OrderIndexEQ.
func OrderIndexEQ ¶
OrderIndexEQ applies the EQ predicate on the "order_index" field.
func OrderIndexGT ¶
OrderIndexGT applies the GT predicate on the "order_index" field.
func OrderIndexGTE ¶
OrderIndexGTE applies the GTE predicate on the "order_index" field.
func OrderIndexIn ¶
OrderIndexIn applies the In predicate on the "order_index" field.
func OrderIndexLT ¶
OrderIndexLT applies the LT predicate on the "order_index" field.
func OrderIndexLTE ¶
OrderIndexLTE applies the LTE predicate on the "order_index" field.
func OrderIndexNEQ ¶
OrderIndexNEQ applies the NEQ predicate on the "order_index" field.
func OrderIndexNotIn ¶
OrderIndexNotIn applies the NotIn predicate on the "order_index" 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 Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StoppedAt ¶
StoppedAt applies equality check predicate on the "stopped_at" field. It's identical to StoppedAtEQ.
func StoppedAtEQ ¶
StoppedAtEQ applies the EQ predicate on the "stopped_at" field.
func StoppedAtGT ¶
StoppedAtGT applies the GT predicate on the "stopped_at" field.
func StoppedAtGTE ¶
StoppedAtGTE applies the GTE predicate on the "stopped_at" field.
func StoppedAtIn ¶
StoppedAtIn applies the In predicate on the "stopped_at" field.
func StoppedAtIsNil ¶
StoppedAtIsNil applies the IsNil predicate on the "stopped_at" field.
func StoppedAtLT ¶
StoppedAtLT applies the LT predicate on the "stopped_at" field.
func StoppedAtLTE ¶
StoppedAtLTE applies the LTE predicate on the "stopped_at" field.
func StoppedAtNEQ ¶
StoppedAtNEQ applies the NEQ predicate on the "stopped_at" field.
func StoppedAtNotIn ¶
StoppedAtNotIn applies the NotIn predicate on the "stopped_at" field.
func StoppedAtNotNil ¶
StoppedAtNotNil applies the NotNil predicate on the "stopped_at" field.
func TmuxSessionName ¶
TmuxSessionName applies equality check predicate on the "tmux_session_name" field. It's identical to TmuxSessionNameEQ.
func TmuxSessionNameContains ¶
TmuxSessionNameContains applies the Contains predicate on the "tmux_session_name" field.
func TmuxSessionNameContainsFold ¶
TmuxSessionNameContainsFold applies the ContainsFold predicate on the "tmux_session_name" field.
func TmuxSessionNameEQ ¶
TmuxSessionNameEQ applies the EQ predicate on the "tmux_session_name" field.
func TmuxSessionNameEqualFold ¶
TmuxSessionNameEqualFold applies the EqualFold predicate on the "tmux_session_name" field.
func TmuxSessionNameGT ¶
TmuxSessionNameGT applies the GT predicate on the "tmux_session_name" field.
func TmuxSessionNameGTE ¶
TmuxSessionNameGTE applies the GTE predicate on the "tmux_session_name" field.
func TmuxSessionNameHasPrefix ¶
TmuxSessionNameHasPrefix applies the HasPrefix predicate on the "tmux_session_name" field.
func TmuxSessionNameHasSuffix ¶
TmuxSessionNameHasSuffix applies the HasSuffix predicate on the "tmux_session_name" field.
func TmuxSessionNameIn ¶
TmuxSessionNameIn applies the In predicate on the "tmux_session_name" field.
func TmuxSessionNameLT ¶
TmuxSessionNameLT applies the LT predicate on the "tmux_session_name" field.
func TmuxSessionNameLTE ¶
TmuxSessionNameLTE applies the LTE predicate on the "tmux_session_name" field.
func TmuxSessionNameNEQ ¶
TmuxSessionNameNEQ applies the NEQ predicate on the "tmux_session_name" field.
func TmuxSessionNameNotIn ¶
TmuxSessionNameNotIn applies the NotIn predicate on the "tmux_session_name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WorkingDir ¶
WorkingDir applies equality check predicate on the "working_dir" field. It's identical to WorkingDirEQ.
func WorkingDirContains ¶
WorkingDirContains applies the Contains predicate on the "working_dir" field.
func WorkingDirContainsFold ¶
WorkingDirContainsFold applies the ContainsFold predicate on the "working_dir" field.
func WorkingDirEQ ¶
WorkingDirEQ applies the EQ predicate on the "working_dir" field.
func WorkingDirEqualFold ¶
WorkingDirEqualFold applies the EqualFold predicate on the "working_dir" field.
func WorkingDirGT ¶
WorkingDirGT applies the GT predicate on the "working_dir" field.
func WorkingDirGTE ¶
WorkingDirGTE applies the GTE predicate on the "working_dir" field.
func WorkingDirHasPrefix ¶
WorkingDirHasPrefix applies the HasPrefix predicate on the "working_dir" field.
func WorkingDirHasSuffix ¶
WorkingDirHasSuffix applies the HasSuffix predicate on the "working_dir" field.
func WorkingDirIn ¶
WorkingDirIn applies the In predicate on the "working_dir" field.
func WorkingDirIsNil ¶
WorkingDirIsNil applies the IsNil predicate on the "working_dir" field.
func WorkingDirLT ¶
WorkingDirLT applies the LT predicate on the "working_dir" field.
func WorkingDirLTE ¶
WorkingDirLTE applies the LTE predicate on the "working_dir" field.
func WorkingDirNEQ ¶
WorkingDirNEQ applies the NEQ predicate on the "working_dir" field.
func WorkingDirNotIn ¶
WorkingDirNotIn applies the NotIn predicate on the "working_dir" field.
func WorkingDirNotNil ¶
WorkingDirNotNil applies the NotNil predicate on the "working_dir" field.
Types ¶
type OrderOption ¶
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.