the-moby-effect
Version:
Moby/Docker API client built using effect-ts
16 lines (14 loc) • 642 B
text/typescript
import * as Schema from "effect/Schema";
export class SwarmDNSConfig extends Schema.Class<SwarmDNSConfig>("SwarmDNSConfig")(
{
Nameservers: Schema.optionalWith(Schema.Array(Schema.String), { nullable: true }),
Search: Schema.optionalWith(Schema.Array(Schema.String), { nullable: true }),
Options: Schema.optionalWith(Schema.Array(Schema.String), { nullable: true }),
},
{
identifier: "SwarmDNSConfig",
title: "swarm.DNSConfig",
documentation:
"https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/container.go#L10-L22",
}
) {}