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

Moby overview

Generic Moby engine.

Added in v1.0.0


Table of contents


Layers

MobyLayer (type alias)

Signature

export type MobyLayer = Layer.Layer<
  Layer.Layer.Success<MobyLayerWithoutHttpClientOrWebsocketConstructor>,
  Layer.Layer.Error<MobyLayerWithoutHttpClientOrWebsocketConstructor>,
  Exclude<
    Layer.Layer.Context<MobyLayerWithoutHttpClientOrWebsocketConstructor>,
    HttpClient.HttpClient | Socket.WebSocketConstructor
  >
>

Added in v1.0.0

MobyLayerWithoutHttpClientOrWebsocketConstructor (type alias)

Signature

export type MobyLayerWithoutHttpClientOrWebsocketConstructor = Layer.Layer<
  | Configs
  | Containers
  | Distributions
  | Execs
  | Images
  | Networks
  | Nodes
  | Plugins
  | Secrets
  | Services
  | Sessions
  | Swarm
  | Systems
  | Tasks
  | Volumes,
  never,
  HttpClient.HttpClient | Socket.WebSocketConstructor
>

Added in v1.0.0

layerAgnostic

Signature

export declare const layerAgnostic: (
  connectionOptions: HttpConnectionOptionsTagged | HttpsConnectionOptionsTagged
) => MobyLayerWithoutHttpClientOrWebsocketConstructor

Added in v1.0.0

layerBun

Signature

export declare const layerBun: (connectionOptions: MobyConnectionOptions) => MobyLayer

Added in v1.0.0

layerDeno

Signature

export declare const layerDeno: (connectionOptions: MobyConnectionOptions) => MobyLayer

Added in v1.0.0

layerNodeJS

Signature

export declare const layerNodeJS: (connectionOptions: MobyConnectionOptions) => MobyLayer

Added in v1.0.0

layerUndici

Signature

export declare const layerUndici: (connectionOptions: MobyConnectionOptions) => MobyLayer

Added in v1.0.0

layerWeb

Signature

export declare const layerWeb: (
  connectionOptions: HttpConnectionOptionsTagged | HttpsConnectionOptionsTagged
) => MobyLayer

Added in v1.0.0

layerWithoutHttpCLient

Merges all the layers into a single layer

Signature

export declare const layerWithoutHttpCLient: MobyLayerWithoutHttpClientOrWebsocketConstructor

Added in v1.0.0