-
Notifications
You must be signed in to change notification settings - Fork 5.9k
/
service.interface.ts
47 lines (44 loc) · 1.05 KB
/
service.interface.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export interface CephServiceStatus {
container_image_id: string;
container_image_name: string;
size: number;
running: number;
last_refresh: Date;
created: Date;
}
// This will become handy when creating arbitrary services
export interface CephServiceSpec {
service_name: string;
service_type: string;
service_id: string;
unmanaged: boolean;
status: CephServiceStatus;
spec: CephServiceAdditionalSpec;
placement: CephServicePlacement;
}
export interface CephServiceAdditionalSpec {
backend_service: string;
api_user: string;
api_password: string;
api_port: number;
api_secure: boolean;
rgw_frontend_port: number;
trusted_ip_list: string[];
virtual_ip: string;
frontend_port: number;
monitor_port: number;
virtual_interface_networks: string[];
pool: string;
rgw_frontend_ssl_certificate: string;
ssl: boolean;
ssl_cert: string;
ssl_key: string;
port: number;
initial_admin_password: string;
}
export interface CephServicePlacement {
count: number;
placement: string;
hosts: string[];
label: string;
}