挂载卷
| 20 | |
| 21 | // 挂载卷 |
| 22 | type VolumeMapComplex struct { |
| 23 | Type string `yaml:"type"` // 挂载类型 |
| 24 | Source string `yaml:"source"` // 外部的源地址 |
| 25 | Target string `yaml:"target"` // 容器内的目标地址 |
| 26 | ReadOnly string `yaml:"read_only,omitempty"` // 只读标志 |
| 27 | // TODO bind |
| 28 | // TODO volume |
| 29 | // TODO tmpfs |
| 30 | // TODO consistency |
| 31 | } |
| 32 | |
| 33 | // 实现公共接口 |
| 34 | func (VolumeMapComplex) IsVolumeMap() bool { |
nothing calls this directly
no outgoing calls
no test coverage detected