the-moby-effect
Version:
Moby/Docker API client built using effect-ts
19 lines (17 loc) • 809 B
text/typescript
import * as Schema from "effect/Schema";
import * as SwarmAnnotations from "./SwarmAnnotations.generated.js";
import * as SwarmDriver from "./SwarmDriver.generated.js";
export class SwarmSecretSpec extends Schema.Class<SwarmSecretSpec>("SwarmSecretSpec")(
{
...SwarmAnnotations.SwarmAnnotations.fields,
Data: Schema.optionalWith(Schema.StringFromBase64, { nullable: true }),
Driver: Schema.optionalWith(SwarmDriver.SwarmDriver, { nullable: true }),
Templating: Schema.optionalWith(SwarmDriver.SwarmDriver, { nullable: true }),
},
{
identifier: "SwarmSecretSpec",
title: "swarm.SecretSpec",
documentation:
"https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/secret.go#L12-L21",
}
) {}