Skip to content

@codesoul-co/hypha-core / modules/artifact/gc

Using this module

Use the Gc module for using the public contracts and operations for this capability boundary. It exports 1 class, 1 function.

Import from the package entrypoint

ts
import {
  DefaultArtifactGarbageCollector,
  validateArtifactGarbageCollectionRequest,
} from '@codesoul-co/hypha-core';

Usage patterns

  • The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.
  • The module exposes 1 function as direct operation entrypoints. Every overload, required/optional parameter, and return type is documented below.

Public exports

SymbolKindSignatureDescription
DefaultArtifactGarbageCollectorclassnew DefaultArtifactGarbageCollector(options: DefaultArtifactGarbageCollectorOptions): DefaultArtifactGarbageCollectorDefault Artifact Garbage Collector class with 2 public constructor or member entries; its exact declarations are listed below.
validateArtifactGarbageCollectionRequestfunctionvalidateArtifactGarbageCollectionRequest(request: ArtifactGarbageCollectionRequest): ArtifactGarbageCollectionRequestValidate Artifact Garbage Collection Request function with 1 public call signature; parameters and return types are listed below.

DefaultArtifactGarbageCollector

Default Artifact Garbage Collector class with 2 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { DefaultArtifactGarbageCollector } from '@codesoul-co/hypha-core';
  • Source module: modules/artifact/gc

Declaration

text
export declare class DefaultArtifactGarbageCollector implements ArtifactGarbageCollector {
    constructor(options: DefaultArtifactGarbageCollectorOptions);
    collect(input: ArtifactGarbageCollectionRequest): Promise<ArtifactGarbageCollectionResult>;
}

Public members

MemberKindSignatureDescription
collectmethodcollect(input: ArtifactGarbageCollectionRequest): Promise<ArtifactGarbageCollectionResult>Public method; parameters and return type are shown in the signature.
constructorconstructor(options: DefaultArtifactGarbageCollectorOptions): DefaultArtifactGarbageCollectorCreates an instance of this class.

validateArtifactGarbageCollectionRequest

Validate Artifact Garbage Collection Request function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateArtifactGarbageCollectionRequest } from '@codesoul-co/hypha-core';
  • Source module: modules/artifact/gc

Declaration

text
export declare function validateArtifactGarbageCollectionRequest(request: ArtifactGarbageCollectionRequest): ArtifactGarbageCollectionRequest;

Call signature

text
validateArtifactGarbageCollectionRequest(request: ArtifactGarbageCollectionRequest): ArtifactGarbageCollectionRequest

Parameters

ParameterTypeRequiredDescription
requestArtifactGarbageCollectionRequestYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: ArtifactGarbageCollectionRequest
  • Description: The return contract is defined by the type shown above.