Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/util/compute/templates.ts
1447 views
1
import type {
2
Cloud,
3
Configuration,
4
ComputeServerTemplate,
5
Images,
6
} from "@cocalc/util/db-schema/compute-servers";
7
8
export interface ConfigurationTemplate {
9
id: number;
10
title: string;
11
color: string;
12
cloud: Cloud;
13
position: number;
14
configuration: Configuration;
15
template: ComputeServerTemplate;
16
avatar_image_tiny?: string;
17
cost_per_hour: { running: number; off: number };
18
}
19
20
export interface ConfigurationTemplates {
21
// the templates
22
templates: ConfigurationTemplate[];
23
// extra data to enable frontend rendering of the templates -- this can be "big" -- e.g., 200kb total...
24
data: {
25
images: Images;
26
hyperstackPriceData?;
27
googleCloudPriceData?;
28
};
29
}
30
31