/
DockerVolume.go
33 lines (30 loc) · 1.06 KB
/
DockerVolume.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package awscdk
// A Docker volume.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import cdk "github.com/aws/aws-cdk-go/awscdk"
//
// dockerVolume := &DockerVolume{
// ContainerPath: jsii.String("containerPath"),
// HostPath: jsii.String("hostPath"),
//
// // the properties below are optional
// Consistency: cdk.DockerVolumeConsistency_CONSISTENT,
// }
//
type DockerVolume struct {
// The path where the file or directory is mounted in the container.
ContainerPath *string `field:"required" json:"containerPath" yaml:"containerPath"`
// The path to the file or directory on the host machine.
HostPath *string `field:"required" json:"hostPath" yaml:"hostPath"`
// Mount consistency.
//
// Only applicable for macOS.
// See: https://docs.docker.com/storage/bind-mounts/#configure-mount-consistency-for-macos
//
// Default: DockerConsistency.DELEGATED
//
Consistency DockerVolumeConsistency `field:"optional" json:"consistency" yaml:"consistency"`
}