Interfaces

ToolArtifacts

Interface: ToolArtifacts

Defined in: src/artifacts/capability.ts:46

The capability on ctx.artifacts — the store's five verbs with the scope already answered.

Methods

delete()

delete(ref): Promise<void>

Defined in: src/artifacts/capability.ts:54

Remove one artifact this scope holds.

Parameters

ref

string

Returns

Promise<void>


get()

get(ref): Promise<ArtifactRecord | null>

Defined in: src/artifacts/capability.ts:52

Ticket + payload. null for missing-or-expired; a digest mismatch throws.

Parameters

ref

string

Returns

Promise<ArtifactRecord | null>


head(ref): Promise<ArtifactMeta | null>

Defined in: src/artifacts/capability.ts:50

The ticket without the payload. null for missing-or-expired.

Parameters

ref

string

Returns

Promise<ArtifactMeta | null>


list()

list(options?): Promise<ArtifactListResult>

Defined in: src/artifacts/capability.ts:56

Page through this scope's tickets, newest first.

Parameters

options?

ArtifactListOptions

Returns

Promise<ArtifactListResult>


put()

put(input): Promise<ArtifactMeta>

Defined in: src/artifacts/capability.ts:48

Store a payload under this run's scope; returns the claim ticket.

Parameters

input

ToolArtifactPutInput

Returns

Promise<ArtifactMeta>

On this page