2013-06-19 04:08:17 +00:00
|
|
|
function ImageViewModel(data) {
|
|
|
|
this.Id = data.Id;
|
|
|
|
this.Tag = data.Tag;
|
|
|
|
this.Repository = data.Repository;
|
|
|
|
this.Created = data.Created;
|
|
|
|
this.Checked = false;
|
2013-12-13 18:26:58 +00:00
|
|
|
this.RepoTags = data.RepoTags;
|
2014-08-12 06:58:05 +00:00
|
|
|
this.VirtualSize = data.VirtualSize;
|
2013-06-19 04:08:17 +00:00
|
|
|
}
|
2013-06-19 21:39:33 +00:00
|
|
|
|
|
|
|
function ContainerViewModel(data) {
|
2015-08-25 05:59:54 +00:00
|
|
|
this.Id = data.Id;
|
2016-06-29 09:04:29 +00:00
|
|
|
this.State = data.State;
|
|
|
|
this.Names = data.Names;
|
|
|
|
this.IP = data.NetworkSettings.Networks[Object.keys(data.NetworkSettings.Networks)[0]].IPAddress;
|
2015-08-25 05:59:54 +00:00
|
|
|
this.Image = data.Image;
|
|
|
|
this.Command = data.Command;
|
|
|
|
this.Checked = false;
|
2013-06-19 21:39:33 +00:00
|
|
|
}
|