MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / VolumeMapComplex

Struct VolumeMapComplex

cli/pkg/docker/compose/volume_map_complex.go:22–31  ·  view source on GitHub ↗

挂载卷

Source from the content-addressed store, hash-verified

20
21// 挂载卷
22type 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// 实现公共接口
34func (VolumeMapComplex) IsVolumeMap() bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected