Skip to main content Link Search Menu Expand Document (external link)

MobyConvey overview

Convenance utilities for Docker input and output streams.

Added in v1.0.0


Table of contents


Conveyance Sinks

followProgressInConsole

Signature

export declare const followProgressInConsole: <E1, R1>(
  stream: Stream<JSONMessage, E1, R1>
) => Effect<Chunk<JSONMessage>, E1, Exclude<R1, Scope>>

Added in v1.0.0

waitForProgressToComplete

Signature

export declare const waitForProgressToComplete: <E1, R1>(
  stream: Stream<JSONMessage, E1, R1>
) => Effect<Chunk<JSONMessage>, E1, Exclude<R1, Scope>>

Added in v1.0.0

Conveyance Streams

mergeTarballsStream

Signature

export declare const mergeTarballsStream: <E1, R1>(
  tarballs: Array<Stream<Uint8Array, ParseError | E1, R1>>
) => Stream<Uint8Array, ParseError | E1, R1>

Added in v1.0.0

packIntoTarballStream

Signature

export declare const packIntoTarballStream: {
  (cwd: string, entries?: Array<string> | undefined): Stream<Uint8Array, PlatformError | ParseError, Path | FileSystem>
  <E1 = never, R1 = never>(
    entries: HashMap<string, string | Uint8Array | readonly [contentSize: number, stream: Stream<Uint8Array, E1, R1>]>
  ): Stream<Uint8Array, ParseError | E1, R1>
}

Added in v1.0.0