mirror of https://github.com/portainer/portainer
18 lines
502 B
JavaScript
18 lines
502 B
JavaScript
function ContainerDetailsViewModel(data) {
|
|
this.Model = data;
|
|
this.Id = data.Id;
|
|
this.State = data.State;
|
|
this.Created = data.Created;
|
|
this.Name = data.Name;
|
|
this.NetworkSettings = data.NetworkSettings;
|
|
this.Args = data.Args;
|
|
this.Image = data.Image;
|
|
this.Config = data.Config;
|
|
this.HostConfig = data.HostConfig;
|
|
if (data.Portainer) {
|
|
if (data.Portainer.ResourceControl) {
|
|
this.ResourceControl = new ResourceControlViewModel(data.Portainer.ResourceControl);
|
|
}
|
|
}
|
|
}
|