UNPKG

the-moby-effect

Version:
21 lines (19 loc) 812 B
import * as Schema from "effect/Schema"; import * as PluginPrivilege from "./PluginPrivilege.generated.js"; export class PluginSpec extends Schema.Class<PluginSpec>("PluginSpec")( { name: Schema.optional(Schema.String), remote: Schema.optional(Schema.String), privileges: Schema.optionalWith(Schema.Array(Schema.NullOr(PluginPrivilege.PluginPrivilege)), { nullable: true, }), disabled: Schema.optional(Schema.Boolean), env: Schema.optionalWith(Schema.Array(Schema.String), { nullable: true }), }, { identifier: "PluginSpec", title: "runtime.PluginSpec", documentation: "https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/runtime/plugin.pb.go#L25-L33", } ) {}