UNPKG

the-moby-effect

Version:
204 lines 6.11 kB
/** * Docker engine. * * @since 1.0.0 */ import * as Function from "effect/Function"; import * as Layer from "effect/Layer"; import * as MobyEndpoints from "./MobyEndpoints.js"; import * as MobyPlatforms from "./MobyPlatforms.js"; import * as internalDocker from "./internal/engines/docker.js"; /** * @since 1.0.0 * @category Layers */ export const layerWithoutHttpCLient = /*#__PURE__*/Layer.mergeAll(MobyEndpoints.ConfigsLayer, MobyEndpoints.ContainersLayer, MobyEndpoints.DistributionsLayer, MobyEndpoints.ExecsLayer, MobyEndpoints.ImagesLayer, MobyEndpoints.NetworksLayer, MobyEndpoints.NodesLayer, MobyEndpoints.PluginsLayer, MobyEndpoints.SecretsLayer, MobyEndpoints.ServicesLayer, MobyEndpoints.SessionsLayer, MobyEndpoints.SwarmLayer, MobyEndpoints.SystemsLayer, MobyEndpoints.TasksLayer, MobyEndpoints.VolumesLayer); /** * @since 1.0.0 * @category Layers */ export const layerNodeJS = /*#__PURE__*/Function.compose(MobyPlatforms.makeNodeHttpClientLayer, httpClientLayer => Layer.provide(layerWithoutHttpCLient, httpClientLayer)); /** * @since 1.0.0 * @category Layers */ export const layerBun = /*#__PURE__*/Function.compose(MobyPlatforms.makeBunHttpClientLayer, httpClientLayer => Layer.provide(layerWithoutHttpCLient, httpClientLayer)); /** * @since 1.0.0 * @category Layers */ export const layerDeno = /*#__PURE__*/Function.compose(MobyPlatforms.makeDenoHttpClientLayer, httpClientLayer => Layer.provide(layerWithoutHttpCLient, httpClientLayer)); /** * @since 1.0.0 * @category Layers */ export const layerUndici = /*#__PURE__*/Function.compose(MobyPlatforms.makeUndiciHttpClientLayer, httpClientLayer => Layer.provide(layerWithoutHttpCLient, httpClientLayer)); /** * @since 1.0.0 * @category Layers */ export const layerWeb = /*#__PURE__*/Function.compose(MobyPlatforms.makeWebHttpClientLayer, httpClientLayer => Layer.provide(layerWithoutHttpCLient, httpClientLayer)); /** * @since 1.0.0 * @category Layers */ export const layerFetch = /*#__PURE__*/Function.compose(MobyPlatforms.makeFetchHttpClientLayer, httpClientLayer => Layer.provide(layerWithoutHttpCLient, httpClientLayer)); /** * @since 1.0.0 * @category Layers */ export const layerAgnostic = /*#__PURE__*/Function.compose(MobyPlatforms.makeAgnosticHttpClientLayer, httpClientLayer => Layer.provide(layerWithoutHttpCLient, httpClientLayer)); /** * Implements the `docker build` command. It doesn't have all the flags that the * images build endpoint exposes. * * @since 1.0.0 * @category Docker */ export const build = internalDocker.build; /** * Implements the `docker build` command as a scoped effect. When the scope is * closed, the built image is removed. It doesn't have all the flags that the * images build endpoint exposes. * * @since 1.0.0 * @category Docker */ export const buildScoped = internalDocker.buildScoped; /** * Implements the `docker exec` command in a blocking fashion. Incompatible with * web. * * @since 1.0.0 * @category Docker */ export const exec = internalDocker.exec; /** * Implements the `docker exec` command in a non blocking fashion. Incompatible * with web when not detached. * * @since 1.0.0 * @category Docker */ export const execNonBlocking = internalDocker.execNonBlocking; /** * Implements the `docker exec` command in a blocking fashion with websockets as * the underlying transport instead of the docker engine exec apis so that is * can be compatible with web. * * @since 1.0.0 * @category Docker */ export const execWebsockets = internalDocker.execWebsockets; /** * Implements the `docker exec` command in a non blocking fashion with * websockets as the underlying transport instead of the docker engine exec apis * so that is can be compatible with web. * * @since 1.0.0 * @category Docker */ export const execWebsocketsNonBlocking = internalDocker.execWebsocketsNonBlocking; /** * Implements the `docker images` command. * * @since 1.0.0 * @category Docker */ export const images = internalDocker.images; /** * Implements the `docker info` command. * * @since 1.0.0 * @category Docker */ export const info = internalDocker.info; /** * Implements the `docker ping` command. * * @since 1.0.0 * @category Docker */ export const ping = internalDocker.ping; /** * Implements the `docker ping` command. * * @since 1.0.0 * @category Docker */ export const pingHead = internalDocker.pingHead; /** * Implements the `docker ps` command. * * @since 1.0.0 * @category Docker */ export const ps = internalDocker.ps; /** * Implements the `docker pull` command. It does not have all the flags that the * images create endpoint exposes. * * @since 1.0.0 * @category Docker */ export const pull = internalDocker.pull; /** * Implements the `docker pull` command as a scoped effect. When the scope is * closed, the pulled image is removed. It doesn't have all the flag = * internalDocker.flags that the images create endpoint exposes. * * @since 1.0.0 * @category Docker */ export const pullScoped = internalDocker.pullScoped; /** * Implements the `docker push` command. * * @since 1.0.0 * @category Docker */ export const push = internalDocker.push; /** * Implements `docker run` command. * * @since 1.0.0 * @category Docker */ export const run = internalDocker.run; /** * Implements `docker run` command as a scoped effect. When the scope is closed, * both the image and the container is removed = internalDocker.removed. * * @since 1.0.0 * @category Docker */ export const runScoped = internalDocker.runScoped; /** * Implements the `docker search` command. * * @since 1.0.0 * @category Docker */ export const search = internalDocker.search; /** * Implements the `docker start` command. * * @since 1.0.0 * @category Docker */ export const start = internalDocker.start; /** * Implements the `docker stop` command. * * @since 1.0.0 * @category Docker */ export const stop = internalDocker.stop; /** * Implements the `docker version` command. * * @since 1.0.0 * @category Docker */ export const version = internalDocker.version; //# sourceMappingURL=DockerEngine.js.map