You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/models/docker/volume.js

14 lines
352 B

function VolumeViewModel(data) {
this.Id = data.Name;
this.Driver = data.Driver;
this.Options = data.Options;
this.Labels = data.Labels;
this.Mountpoint = data.Mountpoint;
if (data.Portainer) {
if (data.Portainer.ResourceControl) {
this.ResourceControl = new ResourceControlViewModel(data.Portainer.ResourceControl);
}
}
}