UNPKG

the-moby-effect

Version:
25 lines (23 loc) 771 B
import * as Schema from "effect/Schema"; import * as MobySchemas from "../schemas/index.js"; import * as Health from "./Health.generated.js"; export class ContainerState extends Schema.Class<ContainerState>("ContainerState")( { Status: Schema.String, Running: Schema.Boolean, Paused: Schema.Boolean, Restarting: Schema.Boolean, OOMKilled: Schema.Boolean, Dead: Schema.Boolean, Pid: MobySchemas.Int64, ExitCode: MobySchemas.Int64, Error: Schema.String, StartedAt: Schema.String, FinishedAt: Schema.String, Health: Schema.optionalWith(Health.Health, { nullable: true }), }, { identifier: "ContainerState", title: "types.ContainerState", } ) {}