All files / src/app/shared/models configuration.ts

100% Statements 8/8
100% Branches 4/4
100% Functions 2/2
100% Lines 8/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 4420x 20x 20x 20x     20x 20x 20x 20x                                                                    
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[];
}