2017-05-23 18:56:10 +00:00
|
|
|
function ContainerDetailsViewModel(data) {
|
2017-08-13 10:17:41 +00:00
|
|
|
this.Model = data;
|
2017-05-23 18:56:10 +00:00
|
|
|
this.Id = data.Id;
|
|
|
|
this.State = data.State;
|
2017-07-26 15:12:02 +00:00
|
|
|
this.Created = data.Created;
|
2017-05-23 18:56:10 +00:00
|
|
|
this.Name = data.Name;
|
|
|
|
this.NetworkSettings = data.NetworkSettings;
|
|
|
|
this.Args = data.Args;
|
|
|
|
this.Image = data.Image;
|
|
|
|
this.Config = data.Config;
|
|
|
|
this.HostConfig = data.HostConfig;
|
2017-10-25 15:03:40 +00:00
|
|
|
this.Mounts = data.Mounts;
|
2017-05-23 18:56:10 +00:00
|
|
|
if (data.Portainer) {
|
|
|
|
if (data.Portainer.ResourceControl) {
|
|
|
|
this.ResourceControl = new ResourceControlViewModel(data.Portainer.ResourceControl);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|