本文整理了Java中io.cattle.platform.core.model.Volume.getUri()
方法的一些代码示例,展示了Volume.getUri()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Volume.getUri()
方法的具体详情如下:
包路径:io.cattle.platform.core.model.Volume
类名称:Volume
方法名:getUri
[英]Getter for cattle.volume.uri
.
[中][$0$]的Getter。
代码示例来源:origin: rancher/cattle
private String migrateVolume(Instance instance, Volume volume, String behavior) {
if (!VOLUME_CLEANUP_STRATEGY_NONE.equals(behavior) || !instance.getNativeContainer()) {
return behavior;
}
if (volume.getUri() == null || !volume.getUri().startsWith(VolumeConstants.FILE_PREFIX)) {
return behavior;
}
behavior = VOLUME_CLEANUP_STRATEGY_UNNAMED;
if (!DataAccessor.fieldBool(volume, VolumeConstants.FIELD_DOCKER_IS_NATIVE)) {
objectManager.setFields(volume, VolumeConstants.FIELD_DOCKER_IS_NATIVE, true);
}
return behavior;
}
代码示例来源:origin: rancher/cattle
setImageId(from.getImageId());
setZoneId(from.getZoneId());
setUri(from.getUri());
setExternalId(from.getExternalId());
setAccessMode(from.getAccessMode());
内容来源于网络,如有侵权,请联系作者删除!