mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
refactor(app): move storidge to new 'integrations' module (#2905)
* refactor(app): move storidge to new 'integrations' module * style(storidge): revert TODO note removal
This commit is contained in:
parent
67de71a18f
commit
144e0ae07e
59 changed files with 32 additions and 29 deletions
|
@ -1,31 +0,0 @@
|
|||
export function StoridgeNodeModel(name, data) {
|
||||
this.Name = name;
|
||||
this.IP = data.ip;
|
||||
this.Role = data.role;
|
||||
this.Status = data.status;
|
||||
}
|
||||
|
||||
export function StoridgeNodeDetailedModel(name, properties) {
|
||||
this.Name = name;
|
||||
this.Condition = properties.condition;
|
||||
this.Domain = properties.domain;
|
||||
this.DomainID = properties.domainID;
|
||||
this.FreeBandwidth = properties.freeBandwidth;
|
||||
this.FreeCapacity = properties.freeCapacity;
|
||||
this.FreeIOPS = properties.freeIOPS;
|
||||
this.Hdds = properties.hdds;
|
||||
this.MetadataVersion = properties.metadataVersion;
|
||||
this.Nodes = properties.nodes;
|
||||
this.ProvisionedBandwidth = properties.provisionedBandwidth;
|
||||
this.ProvisionedCapacity = properties.provisionedCapacity;
|
||||
this.ProvisionedIOPS = properties.provisionedIOPS;
|
||||
this.Ssds = properties.ssds;
|
||||
this.Status = properties.status;
|
||||
this.TotalBandwidth = properties.totalBandwidth;
|
||||
this.TotalCapacity = properties.totalCapacity;
|
||||
this.TotalIOPS = properties.totalIOPS;
|
||||
this.UsedBandwidth = properties.usedBandwidth;
|
||||
this.UsedCapacity = properties.usedCapacity;
|
||||
this.UsedIOPS = properties.usedIOPS;
|
||||
this.Vdisks = properties.vdisks;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue