Skip to content

@codesoul-co/hypha-adapters-local / artifact-manager-execution-cache-verifier

Using this module

Use the Artifact manager execution cache verifier module for executing runtime behavior at this boundary. It exports 1 class, 1 interface.

Import from the package entrypoint

ts
import {
  ArtifactManagerExecutionCacheVerifier,
} from '@codesoul-co/hypha-adapters-local';

import type {
  ArtifactManagerExecutionCacheVerifierOptions,
} from '@codesoul-co/hypha-adapters-local';

Usage patterns

  • Use the 1 type/interface export as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.

Public exports

SymbolKindSignatureDescription
ArtifactManagerExecutionCacheVerifierclassnew ArtifactManagerExecutionCacheVerifier(options: ArtifactManagerExecutionCacheVerifierOptions): ArtifactManagerExecutionCacheVerifierRevalidates every cached Artifact through the governed ArtifactManager before an Execution cache hit is reused. Reading the complete stream deliberately completes the Store's verify-on-read digest and immutable-version checks.
ArtifactManagerExecutionCacheVerifierOptionsinterfaceinterface ArtifactManagerExecutionCacheVerifierOptionsArtifact Manager Execution Cache Verifier Options interface with 3 public fields or methods.

ArtifactManagerExecutionCacheVerifier

Revalidates every cached Artifact through the governed ArtifactManager before an Execution cache hit is reused. Reading the complete stream deliberately completes the Store's verify-on-read digest and immutable-version checks.

Declaration

text
export declare class ArtifactManagerExecutionCacheVerifier implements ExecutionCacheArtifactVerifier {
    constructor(options: ArtifactManagerExecutionCacheVerifierOptions);
    verify(rawScope: ExecutionCacheScope, rawArtifacts: ExecutionCacheArtifactReference[]): Promise<boolean>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options: ArtifactManagerExecutionCacheVerifierOptions): ArtifactManagerExecutionCacheVerifierCreates an instance of this class.
verifymethodverify(rawScope: ExecutionCacheScope, rawArtifacts: ExecutionCacheArtifactReference[]): Promise<boolean>Public method; parameters and return type are shown in the signature.

ArtifactManagerExecutionCacheVerifierOptions

Artifact Manager Execution Cache Verifier Options interface with 3 public fields or methods.

Declaration

text
export interface ArtifactManagerExecutionCacheVerifierOptions {
    manager: Pick<ArtifactManager, 'read'>;
    resolvePrincipal(scope: ExecutionCacheScope): ExecutionPrincipal | Promise<ExecutionPrincipal>;
    now?: () => string;
}

Contract members

MemberKindSignatureDescription
managerpropertymanager: Pick<ArtifactManager, "read">Public property; its type, readonly modifier and optionality are shown in the signature.
nowmethodnow?(): stringPublic method; parameters and return type are shown in the signature.
resolvePrincipalmethodresolvePrincipal(scope: ExecutionCacheScope): ExecutionPrincipal | Promise<ExecutionPrincipal>Public method; parameters and return type are shown in the signature.