the-moby-effect
Version:
Moby/Docker API client built using effect-ts
35 lines • 1.81 kB
JavaScript
import * as Schema from "effect/Schema";
import * as MobyNumber from "../schemas/number.js";
import * as NetworkEndpointIPAMConfig from "./NetworkEndpointIPAMConfig.generated.js";
export class NetworkEndpointSettings extends /*#__PURE__*/Schema.Class("NetworkEndpointSettings")({
IPAMConfig: /*#__PURE__*/Schema.NullOr(NetworkEndpointIPAMConfig.NetworkEndpointIPAMConfig),
Links: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(Schema.String)),
Aliases: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(Schema.String)),
MacAddress: Schema.String,
DriverOpts: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Record(Schema.String, Schema.String)),
// optional for docker.io/library/docker:26-dind-rootless and 27 (added in docker v28)
GwPriority: /*#__PURE__*/Schema.optional(/*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: -(2n ** 63n),
maximum: 2n ** 63n - 1n
}))),
NetworkID: Schema.String,
EndpointID: Schema.String,
Gateway: Schema.String,
IPAddress: Schema.String,
IPPrefixLen: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: -(2n ** 63n),
maximum: 2n ** 63n - 1n
})),
IPv6Gateway: Schema.String,
GlobalIPv6Address: Schema.String,
GlobalIPv6PrefixLen: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: -(2n ** 63n),
maximum: 2n ** 63n - 1n
})),
DNSNames: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(Schema.String))
}, {
identifier: "NetworkEndpointSettings",
title: "network.EndpointSettings",
documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/network#EndpointSettings"
}) {}
//# sourceMappingURL=NetworkEndpointSettings.generated.js.map