@norskvideo/ctl-product-template-schema 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +18 -0
- package/index.js +10 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -20,6 +20,12 @@ export declare const ProductTemplateAdvancedSchema: z.ZodObject<{
|
|
|
20
20
|
hostPorts: z.ZodOptional<z.ZodObject<{
|
|
21
21
|
default: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
|
+
shmSize: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
default: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
shmGroup: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
default: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
23
29
|
}, z.core.$strip>;
|
|
24
30
|
export declare const ProductTemplateAllocatedPortSchema: z.ZodObject<{
|
|
25
31
|
param: z.ZodString;
|
|
@@ -69,6 +75,12 @@ export declare const ProductTemplateManifestSchema: z.ZodObject<{
|
|
|
69
75
|
hostPorts: z.ZodOptional<z.ZodObject<{
|
|
70
76
|
default: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
71
77
|
}, z.core.$strip>>;
|
|
78
|
+
shmSize: z.ZodOptional<z.ZodObject<{
|
|
79
|
+
default: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
shmGroup: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
default: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
72
84
|
}, z.core.$strip>>;
|
|
73
85
|
allocatedPorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
74
86
|
param: z.ZodString;
|
|
@@ -167,6 +179,12 @@ export declare const ProductTemplateMaterialsSchema: z.ZodObject<{
|
|
|
167
179
|
hostPorts: z.ZodOptional<z.ZodObject<{
|
|
168
180
|
default: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
169
181
|
}, z.core.$strip>>;
|
|
182
|
+
shmSize: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
default: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
shmGroup: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
default: z.ZodOptional<z.ZodString>;
|
|
187
|
+
}, z.core.$strip>>;
|
|
170
188
|
}, z.core.$strip>>;
|
|
171
189
|
allocatedPorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
172
190
|
param: z.ZodString;
|
package/index.js
CHANGED
|
@@ -73,6 +73,16 @@ export const ProductTemplateAdvancedSchema = z
|
|
|
73
73
|
// exclusive and a second instance needs a different one. Hard pinning is
|
|
74
74
|
// a future product-template-pins concern, not this knob.
|
|
75
75
|
hostPorts: z.object({ default: z.array(z.string()).optional() }).optional(),
|
|
76
|
+
// Shared memory. `shmSize` sizes media's private /dev/shm — or, under a
|
|
77
|
+
// group, the shared IPC namespace every member of that group joins.
|
|
78
|
+
// `shmGroup` opts the instance out of privacy altogether and into a named
|
|
79
|
+
// namespace shared with every other member on the host — what a zero-copy
|
|
80
|
+
// cross-instance transport (MXL) needs, and meaningless without one. A
|
|
81
|
+
// product that requires the shared namespace supplies the group name as its
|
|
82
|
+
// `default`, so an operator gets it without knowing the transport's
|
|
83
|
+
// mechanics.
|
|
84
|
+
shmSize: z.object({ default: z.string().optional() }).optional(),
|
|
85
|
+
shmGroup: z.object({ default: z.string().optional() }).optional(),
|
|
76
86
|
})
|
|
77
87
|
.meta({ id: "ProductTemplateAdvanced", outputId: "ProductTemplateAdvanced" });
|
|
78
88
|
// A host-port binding whose value rides a product-template parameter, opted in per
|