{"modulePath":"github.com/lanescape/runners","version":"v0.0.0-20261123184534-aafd7254d814","isStandardLibrary":false,"packages":{"items":[{"path":"github.com/lanescape/runners/actions/cache","name":"main","synopsis":"Command cache is the cache action's program (specs/0007-actions.md, cache): it asks the runner service which version of a cache the run restores, downloads its objects from Cloud Storage, checking each, and extracts them under a directory, the files' archives at once and the directories' archive last.","isRedistributable":true},{"path":"github.com/lanescape/runners/actions/checkout","name":"main","synopsis":"Command checkout is the checkout action's program (specs/0007-actions.md, checkout).","isRedistributable":true},{"path":"github.com/lanescape/runners/actions/disk","name":"main","synopsis":"Command disk is the disk action's program (specs/0007-actions.md, disk): it asks the runner service for the job's work disk, asks again while the disk is being made, and waits until it's mounted at /work.","isRedistributable":true},{"path":"github.com/lanescape/runners/actions/internal/actions","name":"actions","synopsis":"Package actions is what a step's program gets from GitHub Actions and gives back: its environment, its inputs, its outputs, its summary, and the masking of values the log must never show.","isRedistributable":true},{"path":"github.com/lanescape/runners/actions/internal/archive","name":"archive","synopsis":"Package archive is how a cache's tree becomes archives and comes back (specs/0007-actions.md, save-cache and cache): a parallel walk, shards of files and symlinks balanced by the reads they take, and tar archives in PAX format, compressed with zstd, of each shard and of the directories.","isRedistributable":true},{"path":"github.com/lanescape/runners/actions/internal/backoff","name":"backoff","synopsis":"Package backoff is how the actions wait between attempts at a call that may succeed later.","isRedistributable":true},{"path":"github.com/lanescape/runners/actions/internal/event","name":"event","synopsis":"Package event is what the actions read of a run's event: the job's GITHUB_ variables and the event's payload, at GITHUB_EVENT_PATH.","isRedistributable":true},{"path":"github.com/lanescape/runners/actions/internal/gcs","name":"gcs","synopsis":"Package gcs uploads and downloads a cache's objects with Cloud Storage's JSON API, signed with the short-lived, downscoped access token the runner service hands a job for them (specs/0007-actions.md, save-cache and cache).","isRedistributable":true},{"path":"github.com/lanescape/runners/actions/internal/metadata","name":"metadata","synopsis":"Package metadata asks the machine's metadata server, as Compute Engine serves it, whether the machine is one of the runner service's, and for its identity token: for an audience, in the full format, which names the machine.","isRedistributable":true},{"path":"github.com/lanescape/runners/actions/internal/mount","name":"mount","synopsis":"Package mount tells whether a directory is a mount point, as a process sees its mounts in /proc/self/mountinfo.","isRedistributable":true},{"path":"github.com/lanescape/runners/actions/internal/service","name":"service","synopsis":"Package service calls the runner service through its interface for actions, specs/0005-interface.md: nothing else of the service's is relied on.","isRedistributable":true},{"path":"github.com/lanescape/runners/actions/internal/testgithub","name":"testgithub","synopsis":"Package testgithub is what the tests need of this repository's GitHub emulator beyond the emulator itself: a job's environment, as GitHub gives a step its variables, event, files and GITHUB_TOKEN, and the tokens handed out, which tests check no log shows.","isRedistributable":true},{"path":"github.com/lanescape/runners/actions/internal/where","name":"where","synopsis":"Package where decides whether an action is inside the organization or outside it (specs/0007-actions.md, Where an action is).","isRedistributable":true},{"path":"github.com/lanescape/runners/actions/save-cache","name":"main","synopsis":"Command save-cache is the save-cache action's program (specs/0007-actions.md, save-cache): it asks the runner service for a version of a cache to save, walks a directory, uploads its files and symlinks in shards, and its directories, as compressed archives to Cloud Storage, all at once, and then commits the version.","isRedistributable":true},{"path":"github.com/lanescape/runners/cmd/runners","name":"main","synopsis":"Command runners is the service, on Cloud Run (specs/0001-architecture.md).","isRedistributable":true},{"path":"github.com/lanescape/runners/config","name":"config","synopsis":"Package config is the service's configuration: the organization's ID, shapes, the runner version and what goes into the base images.","isRedistributable":true},{"path":"github.com/lanescape/runners/conformance","name":"conformance","synopsis":"Package conformance is the interface's test suite (specs/0005-interface.md): one set of cases that this repository runs, in CI, against both its service emulator, emulators/service, and the real service wired to its emulators of GitHub, Compute Engine, Google's issuers, Pub/Sub and Cloud Storage.","isRedistributable":true},{"path":"github.com/lanescape/runners/emulators/compute","name":"compute","synopsis":"Package compute emulates the parts of Compute Engine the service uses, as Google's REST client (google.golang.org/api/compute/v1) calls them over HTTP: instances, with their labels, metadata, guest attributes and serial output; disks, attached and detached; images; and zone and global operations.","isRedistributable":true},{"path":"github.com/lanescape/runners/emulators/fault","name":"fault","synopsis":"Package fault makes an emulator fail requests as the real service does: before doing the work, after doing it with the response lost, slowly, or by dropping the connection.","isRedistributable":true},{"path":"github.com/lanescape/runners/emulators/github","name":"github","synopsis":"Package github emulates the parts of GitHub the service uses: the REST API as go-github calls it, authenticated as a GitHub App installation; an Actions OIDC issuer; and signed webhook deliveries.","isRedistributable":true},{"path":"github.com/lanescape/runners/emulators/github/cmd/standin","name":"main","synopsis":"Command standin is the GitHub emulator's runner stand-in as a program, in place of the runner's run.sh: configured from its environment as the runner is, it takes one job, runs its job-started hook and steps, reports it and exits.","isRedistributable":true},{"path":"github.com/lanescape/runners/emulators/google","name":"google","synopsis":"Package google emulates Google's ID token issuer, as Cloud Scheduler and Pub/Sub push subscriptions sign their calls: tokens for a service account's email, with the audience the caller was configured with; the bodies of Pub/Sub's pushes; and Pub/Sub's publishing (PubSub).","isRedistributable":true},{"path":"github.com/lanescape/runners/emulators/oidc","name":"oidc","synopsis":"Package oidc is an OpenID Connect issuer with its own signing keys and published key set, for emulating GitHub's Actions tokens and Google's ID tokens.","isRedistributable":true},{"path":"github.com/lanescape/runners/emulators/service","name":"service","synopsis":"Package service emulates this repository's service as its interface for actions describes it (specs/0005-interface.md), and nothing more: runs bound at their first job's check, as the service binds them, work disks, always empty, and caches, restored from the versions of the run's restore chain and saved into the caches' bucket of a Cloud Storage emulator.","isRedistributable":true},{"path":"github.com/lanescape/runners/emulators/storage","name":"storage","synopsis":"Package storage emulates Cloud Storage's JSON and XML APIs, as cloud.google.com/go/storage calls them over HTTP: buckets of objects with generations, preconditions, reads, lists by prefix and deletes, and uploads in one request or resumable, in chunks.","isRedistributable":true},{"path":"github.com/lanescape/runners/endpoints","name":"endpoints","synopsis":"Package endpoints is where the service is, and the one organization it serves, as the actions that call it rely on (specs/0005-interface.md, Where the service is).","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/auth","name":"auth","synopsis":"Package auth authenticates the service's callers (specs/0001-architecture.md, Endpoints): GitHub's webhook deliveries by their HMAC signature, Google's signed calls from the scheduler and push subscriptions, and the service's machines by their Compute Engine identity tokens.","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/bases","name":"bases","synopsis":"Package bases makes the service's base images (specs/0003-disks.md, Base images): one per architecture, lsr-base-\u003carch\u003e-\u003ckey\u003e, whose key covers everything that goes into it.","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/binding","name":"binding","synopsis":"Package binding binds each run's scope, once, in the bucket (specs/0002-machines.md, Binding a run).","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/compute","name":"compute","synopsis":"Package compute is the service's view of Compute Engine: its machines, their disks and the images they boot, in one project, through Google's REST client.","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/consumer","name":"consumer","synopsis":"Package consumer reads what a consumer's repository says to the service (specs/0005-interface.md, A consumer's files): its .github/runners.json, and the keys of its caches (specs/0003-disks.md, Keys).","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/deploy","name":"deploy","synopsis":"Package deploy orders the service's deploys, so that a revision a later deploy replaced makes no more machines or base images' builders (specs/0004-deployment.md, Which revision makes machines).","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/disks","name":"disks","synopsis":"Package disks keeps consumers' caches, and makes resume images of the work disks of jobs lost to a preemption or to the age limit (specs/0003-disks.md, specs/0002-machines.md, Preemption).","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/github","name":"github","synopsis":"Package github is the service's view of GitHub: what it reads, as the organization's GitHub App installation, with every answer classed as confirmed or not.","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/lease","name":"lease","synopsis":"Package lease keeps a lease in the bucket: an object taken with a generation precondition, valid for a fixed time unless renewed, and released by deleting exactly the generation its holder last wrote (specs/0001-architecture.md, Passes).","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/logging","name":"logging","synopsis":"Package logging reads the service's machines' boot logs from Cloud Logging (specs/0002-machines.md, A machine's life): Compute Engine sends a machine's serial console there, and serves a stopped or deleted machine's console from nowhere else.","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/machines","name":"machines","synopsis":"Package machines gives queued jobs machines and ends their lives (specs/0002-machines.md, A machine's life): a pass makes a machine for each job that may have one, from one pool for every consumer, oldest job first, and deletes what's finished; the job-started check decides, from GitHub's records, whether the job a machine's runner took may run there; an admitted job asks for its work disk and its save in its steps; and the supervisor's report says the job is done.","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/pass","name":"pass","synopsis":"Package pass runs the reconciler's passes one at a time, under the lease (specs/0001-architecture.md, Passes): taken at the start, renewed every minute, released at the end, with an absolute deadline that caps every call a pass makes, and a stop to everything once a renewal fails.","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/pubsub","name":"pubsub","synopsis":"Package pubsub publishes the webhook's checked deliveries to Pub/Sub (specs/0001-architecture.md, Components): each delivery's body as a message's data, with its event as the attribute \"event\", for the push subscription to deliver to the reconcile endpoint.","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/scope","name":"scope","synopsis":"Package scope is a run's scope: where it may read and save disks (specs/0002-machines.md, Scope).","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/selector","name":"selector","synopsis":"Package selector reads the one label a job asks for a machine by (specs/0002-machines.md, Selectors):","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/server","name":"server","synopsis":"Package server is the service's HTTP interface, versioned under /v1/ (specs/0001-architecture.md, Endpoints).","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/servicetest","name":"servicetest","synopsis":"Package servicetest wires the real service, its machines, disks and webhook, to this repository's emulators of GitHub, Google's issuers, Pub/Sub, Compute Engine and Cloud Storage, as a service.World: what the conformance suite drives.","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/store","name":"store","synopsis":"Package store keeps the service's records in its Cloud Storage bucket, with generation preconditions so that concurrent writers never overwrite each other unknowingly.","isRedistributable":true},{"path":"github.com/lanescape/runners/internal/tokens","name":"tokens","synopsis":"Package tokens mints OAuth access tokens downscoped to one prefix of the caches' bucket, with Google's Credential Access Boundaries, from the service's own credentials (specs/0003-disks.md, Caches): a job gets one that may only read a version's objects, or one that may only create objects under its own version's prefix.","isRedistributable":true},{"path":"github.com/lanescape/runners/machine","name":"machine","synopsis":"Package machine holds what the service puts on its base images, embedded in the service's binary so that nothing in a consumer's repository can change what a machine does before its job starts or after it ends (specs/0004-deployment.md): the sources of the service's three programs, the supervisor, the job-started hook's program and the program that mounts the work disk, each using only Go's standard library and building from its own files alone, as a statically linked binary; the job-started hook's script, which only runs its program; and the units and rule that start the others (specs/0002-machines.md, A machine's life); and the builder's script, which installs them and everything else a base image holds (specs/0003-disks.md, Making a base image).","isRedistributable":true},{"path":"github.com/lanescape/runners/machine/hook","name":"main","synopsis":"Command job-started is the job-started hook's program (specs/0002-machines.md, The job-started check).","isRedistributable":true},{"path":"github.com/lanescape/runners/machine/mountwork","name":"main","synopsis":"Command mount-work mounts the work disk at /work (specs/0002-machines.md, The work disk).","isRedistributable":true},{"path":"github.com/lanescape/runners/machine/supervisor","name":"main","synopsis":"Command supervisor is the service's own program on every machine (specs/0002-machines.md, A machine's life).","isRedistributable":true}],"total":49}}
