the-moby-effect
Version:
Moby/Docker API client built using effect-ts
93 lines • 4.49 kB
JavaScript
import * as Schema from "effect/Schema";
import * as MobySchemas from "../schemas/index.js";
import * as RegistryServiceConfig from "./RegistryServiceConfig.generated.js";
import * as SwarmGenericResource from "./SwarmGenericResource.generated.js";
import * as SwarmInfo from "./SwarmInfo.generated.js";
import * as SystemCommit from "./SystemCommit.generated.js";
import * as SystemContainerdInfo from "./SystemContainerdInfo.generated.js";
import * as SystemNetworkAddressPool from "./SystemNetworkAddressPool.generated.js";
import * as SystemPluginsInfo from "./SystemPluginsInfo.generated.js";
import * as SystemRuntimeWithStatus from "./SystemRuntimeWithStatus.generated.js";
export class SystemInfoResponse extends /*#__PURE__*/Schema.Class("SystemInfoResponse")({
ID: Schema.String,
Containers: MobySchemas.Int64,
ContainersRunning: MobySchemas.Int64,
ContainersPaused: MobySchemas.Int64,
ContainersStopped: MobySchemas.Int64,
Images: MobySchemas.Int64,
Driver: Schema.String,
DriverStatus: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.Array(Schema.String).pipe(/*#__PURE__*/Schema.itemsCount(2)))),
SystemStatus: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.Array(Schema.String).pipe(/*#__PURE__*/Schema.itemsCount(2))), {
nullable: true
}),
Plugins: /*#__PURE__*/Schema.NullOr(SystemPluginsInfo.SystemPluginsInfo),
MemoryLimit: Schema.Boolean,
SwapLimit: Schema.Boolean,
KernelMemory: /*#__PURE__*/Schema.optional(Schema.Boolean),
KernelMemoryTCP: /*#__PURE__*/Schema.optional(Schema.Boolean),
CpuCfsPeriod: Schema.Boolean,
CpuCfsQuota: Schema.Boolean,
CPUShares: Schema.Boolean,
CPUSet: Schema.Boolean,
PidsLimit: Schema.Boolean,
IPv4Forwarding: Schema.Boolean,
BridgeNfIptables: Schema.Boolean,
BridgeNfIp6tables: Schema.Boolean,
Debug: Schema.Boolean,
NFd: MobySchemas.Int64,
OomKillDisable: Schema.Boolean,
NGoroutines: MobySchemas.Int64,
SystemTime: Schema.String,
LoggingDriver: Schema.String,
CgroupDriver: Schema.String,
CgroupVersion: /*#__PURE__*/Schema.optional(Schema.String),
NEventsListener: MobySchemas.Int64,
KernelVersion: Schema.String,
OperatingSystem: Schema.String,
OSVersion: Schema.String,
OSType: Schema.String,
Architecture: Schema.String,
IndexServerAddress: Schema.String,
RegistryConfig: /*#__PURE__*/Schema.NullOr(RegistryServiceConfig.RegistryServiceConfig),
NCPU: MobySchemas.Int64,
MemTotal: MobySchemas.Int64,
GenericResources: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SwarmGenericResource.SwarmGenericResource))),
DockerRootDir: Schema.String,
HttpProxy: Schema.String,
HttpsProxy: Schema.String,
NoProxy: Schema.String,
Name: Schema.String,
Labels: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(Schema.String)),
ExperimentalBuild: Schema.Boolean,
ServerVersion: Schema.String,
Runtimes: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Record({
key: Schema.String,
value: /*#__PURE__*/Schema.NullOr(SystemRuntimeWithStatus.SystemRuntimeWithStatus)
})),
DefaultRuntime: Schema.String,
Swarm: /*#__PURE__*/Schema.NullOr(SwarmInfo.SwarmInfo),
LiveRestoreEnabled: Schema.Boolean,
Isolation: Schema.String,
InitBinary: Schema.String,
ContainerdCommit: /*#__PURE__*/Schema.NullOr(SystemCommit.SystemCommit),
RuncCommit: /*#__PURE__*/Schema.NullOr(SystemCommit.SystemCommit),
InitCommit: /*#__PURE__*/Schema.NullOr(SystemCommit.SystemCommit),
SecurityOptions: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(Schema.String)),
ProductLicense: /*#__PURE__*/Schema.optional(Schema.String),
DefaultAddressPools: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SystemNetworkAddressPool.SystemNetworkAddressPool)), {
nullable: true
}),
CDISpecDirs: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(Schema.String), {
nullable: true
}),
Containerd: /*#__PURE__*/Schema.optionalWith(SystemContainerdInfo.SystemContainerdInfo, {
nullable: true
}),
ExecutionDriver: /*#__PURE__*/Schema.optional(Schema.String),
Warnings: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(Schema.String))
}, {
identifier: "SystemInfoResponse",
title: "system.Info",
documentation: "https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/system/info.go#L9-L85"
}) {}
//# sourceMappingURL=SystemInfoResponse.generated.js.map