Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
presetgen
command
Command presetgen publishes the repo's authored presets (presets/sqi/*.yaml by default, or the directory -presets names) into a checkout of the preset-library repo: it writes the definition files under a namespaced subdir and merges their entries into index.json, leaving any foreign entries untouched.
|
Command presetgen publishes the repo's authored presets (presets/sqi/*.yaml by default, or the directory -presets names) into a checkout of the preset-library repo: it writes the definition files under a namespaced subdir and merges their entries into index.json, leaving any foreign entries untouched. |
|
sqi-load
command
Command sqi-load is the sqi load and soak harness.
|
Command sqi-load is the sqi load and soak harness. |
|
sqi-server
command
Command sqi-server is the sqi distributed task management server.
|
Command sqi-server is the sqi distributed task management server. |
|
sqi-worker
command
Command sqi-worker is the sqi distributed task management worker agent.
|
Command sqi-worker is the sqi distributed task management worker agent. |
|
internal
|
|
|
api
Package api wires together the sqi-server HTTP surface: the chi router, standard middleware stack, and all route groups.
|
Package api wires together the sqi-server HTTP surface: the chi router, standard middleware stack, and all route groups. |
|
auth
Package auth defines the authentication vocabulary shared across the sqi server surface: the request Principal, the pluggable Authenticator interface, and a no-op anonymous authenticator used when auth is disabled.
|
Package auth defines the authentication vocabulary shared across the sqi server surface: the request Principal, the pluggable Authenticator interface, and a no-op anonymous authenticator used when auth is disabled. |
|
auth/apikey
Package apikey implements a Bearer-token auth.Authenticator: it reads an Authorization: Bearer <key> header, resolves the key's hash to a live, non-revoked, non-expired api_keys row and its owning user, and returns the corresponding auth.Principal.
|
Package apikey implements a Bearer-token auth.Authenticator: it reads an Authorization: Bearer <key> header, resolves the key's hash to a live, non-revoked, non-expired api_keys row and its owning user, and returns the corresponding auth.Principal. |
|
auth/jointoken
Package jointoken mints and hashes worker join tokens: the one-time or reusable secrets an operator issues (via the CLI or the REST API) and a worker redeems to enroll and receive its broker credential.
|
Package jointoken mints and hashes worker join tokens: the one-time or reusable secrets an operator issues (via the CLI or the REST API) and a worker redeems to enroll and receive its broker credential. |
|
auth/ldap
Package ldap authenticates usernames and passwords against an LDAP or Active Directory server.
|
Package ldap authenticates usernames and passwords against an LDAP or Active Directory server. |
|
auth/oidc
Package oidc authenticates sqi web UI logins against an OAuth2/OIDC identity provider.
|
Package oidc authenticates sqi web UI logins against an OAuth2/OIDC identity provider. |
|
auth/password
Package password hashes and verifies user passwords with argon2id and mints opaque session tokens.
|
Package password hashes and verifies user passwords with argon2id and mints opaque session tokens. |
|
auth/policy
Package policy is the authorization matrix for sqi's four built-in roles.
|
Package policy is the authorization matrix for sqi's four built-in roles. |
|
auth/rolemap
Package rolemap resolves an external identity's group memberships to one of sqi's RBAC roles.
|
Package rolemap resolves an external identity's group memberships to one of sqi's RBAC roles. |
|
auth/session
Package session implements a cookie-backed auth.Authenticator: it reads the session cookie, resolves its hashed token to a live session and user, and returns the corresponding auth.Principal.
|
Package session implements a cookie-backed auth.Authenticator: it reads the session cookie, resolves its hashed token to a live session and user, and returns the corresponding auth.Principal. |
|
brokerauth
Package brokerauth holds the credential primitives shared by sqi-server and sqi-worker for NATS broker authentication.
|
Package brokerauth holds the credential primitives shared by sqi-server and sqi-worker for NATS broker authentication. |
|
bus
Package bus provides sqi-server's NATS JetStream broker, embedded or external, and the subject and stream definitions sqi's messaging uses.
|
Package bus provides sqi-server's NATS JetStream broker, embedded or external, and the subject and stream definitions sqi's messaging uses. |
|
bus/bustest
Package bustest runs an in-process nats-server cluster booted from sqi's own account layout, for tests of the external broker mode.
|
Package bustest runs an in-process nats-server cluster booted from sqi's own account layout, for tests of the external broker mode. |
|
capacity
Package capacity decides, for each capacity group, how much waiting work it could serve and how many machines it should have.
|
Package capacity decides, for each capacity group, how much waiting work it could serve and how many machines it should have. |
|
capacity/script
Package script runs an operator-configured capacity provider: an executable named by a `script:<name>` provider in the server's configuration.
|
Package script runs an operator-configured capacity provider: an executable named by a `script:<name>` provider in the server's configuration. |
|
certgen
Package certgen generates the certificate material a farm needs to run sqi over TLS: a farm certificate authority, server certificates for the API listener and the embedded broker, and client certificates for the optional worker mTLS path.
|
Package certgen generates the certificate material a farm needs to run sqi over TLS: a farm certificate authority, server certificates for the API listener and the embedded broker, and client certificates for the optional worker mTLS path. |
|
config
Package config defines the sqi-server runtime configuration and provides layered loading from built-in defaults, a YAML/JSON file, SQI_* environment variables, and CLI flag overrides β in that override order.
|
Package config defines the sqi-server runtime configuration and provides layered loading from built-in defaults, a YAML/JSON file, SQI_* environment variables, and CLI flag overrides β in that override order. |
|
config/pathseedtest
Package pathseedtest checks that a configuration's NamedPaths covers every path-valued field of its struct, for the server's and the worker's tests.
|
Package pathseedtest checks that a configuration's NamedPaths covers every path-valued field of its struct, for the server's and the worker's tests. |
|
configinit
Package configinit implements "config init" for sqi-server and sqi-worker: it renders a starter configuration file and writes it with the owner, mode or ACL the platform needs.
|
Package configinit implements "config init" for sqi-server and sqi-worker: it renders a starter configuration file and writes it with the owner, mode or ACL the platform needs. |
|
diag
Package diag holds the server-side in-memory ring buffer of diagnostic (operational) log records gathered from sqi-server itself and from connected workers.
|
Package diag holds the server-side in-memory ring buffer of diagnostic (operational) log records gathered from sqi-server itself and from connected workers. |
|
discovery
Package discovery advertises the running sqi-server on the local network via multicast DNS (mDNS / DNS-SD) so that workers and the sqi CLI can find it without manual address configuration.
|
Package discovery advertises the running sqi-server on the local network via multicast DNS (mDNS / DNS-SD) so that workers and the sqi CLI can find it without manual address configuration. |
|
envvar
Package envvar reads typed configuration overrides from environment variables.
|
Package envvar reads typed configuration overrides from environment variables. |
|
eta
Package eta computes how much work a job or queue has left, from the task counts, measured run times and attempt progress the store reports.
|
Package eta computes how much work a job or queue has left, from the task counts, measured run times and attempt progress the store reports. |
|
fslock
Package fslock takes an exclusive, non-blocking operating-system lock on a file.
|
Package fslock takes an exclusive, non-blocking operating-system lock on a file. |
|
fsutil
Package fsutil holds small filesystem helpers shared across sqi.
|
Package fsutil holds small filesystem helpers shared across sqi. |
|
fsutil/fsutiltest
Package fsutiltest makes filesystem links for tests.
|
Package fsutiltest makes filesystem links for tests. |
|
ha
Package ha elects one leader among the sqi servers sharing a database.
|
Package ha elects one leader among the sqi servers sharing a database. |
|
health
Package health implements liveness and readiness checks for sqi-server.
|
Package health implements liveness and readiness checks for sqi-server. |
|
loadtest/chaos
Package chaos drives a load run's faults: it fires each of the scenario's faults at its time against the managed target and the simulated fleet, heals it, and records when it did both.
|
Package chaos drives a load run's faults: it fires each of the scenario's faults at its time against the managed target and the simulated fleet, heals it, and records when it did both. |
|
loadtest/client
Package client is the load harness's REST and WebSocket client for a running sqi-server.
|
Package client is the load harness's REST and WebSocket client for a running sqi-server. |
|
loadtest/dbfault
Package dbfault holds the faults a chaos run applies to the store from outside the server.
|
Package dbfault holds the faults a chaos run applies to the store from outside the server. |
|
loadtest/diskfill
Package diskfill fills a volume, so a chaos run can make a disk full without writing anything of the server's or a worker's own.
|
Package diskfill fills a volume, so a chaos run can make a disk full without writing anything of the server's or a worker's own. |
|
loadtest/driver
Package driver generates and submits the load a scenario describes.
|
Package driver generates and submits the load a scenario describes. |
|
loadtest/internal/proctest
Package proctest helps the load harness's tests check on the processes a run started.
|
Package proctest helps the load harness's tests check on the processes a run started. |
|
loadtest/internal/sleep
Package sleep holds the load harness's context-aware sleeps.
|
Package sleep holds the load harness's context-aware sleeps. |
|
loadtest/internal/testserver
Package testserver starts a full in-process sqi-server (SQLite, embedded NATS, scheduler and HTTP) for the load harness's own tests.
|
Package testserver starts a full in-process sqi-server (SQLite, embedded NATS, scheduler and HTTP) for the load harness's own tests. |
|
loadtest/marker
Package marker records what a load run's real tasks did, in files under a directory the harness owns: one exec file per process the no-op command started, refreshed while the process lives, and one output file per task key, appended to by every process that writes the task's output.
|
Package marker records what a load run's real tasks did, in files under a directory the harness owns: one exec file per process the no-op command started, refreshed while the process lives, and one output file per task key, appended to by every process that writes the task's output. |
|
loadtest/measure
Package measure holds the harness's measurement primitives: a mergeable latency histogram, named time series and growth slopes.
|
Package measure holds the harness's measurement primitives: a mergeable latency histogram, named time series and growth slopes. |
|
loadtest/netfault
Package netfault is a TCP proxy that a load or chaos run puts between a client and a server so it can cut, blackhole or shape the connection without touching either end.
|
Package netfault is a TCP proxy that a load or chaos run puts between a client and a server so it can cut, blackhole or shape the connection without touching either end. |
|
loadtest/observe
Package observe samples a load run into time series: the server's /metrics, the disk its state occupies, JetStream stream state, pprof profiles, and the load generator's own health, which decides whether the run is valid.
|
Package observe samples a load run into time series: the server's /metrics, the disk its state occupies, JetStream stream state, pprof profiles, and the load generator's own health, which decides whether the run is valid. |
|
loadtest/report
Package report turns a finished load run into the files an operator reads: the run record (run.json), summary.md and series.csv, the findings rules that flag suspicious behavior, run-against-run comparison, the merge of shard records and the knee of a sweep.
|
Package report turns a finished load run into the files an operator reads: the run record (run.json), summary.md and series.csv, the findings rules that flag suspicious behavior, run-against-run comparison, the merge of shard records and the knee of a sweep. |
|
loadtest/runner
Package runner runs one load scenario end to end against an sqi-server and writes its record.
|
Package runner runs one load scenario end to end against an sqi-server and writes its record. |
|
loadtest/scenario
Package scenario defines the load harness's scenario file: the YAML schema, its defaults, its validation and the --set overrides applied on top of it.
|
Package scenario defines the load harness's scenario file: the YAML schema, its defaults, its validation and the --set overrides applied on top of it. |
|
loadtest/simworker
Package simworker is the load harness's simulated worker: a process-light stand-in for sqi-worker that speaks the real worker protocol through the real worker packages (lease, heartbeat, status, logstreamer, cancel), so a protocol change breaks its build rather than skewing its numbers.
|
Package simworker is the load harness's simulated worker: a process-light stand-in for sqi-worker that speaks the real worker protocol through the real worker packages (lease, heartbeat, status, logstreamer, cancel), so a protocol change breaks its build rather than skewing its numbers. |
|
loadtest/target
Package target provides the sqi-server a load run drives: a managed one the harness starts, configures and stops itself, or an attached one somebody else runs, on which the harness creates and later deletes its own farm.
|
Package target provides the sqi-server a load run drives: a managed one the harness starts, configures and stops itself, or an attached one somebody else runs, on which the harness creates and later deletes its own farm. |
|
loadtest/target/noop
command
Command noop is the task a load run's real workers execute.
|
Command noop is the task a load run's real workers execute. |
|
loadtest/verify
Package verify decides whether a load run passed.
|
Package verify decides whether a load run passed. |
|
log
Package log provides slog-based structured logging for the sqi binaries.
|
Package log provides slog-based structured logging for the sqi binaries. |
|
metrics
Package metrics defines and registers all Prometheus metrics for sqi-server.
|
Package metrics defines and registers all Prometheus metrics for sqi-server. |
|
middleware
Package middleware provides net/http middleware for sqi-server.
|
Package middleware provides net/http middleware for sqi-server. |
|
openjd
Package openjd implements parsing, validation, and parameter-space expansion for Open Job Description (OpenJD) job templates.
|
Package openjd implements parsing, validation, and parameter-space expansion for Open Job Description (OpenJD) job templates. |
|
openjd/expr
Package expr reads and evaluates the OpenJD EXPR extension's expression language.
|
Package expr reads and evaluates the OpenJD EXPR extension's expression language. |
|
openjd/fmtstring
Package fmtstring resolves Open Job Description (OpenJD) format strings.
|
Package fmtstring resolves Open Job Description (OpenJD) format strings. |
|
openjd/intrange
Package intrange implements the OpenJD base specification's <IntRangeExpr> grammar (2023-09 Template Schemas, section 3.4.1.1.1): the succinct "1,3,7-10:2" form used for frame ranges.
|
Package intrange implements the OpenJD base specification's <IntRangeExpr> grammar (2023-09 Template Schemas, section 3.4.1.1.1): the succinct "1,3,7-10:2" form used for frame ranges. |
|
openjd/logpattern
Package logpattern compiles an SQI_LOG_CHECKS pattern under the size bound that both the server (submission validation, internal/openjd) and the worker (the checker it runs against every output line, internal/worker/executor) enforce.
|
Package logpattern compiles an SQI_LOG_CHECKS pattern under the size bound that both the server (submission validation, internal/openjd) and the worker (the checker it runs against every output line, internal/worker/executor) enforce. |
|
openjd/logprogress
Package logprogress recognizes task progress and status text in a task's output lines.
|
Package logprogress recognizes task progress and status text in a task's output lines. |
|
pgdsn
Package pgdsn reads PostgreSQL connection strings (DSNs) the way the driver does, to keep their secrets out of places they must not reach: Redact for `sqi-server config print`, and WithoutPassword for a pg_dump command line, which any local user can read from the process list.
|
Package pgdsn reads PostgreSQL connection strings (DSNs) the way the driver does, to keep their secrets out of places they must not reach: Redact for `sqi-server config print`, and WithoutPassword for a pg_dump command line, which any local user can read from the process list. |
|
presetgen
Package presetgen generates a preset-library index and definition files from the repo's authored presets (presets/sqi/*.yaml) and publishes them into a library checkout.
|
Package presetgen generates a preset-library index and definition files from the repo's authored presets (presets/sqi/*.yaml) and publishes them into a library checkout. |
|
presetlib
Package presetlib is the client for a community preset library: it fetches a static JSON index (cached in memory) and, on install, fetches and verifies a single preset definition.
|
Package presetlib is the client for a community preset library: it fetches a static JSON index (cached in memory) and, on install, fetches and verifies a single preset definition. |
|
presettest
Package presettest is the preset validation harness.
|
Package presettest is the preset validation harness. |
|
product
Package product is the catalog layer over OpenJD templates: it parses product definition files, holds the embedded built-ins, validates inline templates, and overlays read-only built-ins on the store via Catalog.
|
Package product is the catalog layer over OpenJD templates: it parses product definition files, holds the embedded built-ins, validates inline templates, and overlays read-only built-ins on the store via Catalog. |
|
redact
Package redact strips credentials from broker URLs before they reach a log line, an error message, a terminal or a network advertisement.
|
Package redact strips credentials from broker URLs before they reach a log line, an error message, a terminal or a network advertisement. |
|
restore
Package restore puts a backup in place and makes the farm safe to resume from it: every attempt the restored database still records as open is handed back (the fence), and the JetStream state, whose messages belong to a different moment, is moved aside (the embedded broker's directory) or purged (an external broker).
|
Package restore puts a backup in place and makes the farm safe to resume from it: every attempt the restored database still records as open is handed back (the fence), and the JetStream state, whose messages belong to a different moment, is moved aside (the embedded broker's directory) or purged (an external broker). |
|
scheduler
Package scheduler implements the sqi-server assignment loop and worker registry.
|
Package scheduler implements the sqi-server assignment loop and worker registry. |
|
secretin
Package secretin reads one line of secret input from a cobra command's stdin, with console echo disabled on Windows when stdin is an interactive console, and a plain line read otherwise (pipes, redirected files, POSIX).
|
Package secretin reads one line of secret input from a cobra command's stdin, with console echo disabled on Windows when stdin is an interactive console, and a plain line read otherwise (pipes, redirected files, POSIX). |
|
server
Package server owns the sqi-server component lifecycle: starting and stopping the store, message bus, scheduler, HTTP server, and mDNS responder in the correct dependency order.
|
Package server owns the sqi-server component lifecycle: starting and stopping the store, message bus, scheduler, HTTP server, and mDNS responder in the correct dependency order. |
|
store
Package store defines the storage interface for sqi-server and the domain model types shared across all components.
|
Package store defines the storage interface for sqi-server and the domain model types shared across all components. |
|
store/backend
Package backend opens the state store the configuration names, so the server and the CLIs do not each switch on the driver.
|
Package backend opens the state store the configuration names, so the server and the CLIs do not each switch on the driver. |
|
store/fake
Package fake provides an in-memory implementation of store.Store for unit tests that must avoid touching the filesystem.
|
Package fake provides an in-memory implementation of store.Store for unit tests that must avoid touching the filesystem. |
|
store/migrations
Package migrations embeds the SQL migration files goose uses to manage the sqi-server state store schema, one set per driver: FS for SQLite (this directory, from 00001) and PostgresFS for PostgreSQL (the postgres subdirectory, from 00037_baseline.sql).
|
Package migrations embeds the SQL migration files goose uses to manage the sqi-server state store schema, one set per driver: FS for SQLite (this directory, from 00001) and PostgresFS for PostgreSQL (the postgres subdirectory, from 00037_baseline.sql). |
|
store/postgres
Package postgres is the PostgreSQL state store: the shared SQL store in internal/store/sqlstore over pgx, with the locking and retry a database with concurrent writers needs.
|
Package postgres is the PostgreSQL state store: the shared SQL store in internal/store/sqlstore over pgx, with the locking and retry a database with concurrent writers needs. |
|
store/schemainfo
Package schemainfo reads the shape of a migrated sqi database β tables, columns, primary keys, foreign-key targets β from either backend's catalog, for tools that must follow the live schema rather than a hard-coded list (storecopy).
|
Package schemainfo reads the shape of a migrated sqi database β tables, columns, primary keys, foreign-key targets β from either backend's catalog, for tools that must follow the live schema rather than a hard-coded list (storecopy). |
|
store/sqlite
Package sqlite provides the SQLite store.Store: it opens the database, applies its PRAGMAs, runs migrations, and builds the shared SQL store (internal/store/sqlstore) over its pools with the SQLite dialect.
|
Package sqlite provides the SQLite store.Store: it opens the database, applies its PRAGMAs, runs migrations, and builds the shared SQL store (internal/store/sqlstore) over its pools with the SQLite dialect. |
|
store/sqlstore
Package sqlstore is the SQL implementation of store.Store shared by every database the store runs on.
|
Package sqlstore is the SQL implementation of store.Store shared by every database the store runs on. |
|
store/storecopy
Package storecopy copies a stopped farm's SQLite database into an empty PostgreSQL database, verbatim, in one PostgreSQL transaction, and verifies every table by row count and digest before committing.
|
Package storecopy copies a stopped farm's SQLite database into an empty PostgreSQL database, verbatim, in one PostgreSQL transaction, and verifies every table by row count and digest before committing. |
|
store/storetest
Package storetest builds store state for tests through the production write path: CreateJobSubmission for rows, LeaseTask and StartTaskAttempt for work in flight, CompleteTaskAttempt and RecordTaskFailure for work that ended.
|
Package storetest builds store state for tests through the production write path: CreateJobSubmission for rows, LeaseTask and StartTaskAttempt for work in flight, CompleteTaskAttempt and RecordTaskFailure for work that ended. |
|
testport
Package testport hands tests loopback ports a server can bind again after it stops: a broker or node restarted on its old port must find that port free while it is down.
|
Package testport hands tests loopback ports a server can bind again after it stops: a broker or node restarted on its old port must find that port free while it is down. |
|
tlsutil
Package tlsutil holds the TLS loading primitives shared by every component that terminates or dials TLS: the API listener, the embedded broker, the worker's broker client and the worker's enrollment client.
|
Package tlsutil holds the TLS loading primitives shared by every component that terminates or dials TLS: the API listener, the embedded broker, the worker's broker client and the worker's enrollment client. |
|
ui
Package ui serves the embedded web UI bundle over HTTP with single-page application (SPA) routing semantics.
|
Package ui serves the embedded web UI bundle over HTTP with single-page application (SPA) routing semantics. |
|
version
Package version holds build-time metadata injected by the release toolchain.
|
Package version holds build-time metadata injected by the release toolchain. |
|
winsvc
Package winsvc lets sqi-server and sqi-worker run as Windows services and installs them as such.
|
Package winsvc lets sqi-server and sqi-worker run as Windows services and installs them as such. |
|
wol
Package wol builds and sends Wake-on-LAN magic packets.
|
Package wol builds and sends Wake-on-LAN magic packets. |
|
worker/cancel
Package cancel receives the server's cancel signals for sqi-worker.
|
Package cancel receives the server's cancel signals for sqi-worker. |
|
worker/capabilities
Package capabilities provides auto-detection and manual override of sqi-worker host capabilities reported to sqi-server at registration time.
|
Package capabilities provides auto-detection and manual override of sqi-worker host capabilities reported to sqi-server at registration time. |
|
worker/commands
Package commands lets a worker's operator say where a command a job runs really lives.
|
Package commands lets a worker's operator say where a command a job runs really lives. |
|
worker/config
Package config defines the sqi-worker runtime configuration and provides layered loading from built-in defaults, a YAML/JSON file, SQI_WORKER_* environment variables, and CLI flag overrides, in that override order.
|
Package config defines the sqi-worker runtime configuration and provides layered loading from built-in defaults, a YAML/JSON file, SQI_WORKER_* environment variables, and CLI flag overrides, in that override order. |
|
worker/diaglog
Package diaglog implements the sqi-worker diagnostic-log sink.
|
Package diaglog implements the sqi-worker diagnostic-log sink. |
|
worker/discovery
Package discovery provides mDNS-based sqi-server discovery for sqi-worker.
|
Package discovery provides mDNS-based sqi-server discovery for sqi-worker. |
|
worker/enroll
Package enroll obtains the nkey broker credential sqi-worker authenticates with: loading an existing seed from disk when one is present, and otherwise enrolling with sqi-server over REST when a join token is configured.
|
Package enroll obtains the nkey broker credential sqi-worker authenticates with: loading an existing seed from disk when one is present, and otherwise enrolling with sqi-server over REST when a join token is configured. |
|
worker/envutil
Package envutil provides shared helpers for building process environment variable slices from os.Environ() plus a caller-supplied override map.
|
Package envutil provides shared helpers for building process environment variable slices from os.Environ() plus a caller-supplied override map. |
|
worker/executor
Package executor implements the bare-metal task executor for sqi-worker.
|
Package executor implements the bare-metal task executor for sqi-worker. |
|
worker/fmtres
Package fmtres resolves OpenJD "{{...}}" format strings on the worker, where the session working directory, and therefore Session.WorkingDirectory, is known only at run time.
|
Package fmtres resolves OpenJD "{{...}}" format strings on the worker, where the session working directory, and therefore Session.WorkingDirectory, is known only at run time. |
|
worker/heartbeat
Package heartbeat implements the worker's periodic liveness signal to sqi-server.
|
Package heartbeat implements the worker's periodic liveness signal to sqi-server. |
|
worker/isolation
Package isolation runs job-supplied processes under a queue-configured OS identity instead of the worker daemon's own account.
|
Package isolation runs job-supplied processes under a queue-configured OS identity instead of the worker daemon's own account. |
|
worker/lease
Package lease implements the worker side of the work-lease protocol: it keeps one outstanding lease request per queue and dispatches each assignment the server returns.
|
Package lease implements the worker side of the work-lease protocol: it keeps one outstanding lease request per queue and dispatches each assignment the server returns. |
|
worker/logstreamer
Package logstreamer implements the log-chunk publisher for sqi-worker.
|
Package logstreamer implements the log-chunk publisher for sqi-worker. |
|
worker/metrics
Package metrics defines and registers all Prometheus metrics for sqi-worker.
|
Package metrics defines and registers all Prometheus metrics for sqi-worker. |
|
worker/natsclient
Package natsclient provides the NATS client factory for sqi-worker.
|
Package natsclient provides the NATS client factory for sqi-worker. |
|
worker/obs
Package obs provides the local observability HTTP server for sqi-worker.
|
Package obs provides the local observability HTTP server for sqi-worker. |
|
worker/openjd
Package openjd implements the OpenJD progress-line interceptor for sqi-worker.
|
Package openjd implements the OpenJD progress-line interceptor for sqi-worker. |
|
worker/pathmap
Package pathmap implements resolved-mode path substitution for sqi-worker.
|
Package pathmap implements resolved-mode path substitution for sqi-worker. |
|
worker/power
Package power lets sqi-server put the machine a worker runs on to sleep or power it off, and asks a worker to wake a peer, on behalf of a capacity group.
|
Package power lets sqi-server put the machine a worker runs on to sleep or power it off, and asks a worker to wake a peer, on behalf of a capacity group. |
|
worker/preempt
Package preempt watches a cloud provider's instance metadata service for the notice that a spot or preemptible machine is about to be reclaimed, so the worker running on it can hand its tasks back at once instead of being killed mid-task.
|
Package preempt watches a cloud provider's instance metadata service for the notice that a spot or preemptible machine is about to be reclaimed, so the worker running on it can hand its tasks back at once instead of being killed mid-task. |
|
worker/procout
Package procout starts a child process with its output read in a way that lets the process's exit be seen while a descendant still holds that output open.
|
Package procout starts a child process with its output read in a way that lets the process's exit be seen while a descendant still holds that output open. |
|
worker/proctree
Package proctree contains a launched process and everything it spawns, so a worker can wait for, signal and stop the whole tree rather than only its direct child.
|
Package proctree contains a launched process and everything it spawns, so a worker can wait for, signal and stop the whole tree rather than only its direct child. |
|
worker/protocol
Package protocol defines the versioned JSON wire protocol used between sqi-server and sqi-worker agents.
|
Package protocol defines the versioned JSON wire protocol used between sqi-server and sqi-worker agents. |
|
worker/registration
Package registration manages worker registration with sqi-server over NATS.
|
Package registration manages worker registration with sqi-server over NATS. |
|
worker/session
Package session manages the lifecycle of OpenJD sessions on the worker.
|
Package session manages the lifecycle of OpenJD sessions on the worker. |
|
worker/staging
Package staging implements the stage_locally path delivery: copying job inputs to worker-local scratch before a task runs and outputs back afterward.
|
Package staging implements the stage_locally path delivery: copying job inputs to worker-local scratch before a task runs and outputs back afterward. |
|
worker/status
Package status implements the typed task-status publisher for sqi-worker.
|
Package status implements the typed task-status publisher for sqi-worker. |
|
ws
Package ws defines the typed WebSocket message envelope shared by the server upgrade handler (internal/api) and the fanout layer.
|
Package ws defines the typed WebSocket message envelope shared by the server upgrade handler (internal/api) and the fanout layer. |
|
yamlstrict
Package yamlstrict decodes a YAML (or JSON) config file and fails on any key the target type does not have, naming the key by its dotted path.
|
Package yamlstrict decodes a YAML (or JSON) config file and fails on any key the target type does not have, naming the key by its dotted path. |
|
Package pkg is the root of the sqi public Go API.
|
Package pkg is the root of the sqi public Go API. |
|
test
|
|
|
chaos
Package chaos holds the Go-test entry point of the chaos suite: it runs every built-in chaos-* scenario (internal/loadtest/scenario/library) end to end against a real sqi-server, with simulated workers and real sqi-worker processes, while the scenario's faults kill, stall and cut them, and fails on any invariant the run breaks that the scenario does not expect.
|
Package chaos holds the Go-test entry point of the chaos suite: it runs every built-in chaos-* scenario (internal/loadtest/scenario/library) end to end against a real sqi-server, with simulated workers and real sqi-worker processes, while the scenario's faults kill, stall and cut them, and fails on any invariant the run breaks that the scenario does not expect. |
|
conformance
Package conformance runs the official OpenJD conformance test suite (https://github.com/OpenJobDescription/openjd-specifications) against sqi's internal/openjd implementation.
|
Package conformance runs the official OpenJD conformance test suite (https://github.com/OpenJobDescription/openjd-specifications) against sqi's internal/openjd implementation. |
|
integration/s3sync
command
Command s3sync is a test-only sync helper for the S3 staging integration test.
|
Command s3sync is a test-only sync helper for the S3 staging integration test. |
|
load
Package load holds the Go-test entry point of the load and soak harness (internal/loadtest, cmd/sqi-load): it runs the built-in smoke scenario end to end against a real sqi-server process with simulated workers.
|
Package load holds the Go-test entry point of the load and soak harness (internal/loadtest, cmd/sqi-load): it runs the built-in smoke scenario end to end against a real sqi-server process with simulated workers. |
|
oracle
Package oracle differential-tests sqi's Go EXPR evaluator (internal/openjd/expr) against the implementation the OpenJD specification names as its reference, in the Recommended Library Interface section.
|
Package oracle differential-tests sqi's Go EXPR evaluator (internal/openjd/expr) against the implementation the OpenJD specification names as its reference, in the Recommended Library Interface section. |
|
stubproc
command
Command stubproc is a stand-in for any vendor CLI a preset invokes.
|
Command stubproc is a stand-in for any vendor CLI a preset invokes. |
|
stubproc/record
Package record is the wire shape of one stubproc invocation record.
|
Package record is the wire shape of one stubproc invocation record. |
|
winservice
Package winservice drives sqi-server and sqi-worker through the real Windows Service Control Manager.
|
Package winservice drives sqi-server and sqi-worker through the real Windows Service Control Manager. |
|
Package web embeds the compiled web UI bundle into the sqi-server binary so the single binary serves its own front-end with no external asset directory.
|
Package web embeds the compiled web UI bundle into the sqi-server binary so the single binary serves its own front-end with no external asset directory. |
Click to show internal directories.
Click to hide internal directories.
