the-moby-effect
Version:
Moby/Docker API client built using effect-ts
24 lines (22 loc) • 1.04 kB
text/typescript
import * as Schema from "effect/Schema";
import * as RegistryIndexInfo from "./RegistryIndexInfo.generated.js";
export class RegistryServiceConfig extends Schema.Class<RegistryServiceConfig>("RegistryServiceConfig")(
{
AllowNondistributableArtifactsCIDRs: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.String))),
AllowNondistributableArtifactsHostnames: Schema.NullOr(Schema.Array(Schema.String)),
InsecureRegistryCIDRs: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.String))),
IndexConfigs: Schema.NullOr(
Schema.Record({
key: Schema.String,
value: Schema.NullOr(RegistryIndexInfo.RegistryIndexInfo),
})
),
Mirrors: Schema.NullOr(Schema.Array(Schema.String)),
},
{
identifier: "RegistryServiceConfig",
title: "registry.ServiceConfig",
documentation:
"https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/registry/registry.go#L10-L17",
}
) {}