-
Notifications
You must be signed in to change notification settings - Fork 17
/
awscdk_DockerRunOptions.go
60 lines (57 loc) · 2.08 KB
/
awscdk_DockerRunOptions.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// An experiment to bundle the entire CDK into a single module
package awscdk
// Docker run options.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import monocdk "github.com/aws/aws-cdk-go/awscdk"
//
// dockerRunOptions := &dockerRunOptions{
// command: []*string{
// jsii.String("command"),
// },
// entrypoint: []*string{
// jsii.String("entrypoint"),
// },
// environment: map[string]*string{
// "environmentKey": jsii.String("environment"),
// },
// securityOpt: jsii.String("securityOpt"),
// user: jsii.String("user"),
// volumes: []dockerVolume{
// &dockerVolume{
// containerPath: jsii.String("containerPath"),
// hostPath: jsii.String("hostPath"),
//
// // the properties below are optional
// consistency: monocdk.dockerVolumeConsistency_CONSISTENT,
// },
// },
// workingDirectory: jsii.String("workingDirectory"),
// }
//
// Experimental.
type DockerRunOptions struct {
// The command to run in the container.
// Experimental.
Command *[]*string `field:"optional" json:"command" yaml:"command"`
// The entrypoint to run in the container.
// Experimental.
Entrypoint *[]*string `field:"optional" json:"entrypoint" yaml:"entrypoint"`
// The environment variables to pass to the container.
// Experimental.
Environment *map[string]*string `field:"optional" json:"environment" yaml:"environment"`
// [Security configuration](https://docs.docker.com/engine/reference/run/#security-configuration) when running the docker container.
// Experimental.
SecurityOpt *string `field:"optional" json:"securityOpt" yaml:"securityOpt"`
// The user to use when running the container.
// Experimental.
User *string `field:"optional" json:"user" yaml:"user"`
// Docker volumes to mount.
// Experimental.
Volumes *[]*DockerVolume `field:"optional" json:"volumes" yaml:"volumes"`
// Working directory inside the container.
// Experimental.
WorkingDirectory *string `field:"optional" json:"workingDirectory" yaml:"workingDirectory"`
}