Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ShutdownTimeout is the deadline passed through the distributed runner // graph. Stop functions whose underlying Close APIs do not accept a context // cannot be forcibly interrupted by it. ShutdownTimeout = 3 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
Runtime owns the started distributed-runner graph and its role-level handle.
func Start ¶
func Start(options StartOptions) (*Runtime, error)
Start assembles, validates, and starts the distributed-runner dependency graph.
type StartOptions ¶
type StartOptions struct {
Log *slog.Logger
Context context.Context
Group *errgroup.Group
Config *runnerconfig.Config
ClientConfig *clientconfig.Config
ListenAddr string
DataPath string
// ContainerdSocket selects an external daemon. When it is empty,
// ContainerdBinary and ContainerdBinDir describe the embedded daemon the
// command selected before constructing the graph.
ContainerdSocket string
ContainerdBinary string
ContainerdBinDir string
}
StartOptions contains the resolved command inputs used to assemble one fixed distributed-runner boot graph.
Click to show internal directories.
Click to hide internal directories.