UNPKG

the-moby-effect

Version:
23 lines (20 loc) 862 B
import * as Schema from "effect/Schema"; import * as MobyIdentifiers from "../schemas/id.ts"; import * as MobyNumber from "../schemas/number.ts"; export class SwarmContainerStatus extends Schema.Class<SwarmContainerStatus>("SwarmContainerStatus")( { ContainerID: MobyIdentifiers.ContainerIdentifier, PID: MobyNumber.BigIntFromWireString.check( Schema.isBetweenBigInt({ minimum: -(2n ** 63n), maximum: 2n ** 63n - 1n }) ), ExitCode: MobyNumber.BigIntFromWireString.check( Schema.isBetweenBigInt({ minimum: -(2n ** 63n), maximum: 2n ** 63n - 1n }) ), }, { identifier: "SwarmContainerStatus", title: "swarm.ContainerStatus", documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/swarm#ContainerStatus", } ) {}