diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/shared/models/configuration.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/shared/models/configuration.ts | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/models/configuration.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/models/configuration.ts new file mode 100644 index 000000000..0a8e403d7 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/models/configuration.ts @@ -0,0 +1,43 @@ +export enum RbdConfigurationSourceField { + global = 0, + pool = 1, + image = 2 +} + +export enum RbdConfigurationType { + bps, + iops, + milliseconds +} + +/** + * This configuration can also be set on a pool level. + */ +export interface RbdConfigurationEntry { + name: string; + source: RbdConfigurationSourceField; + value: any; + type?: RbdConfigurationType; // Non-external field. + description?: string; // Non-external field. + displayName?: string; // Non-external field. Nice name for the UI which is added in the UI. +} + +/** + * This object contains additional information injected into the elements retrieved by the service. + */ +export interface RbdConfigurationExtraField { + name: string; + displayName: string; + description: string; + type: RbdConfigurationType; + readOnly?: boolean; +} + +/** + * Represents a set of data to be used for editing or creating configuration options + */ +export interface RbdConfigurationSection { + heading: string; + class: string; + options: RbdConfigurationExtraField[]; +} |