API

GithubRunnerCache

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/github_runner_cache create Cache lookup, upload reservation, or publication result

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

created, err := client.GithubRunnerCache(nil).Create(map[string]any{"operation": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local created, err = client:GithubRunnerCache():create({ operation = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$created = $client->GithubRunnerCache()->create(["operation" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

created = client.GithubRunnerCache().create({ "operation": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

created = client.GithubRunnerCache.create({ "operation" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const created = await client.GithubRunnerCache().create({ operation: "example" })

Fields

Field Type Required Description
entry_id string No Entry Id
key string No Key
matched_key string No Matched Key
ok boolean Yes Ok
operation string Yes Operation
restore_keys array No Restore Keys
signed_download_url string No Signed Download Url
size_bytes string No Size Bytes
upload_path string No Upload Path
version string No Version

create

POST /api/v1/github_runner_cache

Operation ID: api_v1_github_runner_cache.

Authentication: bearer token (bearerAuth).

Request body

application/json

Property Type Required Description
entry_id string No
key string No
operation enum: GetCacheEntryDownloadURL, CreateCacheEntry, ReserveUpload, FinalizeCacheEntryUpload Yes
restore_keys array of string No
size_bytes string No
version string No

Responses

200: Cache lookup, upload reservation, or publication result

application/json

Property Type Required Description
entry_id string No
matched_key string No
ok boolean Yes
signed_download_url string No
size_bytes string No
upload_path string No
401: Invalid or expired runner attempt
403: Forbidden
404: Not found
409: Cache key exists or upload belongs to another attempt
422: Unprocessable entity
502: Bad gateway
503: Namespace disabled or actual assignment not yet observed
507: Namespace capacity exhausted