the-moby-effect
Version:
Moby/Docker API client built using effect-ts
24 lines (22 loc) • 789 B
text/typescript
import * as Schema from "effect/Schema";
export class SwarmNetworkAttachmentConfig extends Schema.Class<SwarmNetworkAttachmentConfig>(
"SwarmNetworkAttachmentConfig"
)(
{
Target: Schema.optional(Schema.String),
Aliases: Schema.optionalWith(Schema.Array(Schema.String), { nullable: true }),
DriverOpts: Schema.optionalWith(
Schema.Record({
key: Schema.String,
value: Schema.String,
}),
{ nullable: true }
),
},
{
identifier: "SwarmNetworkAttachmentConfig",
title: "swarm.NetworkAttachmentConfig",
documentation:
"https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/network.go#L97-L102",
}
) {}