the-moby-effect
Version:
Moby/Docker API client built using effect-ts
24 lines (22 loc) • 797 B
text/typescript
import * as Schema from "effect/Schema";
import * as Driver from "./Driver.generated.js";
export class VolumeOptions extends Schema.Class<VolumeOptions>("VolumeOptions")(
{
NoCopy: Schema.optional(Schema.Boolean),
Labels: Schema.optionalWith(
Schema.Record({
key: Schema.String,
value: Schema.String,
}),
{ nullable: true }
),
Subpath: Schema.optional(Schema.String),
DriverConfig: Schema.optionalWith(Driver.Driver, { nullable: true }),
},
{
identifier: "VolumeOptions",
title: "mount.VolumeOptions",
documentation:
"https://github.com/moby/moby/blob/733755d7cb18a4dbea7c290cc56e61d05502aca0/api/types/mount/mount.go#L95-L101",
}
) {}