Skip to content

SystemKeptReposClient

View as Markdown

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).

erasures(input?): Promise<KeptRepoErasurePage>;
Signature
Parameter Type
input? { cursor?: string; limit?: number; }
input.cursor? string
input.limit? number

Promise<KeptRepoErasurePage>

GET /v1/system/kept-repos/erasures?limit=&cursor=. The unfinished erasures, by tenant then project.


reportPurged(input): Promise<void>;
Signature
Parameter Type
input KeptRepoRef & object

Promise<void>

POST /v1/system/tenants/:tenantId/projects/:projectId/kept-repo/purged.


requestErasure(input, options?): Promise<KeptRepoState>;
Signature
Parameter Type
input KeptRepoRef
options? { idempotencyKey?: string; }
options.idempotencyKey? string

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(ids): Promise<KeptRepoRulings>;
Signature
Parameter Type
ids readonly KeptRepoRef[]

Promise<KeptRepoRulings>

POST /v1/system/kept-repos/rulings. Up to 500 ids; one ruling each, in order.


state(input): Promise<KeptRepoState>;
Signature
Parameter Type
input KeptRepoRef

Promise<KeptRepoState>

GET /v1/system/tenants/:tenantId/projects/:projectId/kept-repo.