the-moby-effect
Version:
Moby/Docker API client built using effect-ts
29 lines (27 loc) • 967 B
text/typescript
import * as Schema from "effect/Schema";
import * as MobySchemas from "../schemas/index.js";
export class ImageSummary extends Schema.Class<ImageSummary>("ImageSummary")(
{
Containers: MobySchemas.Int64,
Created: MobySchemas.Int64,
Id: Schema.String,
Labels: Schema.NullOr(
Schema.Record({
key: Schema.String,
value: Schema.String,
})
),
ParentId: Schema.String,
RepoDigests: Schema.NullOr(Schema.Array(Schema.String)),
RepoTags: Schema.NullOr(Schema.Array(Schema.String)),
SharedSize: MobySchemas.Int64,
Size: MobySchemas.Int64,
VirtualSize: Schema.optional(MobySchemas.Int64),
},
{
identifier: "ImageSummary",
title: "image.Summary",
documentation:
"https://github.com/moby/moby/blob/a21b1a2d12e2c01542cb191eb526d7bfad0641e3/api/types/image/summary.go#L6-L89",
}
) {}