Versions in this module Expand all Collapse all v0 v0.1.32 Nov 19, 2026 v0.1.31 Nov 18, 2026 v0.1.30 Nov 16, 2026 v0.1.29 Nov 10, 2026 v0.1.28 Nov 9, 2026 v0.1.27 Nov 9, 2026 v0.1.26 Nov 5, 2026 v0.1.25 Nov 4, 2026 v0.1.24 Nov 2, 2026 v0.1.23 Oct 30, 2026 v0.1.22 Oct 30, 2026 v0.1.21 Oct 29, 2026 v0.1.20 Oct 28, 2026 Changes in this version + func Withdraw(dir string) error v0.1.19 Oct 27, 2026 v0.1.18 Oct 26, 2026 Changes in this version + const DetachedMessage + const DisconnectActionCancel + const DisconnectActionDetach + const OpRun + const ProtocolVersion + var ErrAlreadyRunning = errors.New("server is already running") + var ErrRunAlreadyStarted = errors.New("this supervisor has already started a run") + func Acquire(dir string, fileMode os.FileMode) (func(), error) + func InheritedConn() (io.ReadWriteCloser, error) + func IsKnownOperation(op string) bool + func LockPath(dir string) string + func PIDPath(dir string) string + func Pipe() (client, server io.ReadWriteCloser, err error) + func Ready(conn io.Writer, err error) error + func Running(dir string) (int, bool) + type Client struct + PID int + func Connect(conn io.ReadWriteCloser, timeout time.Duration) (*Client, error) + func Start(command []string, logPath string) (*Client, error) + func (client *Client) AcceptRun(request Request) (Response, error) + func (client *Client) Close() error + func (client *Client) Send(request Request) (Response, error) + type Logger struct + FileMode os.FileMode + MaxBytes int64 + Path string + Prefix string + func (logger *Logger) Writef(format string, args ...any) + type Operations interface + Run func(request Request, progress func(Response)) (message string, exitCode int, err error) + StartRun func(request Request, onDone func()) (runID, message string, err error) + type Request struct + Async bool + BatchMaxActive int + CWD string + ClientSessionID string + ConfigPath string + CopyAttempts bool + CopyJobIDs []string + DisconnectAction string + EnvMode string + Executor string + ExecutorOptions []string + ExecutorSettings executor.RunSettingsMap + FileConfig *model.FileConfigSnapshot + Filter jobfilter.Filter + HintLocation string + IfRevision string + JobIDs []string + LaunchOrigin *model.LaunchOrigin + LocalConcurrency int + MatchBy string + Note string + Op string + PartialArray bool + QueueName string + Quiet bool + Retry int + RunName string + ScopeMatrix string + ScopeStage string + Selection string + SourcePolicy string + SourceProject string + SourceRunID string + StartedBy *model.StartedBy + type Response struct + Accepted bool + Completed int + ExitCode int + Failed int + JobID string + Message string + Notice string + OK bool + PID int + Progress bool + Protocol int + RunID string + Succeeded int + Total int + type Server struct + func New(ops Operations, logger *Logger) *Server + func (server *Server) BeginRun() + func (server *Server) Busy() bool + func (server *Server) Done() <-chan struct{} + func (server *Server) EndRun() + func (server *Server) Handle(conn io.ReadWriteCloser) + func (server *Server) Serve(conn io.ReadWriteCloser) + func (server *Server) Stop() + func (server *Server) Stopped() bool + func (server *Server) WatchIdle(interval, timeout time.Duration, heartbeat func())