/
DockerImageAssetInvalidationOptions.go
62 lines (59 loc) · 2.02 KB
/
DockerImageAssetInvalidationOptions.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
60
61
package awsecrassets
// Options to control invalidation of `DockerImageAsset` asset hashes.
//
// Example:
// import "github.com/aws/aws-cdk-go/awscdk"
//
//
// asset := awscdk.NewDockerImageAsset(this, jsii.String("MyBuildImage"), &DockerImageAssetProps{
// Directory: path.join(__dirname, jsii.String("my-image")),
// BuildArgs: map[string]*string{
// "HTTP_PROXY": jsii.String("http://10.20.30.2:1234"),
// },
// Invalidation: &DockerImageAssetInvalidationOptions{
// BuildArgs: jsii.Boolean(false),
// },
// })
//
type DockerImageAssetInvalidationOptions struct {
// Use `buildArgs` while calculating the asset hash.
// Default: true.
//
BuildArgs *bool `field:"optional" json:"buildArgs" yaml:"buildArgs"`
// Use `buildSecrets` while calculating the asset hash.
// Default: true.
//
BuildSecrets *bool `field:"optional" json:"buildSecrets" yaml:"buildSecrets"`
// Use `buildSsh` while calculating the asset hash.
// Default: true.
//
BuildSsh *bool `field:"optional" json:"buildSsh" yaml:"buildSsh"`
// Use `extraHash` while calculating the asset hash.
// Default: true.
//
ExtraHash *bool `field:"optional" json:"extraHash" yaml:"extraHash"`
// Use `file` while calculating the asset hash.
// Default: true.
//
File *bool `field:"optional" json:"file" yaml:"file"`
// Use `networkMode` while calculating the asset hash.
// Default: true.
//
NetworkMode *bool `field:"optional" json:"networkMode" yaml:"networkMode"`
// Use `outputs` while calculating the asset hash.
// Default: true.
//
Outputs *bool `field:"optional" json:"outputs" yaml:"outputs"`
// Use `platform` while calculating the asset hash.
// Default: true.
//
Platform *bool `field:"optional" json:"platform" yaml:"platform"`
// Use `repositoryName` while calculating the asset hash.
// Default: true.
//
RepositoryName *bool `field:"optional" json:"repositoryName" yaml:"repositoryName"`
// Use `target` while calculating the asset hash.
// Default: true.
//
Target *bool `field:"optional" json:"target" yaml:"target"`
}