]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | export enum RbdConfigurationSourceField { |
2 | global = 0, | |
3 | pool = 1, | |
4 | image = 2 | |
5 | } | |
6 | ||
7 | export enum RbdConfigurationType { | |
8 | bps, | |
9 | iops, | |
10 | milliseconds | |
11 | } | |
12 | ||
13 | /** | |
14 | * This configuration can also be set on a pool level. | |
15 | */ | |
16 | export interface RbdConfigurationEntry { | |
17 | name: string; | |
18 | source: RbdConfigurationSourceField; | |
19 | value: any; | |
20 | type?: RbdConfigurationType; // Non-external field. | |
21 | description?: string; // Non-external field. | |
22 | displayName?: string; // Non-external field. Nice name for the UI which is added in the UI. | |
23 | } | |
24 | ||
25 | /** | |
26 | * This object contains additional information injected into the elements retrieved by the service. | |
27 | */ | |
28 | export interface RbdConfigurationExtraField { | |
29 | name: string; | |
30 | displayName: string; | |
31 | description: string; | |
32 | type: RbdConfigurationType; | |
33 | readOnly?: boolean; | |
34 | } | |
35 | ||
36 | /** | |
37 | * Represents a set of data to be used for editing or creating configuration options | |
38 | */ | |
39 | export interface RbdConfigurationSection { | |
40 | heading: string; | |
41 | class: string; | |
42 | options: RbdConfigurationExtraField[]; | |
43 | } |