1 Star 0 Fork 0

Derek Ray/podman

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
volume_internal.go 506 Bytes
一键复制 编辑 原始数据 按行查看 历史
Matthew Heon 提交于 2019-02-15 09:34 . Remove locks from volumes
package libpod
import (
"os"
"path/filepath"
)
// Creates a new volume
func newVolume(runtime *Runtime) (*Volume, error) {
volume := new(Volume)
volume.config = new(VolumeConfig)
volume.runtime = runtime
volume.config.Labels = make(map[string]string)
volume.config.Options = make(map[string]string)
return volume, nil
}
// teardownStorage deletes the volume from volumePath
func (v *Volume) teardownStorage() error {
return os.RemoveAll(filepath.Join(v.runtime.config.VolumePath, v.Name()))
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/derekhjray/podman.git
git@gitee.com:derekhjray/podman.git
derekhjray
podman
podman
v1.4.2

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385