@@ -31,12 +31,11 @@ type Config struct {
3131
3232 ListenAddress string
3333
34- DryRun bool `yaml:"dryRun"`
35- ImageSwapPolicy string `yaml:"imageSwapPolicy" validate:"oneof=always exists"`
36- ImageCopyPolicy string `yaml:"imageCopyPolicy" validate:"oneof=delayed immediate force"`
37- Source Source `yaml:"source"`
38- Target Target `yaml:"target"`
39- RepositoryCustomTags []CustomTag `yaml:"repositoryCustomTags"`
34+ DryRun bool `yaml:"dryRun"`
35+ ImageSwapPolicy string `yaml:"imageSwapPolicy" validate:"oneof=always exists"`
36+ ImageCopyPolicy string `yaml:"imageCopyPolicy" validate:"oneof=delayed immediate force"`
37+ Source Source `yaml:"source"`
38+ Target Target `yaml:"target"`
4039
4140 TLSCertFile string
4241 TLSKeyFile string
@@ -50,21 +49,38 @@ type JMESPathFilter struct {
5049 JMESPath string `yaml:"jmespath"`
5150}
5251
53- type CustomTag struct {
54- Name string `yaml:"name"`
55- Value string `yaml:"value"`
56- }
57-
5852type Target struct {
5953 AWS AWS `yaml:"aws"`
6054}
6155
6256type AWS struct {
63- AccountID string `yaml:"accountId"`
64- Region string `yaml:"region"`
65- Role string `yaml:"role"`
66- AccessPolicy string `yaml:"accessPolicy"`
67- LifecyclePolicy string `yaml:"lifecyclePolicy"`
57+ AccountID string `yaml:"accountId"`
58+ Region string `yaml:"region"`
59+ Role string `yaml:"role"`
60+ ECROptions ECROptions `yaml:"ecrOptions"`
61+ }
62+
63+ type ECROptions struct {
64+ AccessPolicy string `yaml:"accessPolicy"`
65+ LifecyclePolicy string `yaml:"lifecyclePolicy"`
66+ Tags []Tag `yaml:"tags"`
67+ ImageTagMutability string `yaml:"imageTagMutability"`
68+ ImageScanningConfiguration ImageScanningConfiguration `yaml:"imageScanningConfiguration"`
69+ EncryptionConfiguration EncryptionConfiguration `yaml:"encryptionConfiguration"`
70+ }
71+
72+ type Tag struct {
73+ Key string `yaml:"key"`
74+ Value string `yaml:"value"`
75+ }
76+
77+ type ImageScanningConfiguration struct {
78+ ImageScanOnPush bool `yaml:"imageScanOnPush"`
79+ }
80+
81+ type EncryptionConfiguration struct {
82+ EncryptionType string `yaml:"encryptionType"`
83+ KmsKey string `yaml:"kmsKey"`
6884}
6985
7086func (a * AWS ) EcrDomain () string {
0 commit comments