Versions in this module Expand all Collapse all v0 v0.19.0 Dec 1, 2026 v0.18.2 Dec 1, 2026 v0.18.1 Nov 30, 2026 v0.18.0 Nov 30, 2026 Changes in this version + const ExitGone + const ExitNoFolder + const ExitNoGroup + const ExitNoSpace + const ExitNotRunning + const ExitStillRunning + const ExitUnsafe + const FactsScript + const LineMax + const ReadMax + const Retention + const Root + const TreeScript + var ErrNoFolder = errors.New("no session folder can be made in the login user's home") + var Signals = []string + func BeginScript(s Start, recs []*store.ExecSession) (string, error) + func CheckID(id string) error + func CheckSignal(sig string) error + func Feed(pw bool) string + func FolderScript(id string) (string, error) + func ForStop(rt *store.Runtime, host, id string) (*store.ExecSession, error) + func NewID() (string, error) + func ReadScript(id string, from int64) (string, error) + func RemoveExit(host, id string, exit int) error + func RemoveScript(id string, rec *store.ExecSession) (string, error) + func Signalled(stdout string) string + func StartScript(s Start) (string, error) + func StopCommand(rec *store.ExecSession, sig string, password bool) (string, error) + func StopExit(host, id string, exit int, stderr string) error + func StopScript(rec *store.ExecSession, sig string) (string, error) + func SudoGuard(inner string, timeout time.Duration) string + func Sweep(recs []*store.ExecSession) string + func Swept(stdout, id string) []string + type Facts struct + PGID int + PID int + Start string + func ParseFacts(s, id string) (Facts, error) + func ReadStart(host string, exit int, stdout, id string) (Facts, []string, error) + type Follow struct + Every time.Duration + From int64 + Host string + ID string + Lines *Lines + Show func(string) + Wait time.Duration + func (f Follow) Run(ctx context.Context, read Reader) (Followed, error) + type Followed struct + NextFrom int64 + Status Status + type Lines struct + Agent bool + Redact func(string) string + func (l *Lines) Open() int + func (l *Lines) Read(b []byte, end bool) (string, int) + type Reader func(ctx context.Context, script string) (string, int, error) + type Start struct + Env int + ID string + Input bool + LogMax int64 + Password int + Run string + Shown string + SudoGuard bool + Timeout time.Duration + type Status struct + Exit int + Killed string + Lost bool + Size int64 + Truncated int64 + func ParseRead(s, id string) (Status, []byte, error) + func (s Status) Ended() bool + func (s Status) TruncatedNote() string