Skip to content

@codesoul-co/hypha-adapters-local / docker-sandbox-provider-factory

Using this module

Use the Docker sandbox provider factory module for binding external or local providers to Hypha ports. It exports 1 class, 1 constant, 1 interface.

Import from the package entrypoint

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

import type {
  DockerSandboxProviderFactoryOptions,
} 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.
  • The 1 constant/enum export provides stable values, schemas, definitions, or defaults. Reuse these exports instead of copying internal values into an application.

Public exports

SymbolKindSignatureDescription
DockerSandboxProviderFactoryclassnew DockerSandboxProviderFactory(options: DockerSandboxProviderFactoryOptions): DockerSandboxProviderFactoryComposition adapter for the accepted Docker Provider. Registration remains explicit: callers add this factory to the Core SandboxProviderRegistry.
DOCKER_SANDBOX_PROVIDER_IDconstantconst DOCKER_SANDBOX_PROVIDER_ID: "provider.docker"DOCKER SANDBOX PROVIDER ID constant exported by the docker-sandbox-provider-factory module.
DockerSandboxProviderFactoryOptionsinterfaceinterface DockerSandboxProviderFactoryOptionsDocker Sandbox Provider Factory Options interface with 6 public fields or methods.

DockerSandboxProviderFactory

Composition adapter for the accepted Docker Provider. Registration remains explicit: callers add this factory to the Core SandboxProviderRegistry.

Declaration

text
export declare class DockerSandboxProviderFactory implements SandboxProviderFactory {
    readonly providerType: "docker";
    readonly providerId: string;
    constructor(options: DockerSandboxProviderFactoryOptions);
    create(): SandboxProvider;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options: DockerSandboxProviderFactoryOptions): DockerSandboxProviderFactoryCreates an instance of this class.
createmethodcreate(): SandboxProviderPublic method; parameters and return type are shown in the signature.
providerIdpropertyreadonly providerId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
providerTypepropertyreadonly providerType: "docker"Public property; its type, readonly modifier and optionality are shown in the signature.

DOCKER_SANDBOX_PROVIDER_ID

DOCKER SANDBOX PROVIDER ID constant exported by the docker-sandbox-provider-factory module.

Declaration

text
export declare const DOCKER_SANDBOX_PROVIDER_ID: "provider.docker";

DockerSandboxProviderFactoryOptions

Docker Sandbox Provider Factory Options interface with 6 public fields or methods.

  • Kind: interface
  • Import: import type { DockerSandboxProviderFactoryOptions } from '@codesoul-co/hypha-adapters-local';
  • Source module: docker-sandbox-provider-factory

Declaration

text
export interface DockerSandboxProviderFactoryOptions {
    engineScopeId: string;
    policy: DockerExecutionPolicyResolverOptions;
    outputArtifacts: DockerExecutionArtifactStreamPort;
    providerId?: string;
    dockerPath?: string;
    transport?: DockerCommandTransport;
}

Contract members

MemberKindSignatureDescription
dockerPathpropertydockerPath?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
engineScopeIdpropertyengineScopeId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
outputArtifactspropertyoutputArtifacts: DockerExecutionArtifactStreamPortPublic property; its type, readonly modifier and optionality are shown in the signature.
policypropertypolicy: DockerExecutionPolicyResolverOptionsPublic property; its type, readonly modifier and optionality are shown in the signature.
providerIdpropertyproviderId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
transportpropertytransport?: DockerCommandTransportPublic property; its type, readonly modifier and optionality are shown in the signature.