SystemKeptReposClient
Kept repos: the repos a store keeps for the runtime's projects without
a GitHub repo, on a runtime serving many tenants. The store's reconcile
holds system:kept-repos (rulings, erasures, reportPurged); the
operator's erasure, system:kept-repos:erase (state,
requestErasure).
Methods
Section titled “Methods”erasures()
Section titled “erasures()”erasures(input?): Promise<KeptRepoErasurePage>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input? |
{ cursor?: string; limit?: number; } |
input.cursor? |
string |
input.limit? |
number |
Returns
Section titled “Returns”Promise<KeptRepoErasurePage>
GET /v1/system/kept-repos/erasures?limit=&cursor=. The unfinished erasures, by tenant then project.
reportPurged()
Section titled “reportPurged()”reportPurged(input): Promise<void>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
KeptRepoRef & object |
Returns
Section titled “Returns”Promise<void>
POST /v1/system/tenants/:tenantId/projects/:projectId/kept-repo/purged.
requestErasure()
Section titled “requestErasure()”requestErasure(input, options?): Promise<KeptRepoState>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
KeptRepoRef |
options? |
{ idempotencyKey?: string; } |
options.idempotencyKey? |
string |
Returns
Section titled “Returns”Promise<KeptRepoState>
POST /v1/system/tenants/:tenantId/projects/:projectId/kept-repo/erasure.
erasure-requested (202), or purged (200) when its erasure is
done already.
rulings()
Section titled “rulings()”rulings(ids): Promise<KeptRepoRulings>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ids |
readonly KeptRepoRef[] |
Returns
Section titled “Returns”Promise<KeptRepoRulings>
POST /v1/system/kept-repos/rulings. Up to 500 ids; one ruling each, in order.
state()
Section titled “state()”state(input): Promise<KeptRepoState>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
KeptRepoRef |
Returns
Section titled “Returns”Promise<KeptRepoState>
GET /v1/system/tenants/:tenantId/projects/:projectId/kept-repo.