MCPcopy Create free account
hub / github.com/cloudfoundry/garden / BindMount

Struct BindMount

client.go:190–208  ·  view source on GitHub ↗

BindMount specifies parameters for a single mount point. Each mount point is mounted (with the bind option) into the container's file system. The effective permissions of the mount point are the permissions of the source directory if the mode is read-write and the permissions of the source director

Source from the content-addressed store, hash-verified

188// is read-write and the permissions of the source directory with the write bits turned off if the mode
189// of the mount point is read-only.
190type BindMount struct {
191 // SrcPath contains the path of the directory to be mounted.
192 SrcPath string `json:"src_path,omitempty"`
193
194 // DstPath contains the path of the mount point in the container. If the
195 // directory does not exist, it is created.
196 DstPath string `json:"dst_path,omitempty"`
197
198 // Mode must be either "RO" or "RW". Alternatively, mode may be omitted and defaults to RO.
199 // If mode is "RO", a read-only mount point is created.
200 // If mode is "RW", a read-write mount point is created.
201 Mode BindMountMode `json:"mode,omitempty"`
202
203 // BindMountOrigin must be either "Host" or "Container". Alternatively, origin may be omitted and
204 // defaults to "Host".
205 // If origin is "Host", src_path denotes a path in the host.
206 // If origin is "Container", src_path denotes a path in the container.
207 Origin BindMountOrigin `json:"origin,omitempty"`
208}
209
210type Capacity struct {
211 MemoryInBytes uint64 `json:"memory_in_bytes,omitempty"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected