-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(artifacts) Implement S3 artifacts (#2468)
- version-8.0.4
- version-8.0.3
- version-8.0.2
- version-8.0.1
- version-8.0.0
- version-7.3.5
- version-7.3.4
- version-7.3.3
- version-7.3.2
- version-7.3.1
- version-7.3.0
- version-7.2.3
- version-7.2.2
- version-7.2.1
- version-7.2.0
- version-7.1.2
- version-7.1.1
- version-7.1.0
- version-7.0.3
- version-7.0.2
- version-7.0.1
- version-7.0.0
- version-6.11.2
- version-6.11.1
- version-6.11.0
- version-6.10.1
- version-6.10.0
- version-6.9.3
- version-6.9.2
- version-6.9.1
- version-6.9.0
- version-6.8.2
- version-6.8.1
- version-6.8.0
- version-6.7.7
- version-6.7.6
- version-6.7.5
- version-6.7.4
- version-6.7.3
- version-6.7.2
- version-6.7.1
- version-6.7.0
- version-6.6.0
- version-6.5.7
- version-6.5.6
- version-6.5.5
- version-6.5.4
- version-6.5.3
- version-6.5.2
- version-6.5.1
- version-6.5.0
- version-6.4.8
- version-6.4.7
- version-6.4.6
- version-6.4.5
- version-6.4.4
- version-6.4.3
- version-6.4.2
- version-6.4.1
- version-6.4.0
- version-6.3.5
- version-6.3.4
- version-6.3.3
- version-6.3.2
- version-6.3.1
- version-6.3.0
- version-6.2.2
- version-6.2.1
- version-6.2.0
- version-6.1.0
- version-6.0.1
- version-6.0.0
- version-5.6.2
- version-4.7.4
- version-4.7.3
- version-4.7.2
- version-4.7.1
- version-4.7.0
- version-4.6.5
- version-4.6.4
- version-4.6.3
- version-4.6.2
- version-4.6.1
- version-4.6.0
- version-4.5.3
- version-4.5.2
- version-4.5.1
- version-4.5.0
- version-4.4.7
- version-4.4.6
- version-4.4.5
- version-4.4.4
- version-4.4.3
- version-4.4.2
- version-4.4.1
- version-4.4.0
- version-4.3.10
- version-4.3.9
- version-4.3.8
- version-4.3.7
- version-4.3.6
- version-4.3.5
- version-4.3.4
- version-4.3.3
- version-4.3.2
- version-4.3.1
- version-4.3.0
- version-4.2.9
- version-4.2.8
- version-4.2.7
- version-4.2.6
- version-4.2.5
- version-4.2.4
- version-4.2.3
- version-4.2.2
- version-4.2.1
- version-4.2.0
- version-4.1.0
- version-4.0.9
- version-4.0.8
- version-4.0.7
- version-4.0.6
- version-4.0.5
- version-4.0.4
- version-4.0.3
- version-4.0.2
- version-4.0.1
- version-4.0.0
- version-3.4.5
- version-3.4.4
- version-3.4.3
- version-3.4.2
- version-3.4.1
- version-3.4.0
- version-3.3.5
- version-3.3.4
- version-3.3.3
- version-3.3.2
- version-3.3.1
- version-3.3.0
- version-3.2.1
- version-3.2.0
- version-3.1.5
- version-3.1.4
- version-3.1.3
- version-3.1.2
- version-3.1.1
- version-3.1.0
- version-3.0.1
- version-3.0.0
- v5.90.0
- v5.89.0
- v5.88.0
- v5.87.0
- v5.86.3
- v5.86.2
- v5.86.1
- v5.86.0
- v5.85.4
- v5.85.3
- v5.85.2
- v5.85.1
- v5.85.0
- v5.84.0
- v5.83.4
- v5.83.3
- v5.83.2
- v5.83.1
- v5.83.0
- v5.82.2
- v5.82.1
- v5.82.0
- v5.81.2
- v5.81.1
- v5.81.0
- v5.80.9
- v5.80.8
- v5.80.7
- v5.80.6
- v5.80.5
- v5.80.4
- v5.80.3
- v5.80.2
- v5.80.1
- v5.80.0
- v5.79.0
- v5.78.13
- v5.78.12
- v5.78.11
- v5.78.10
- v5.78.9
- v5.78.8
- v5.78.7
- v5.78.6
- v5.78.5
- v5.78.4
- v5.78.3
- v5.78.2
- v5.78.1
- v5.78.0
- v5.77.0
- v5.76.9
- v5.76.8
- v5.76.7
- v5.76.6
- v5.76.5
- v5.76.4
- v5.76.3
- v5.76.2
- v5.76.1
- v5.76.0
- v5.75.0
- v5.74.8
- v5.74.7
- v5.74.6
- v5.74.5
- v5.74.4
- v5.74.3
- v5.74.2
- v5.74.1
- v5.74.0
- v5.73.0
- v5.72.1
- v5.72.0
- v5.71.2
- v5.71.1
- v5.71.0
- v5.70.2
- v5.70.1
- v5.70.0
- v5.69.0
- v5.68.0
- v5.67.0
- v5.66.0
- v5.65.0
- v5.64.0
- v5.63.0
- v5.62.0
- v5.61.0
- v5.60.0
- v5.59.0
- v5.58.0
- v5.57.0
- v5.56.0
- v5.55.1
- v5.55.0
- v5.54.1
- v5.54.0
- v5.53.0
- v5.52.0
- v5.51.0
- v5.50.0
- v5.49.3
- v5.49.2
- v5.49.1
- v5.49.0
- v5.48.1
- v5.48.0
- v5.47.4
- v5.47.3
- v5.47.2
- v5.47.1
- v5.47.0
- v5.46.0
- v5.45.0
- v5.44.0
- v5.43.2
- v5.43.1
- v5.43.0
- v5.42.0
- v5.41.1
- v5.41.0
- v5.40.2
- v5.40.1
- v5.40.0
- v5.39.1
- v5.39.0
- v5.38.1
- v5.38.0
- v5.37.0
- v5.36.0
- v5.35.0
- v5.34.1
- v5.34.0
- v5.33.4
- v5.33.3
- v5.33.2
- v5.33.1
- v5.33.0
- v5.32.5
- v5.32.4
- v5.32.3
- v5.32.2
- v5.32.1
- v5.32.0
- v5.31.3
- v5.31.2
- v5.31.1
- v5.31.0
- v5.30.0
- v5.29.2
- v5.29.1
- v5.29.0
- v5.28.1
- v5.28.0
- v5.27.2
- v5.27.1
- v5.27.0
- v5.26.0
- v5.25.1
- v5.25.0
- v5.24.6
- v5.24.5
- v5.24.4
- v5.24.3
- v5.24.2
- v5.24.1
- v5.24.0
- v5.23.4
- v5.23.3
- v5.23.2
- v5.23.1
- v5.23.0
- v5.22.0
- v5.21.0
- v5.20.1
- v5.20.0
- v5.19.0-rc.14+saga
- v5.19.0-rc.13+saga
- v5.19.0-rc.12+saga
- v5.19.0-rc.11+saga
- v5.19.0-rc.10+saga
- v5.19.0-rc.9+saga
- v5.19.0-rc.8+saga
- v5.19.0-rc.7+saga
- v5.19.0-rc.6+saga
- v5.19.0-rc.5+saga
- v5.19.0-rc.4+saga
- v5.19.0-rc.3+saga
- v5.19.0-rc.2+saga
- v5.19.0-rc.1+saga
- v5.19.0-rc.1-saga
- v5.18.0
- v5.17.1
- v5.17.0
- v5.16.2
- v5.16.1
- v5.16.0
- v5.15.0
- v5.14.0
- v5.13.0
- v5.13.0-rc.9+sagas
- v5.13.0-rc.8+sagas
- v5.13.0-rc.7+sagas
- v5.13.0-rc.6+sagas
- v5.13.0-rc.5+sagas
- v5.13.0-rc.4+sagas
- v5.13.0-rc.3+sagas
- v5.13.0-rc.2+sagas
- v5.13.0-rc.1+sagas
- v5.12.0
- v5.11.0
- v5.10.1
- v5.10.0
- v5.9.1
- v5.9.0
- v5.8.3
- v5.8.2
- v5.8.1
- v5.8.0
- v5.7.0
- v5.6.8
- v5.6.7
- v5.6.6
- v5.6.5
- v5.6.4
- v5.6.3
- v5.6.2
- v5.6.1
- v5.6.0
- v5.5.1
- v5.5.0
- v5.4.1
- v5.4.0
- v5.3.0
- v5.2.0
- v5.1.0
- v5.0.1
- v5.0.0
- v4.0.0-rc.8+springBoot2
- v4.0.0-rc.7+springBoot2
- v4.0.0-rc.6+springBoot2
- v4.0.0-rc.5+springBoot2
- v4.0.0-rc.4+springBoot2
- v4.0.0-rc.2+springBoot2
- v4.0.0-rc.1+springBoot2
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.0
- v3.0.1
- v3.0.0
- v3.0.0-rc.6+springBoot2
- v3.0.0-rc.5+springBoot2
- v3.0.0-rc.4+springBoot2
- v3.0.0-rc.3+springBoot2
- v3.0.0-rc.1-springBoot2
- v2.139.0
- v2.138.0
- v2.137.1
- v2.137.0
- v2.136.0
- v2.135.0
- v2.134.0
- v2.133.4
- v2.133.3
- v2.133.2
- v2.133.1
- v2.133.0
- v2.132.0
- v2.131.0
- v2.130.0
- v2.129.0
- v2.128.0
- v2.127.2
- v2.127.1
- v2.127.0
- v2.126.0
- v2.125.1
- v2.125.0
- v2.124.0
- v2.123.0
- v2.122.3
- v2.122.2
- v2.122.1
- v2.122.0
- v2.121.1
- v2.121.0
- v2.120.0
- v2.119.0
- v2.118.1
- v2.118.0
- v2.117.1
- v2.117.0
- v2.116.0
- v2.115.1
- v2.115.0
- v2.114.5
- v2.114.4
- v2.114.3
- v2.114.2
- v2.114.1
- v2.114.0
- v2.113.1
- v2.113.0
- v2.112.3
- v2.112.2
- v2.112.1
- v2.112.0
- v2.111.5
- v2.111.4
- v2.111.3
- v2.111.2
- v2.111.1
- v2.111.0
- v2.110.1
- v2.110.0
- v2.109.0
- v2.108.0
- v2.107.0
- v2.106.5
- v2.106.4
- v2.106.3
- v2.106.2
- v2.106.1
- v2.106.0
- v2.105.0
- v2.104.1
- v2.104.0
- v2.103.0
- v2.102.0
- v2.101.4
- v2.101.3
- v2.101.2
- v2.101.0
- v2.100.2
- v2.100.1
- v2.100.0
- v2.99.1
- v2.99.0
- v2.98.1
- v2.98.0
- v2.97.0
- v2.96.4
- v2.96.3
- v2.96.2
- v2.96.1
- v2.96.0
- v2.95.4
- v2.95.3
- v2.95.2
- v2.95.1
- v2.95.0
- v2.94.1
- v2.94.0
- v2.93.2
- v2.93.1
- v2.93.0
- v2.92.0
- v2.91.2
- v2.91.1
- v2.91.0
- v2.90.5
- v2.90.4
- v2.90.3
- v2.90.2
- v2.90.1
- v2.90.0
- v2.89.3
- v2.89.2
- v2.89.1
- v2.89.0
- v2.88.4
- v2.88.3
- v2.88.2
- v2.88.1
- v2.88.0
- v2.87.1
- v2.87.0
- v2.86.2
- v2.86.1
- v2.86.0
- v2.85.3
- v2.85.2
- v2.85.1
- v2.85.0
- v2.84.3
- v2.84.2
- v2.84.1
- v2.84.0
- v2.83.0
- v2.82.1
- v2.82.0
- v2.81.3
- v2.81.2
- v2.81.1
- v2.81.0
- v2.80.1
- v2.80.0
- v2.79.1
- v2.79.0
- v2.78.1
- v2.78.0
- v2.77.1
- v2.77.0
- v2.76.0
- v2.75.0
- v2.74.0
- v2.73.1
- v2.73.0
- v2.72.0
- v2.71.3
- v2.71.2
- v2.71.1
- v2.71.0
- v2.70.0
- v2.69.0
- v2.68.4
- v2.68.3
- v2.68.2
- v2.68.1
- v2.68.0
- v2.67.0
- v2.66.1
- v2.66.0
- v2.65.1
- v2.65.0
- v2.64.4
- v2.64.3
- v2.64.2
- v2.64.1
- v2.64.0
- v2.63.10
- v2.63.9
- v2.63.8
- v2.63.7
- v2.63.6
- v2.63.5
- v2.63.4
- v2.63.3
- v2.63.2
- v2.63.1
- v2.63.0
- v2.62.0
- v2.61.3
- v2.61.2
- v2.61.1
- v2.61.0
- v2.60.3
- v2.60.2
- v2.60.1
- v2.60.0
- v2.59.0
- v2.58.2
- v2.58.1
- v2.58.0
- v2.57.9
- v2.57.8
- v2.57.7
- v2.57.6
- v2.57.5
- v2.57.4
- v2.57.3
- v2.57.2
- v2.57.1
- v2.57.0
- v2.56.0
- v2.55.0
- v2.54.1
- v2.54.0
- v2.53.1
- v2.53.0
- v2.52.0
- v2.51.15
- v2.51.14
- v2.51.13
- v2.51.12
- v2.51.11
- v2.51.10
- v2.51.9
- v2.51.8
- v2.51.7
- v2.51.6
- v2.51.5
- v2.51.4
- v2.51.3
- v2.51.2
- v2.51.1
- v2.51.0
- v2.50.1
- v2.50.0
- v2.49.2
- v2.49.1
- v2.49.0
- v2.48.0
- v2.47.0
- v2.46.0
- v2.45.1
- v2.45.0
- v2.44.5
- v2.44.4
- v2.44.3
- v2.44.2
- v2.44.1
- v2.44.0
- v2.43.5
- v2.43.4
- v2.42.3
- v2.42.2
- v2.42.1
- v2.42.0
- v2.41.4
- v2.41.3
- v2.41.1
- v2.41.0
- v2.40.5
- v2.40.4
- v2.40.3
- v2.40.2
- v2.40.1
- v2.40.0
- v2.39.3
- v2.39.2
- v2.39.1
- v2.39.0
- v2.38.2
- v2.38.1
- v2.38.0
- v2.37.0
- v2.36.0
- v2.35.6
- v2.35.5
- v2.35.4
- v2.35.3
- v2.35.2
- v2.35.1
- v2.35.0
- v2.34.1
- v2.34.0
- v2.33.0
- v2.32.2
- v2.32.1
- v2.32.0
- v2.31.2
- v2.31.1
- v2.31.0
- v2.30.0
- v2.29.3
- v2.29.2
- v2.29.1
- v2.29.0
- v2.28.9
- v2.28.8
- v2.28.7
- v2.28.6
- v2.28.5
- v2.28.4
- v2.28.3
- v2.28.2
- v2.28.1
- v2.28.0
- v2.27.4
- v2.27.3
- v2.27.2
- v2.27.1
- v2.27.0
- v2.21.5
- v2.21.4
- v2.21.3
- v2.21.2
- v2.21.1
- v2.21.0
- v2.20.0
- v2.19.0
- v2.18.0
- v2.17.4
- v2.17.3
- v2.17.2
- v2.17.1
- v2.17.0
- v2.16.1
- v2.16.0
- v2.15.0
- v2.14.0
- v2.13.2
- v2.13.1
- v2.13.0
- 5.55.0
- 4.0.0-rc.3+springBoot2
- 2.41.2
1 parent
2024913
commit 0a8d99e
Showing
6 changed files
with
191 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...facts/src/main/java/com/netflix/spinnaker/clouddriver/artifacts/s3/S3ArtifactAccount.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2018 Datadog, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License") | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.netflix.spinnaker.clouddriver.artifacts.s3; | ||
|
||
import com.netflix.spinnaker.clouddriver.artifacts.config.ArtifactAccount; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
@EqualsAndHashCode(callSuper = true) | ||
@Data | ||
public class S3ArtifactAccount extends ArtifactAccount | ||
{ | ||
private String name; | ||
} |
67 changes: 67 additions & 0 deletions
67
...src/main/java/com/netflix/spinnaker/clouddriver/artifacts/s3/S3ArtifactConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* Copyright 2018 Datadog, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License") | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.netflix.spinnaker.clouddriver.artifacts.s3; | ||
|
||
import com.netflix.spinnaker.clouddriver.artifacts.ArtifactCredentialsRepository; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.beans.factory.config.ConfigurableBeanFactory; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.Scope; | ||
import org.springframework.scheduling.annotation.EnableScheduling; | ||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
import java.util.stream.Collectors; | ||
|
||
@Configuration | ||
@ConditionalOnProperty("artifacts.s3.enabled") | ||
@EnableScheduling | ||
@Slf4j | ||
public class S3ArtifactConfiguration { | ||
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE) | ||
@Bean | ||
@ConfigurationProperties("artifacts.s3") | ||
S3ArtifactProviderProperties s3ArtifactProviderProperties() { return new S3ArtifactProviderProperties(); } | ||
|
||
@Autowired | ||
S3ArtifactProviderProperties s3ArtifactProviderProperties; | ||
|
||
@Autowired | ||
ArtifactCredentialsRepository artifactCredentialsRepository; | ||
|
||
@Bean | ||
List<? extends S3ArtifactCredentials> s3ArtifactCredentials() { | ||
return s3ArtifactProviderProperties.getAccounts() | ||
.stream() | ||
.map(a -> { | ||
try { | ||
S3ArtifactCredentials c = new S3ArtifactCredentials(a); | ||
artifactCredentialsRepository.save(c); | ||
return c; | ||
} catch (IllegalArgumentException e) { | ||
log.warn("Failure instantiating s3 artifact account {}: ", a, e); | ||
return null; | ||
} | ||
}) | ||
.filter(Objects::nonNull) | ||
.collect(Collectors.toList()); | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...s/src/main/java/com/netflix/spinnaker/clouddriver/artifacts/s3/S3ArtifactCredentials.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* Copyright 2018 Datadog, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License") | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.netflix.spinnaker.clouddriver.artifacts.s3; | ||
|
||
import com.amazonaws.services.s3.AmazonS3ClientBuilder; | ||
import com.amazonaws.services.s3.model.S3Object; | ||
|
||
import com.netflix.spinnaker.clouddriver.artifacts.config.ArtifactCredentials; | ||
import com.netflix.spinnaker.kork.artifacts.model.Artifact; | ||
import groovy.util.logging.Slf4j; | ||
import lombok.Data; | ||
|
||
import java.io.InputStream; | ||
|
||
@Slf4j | ||
@Data | ||
public class S3ArtifactCredentials implements ArtifactCredentials { | ||
private final String name; | ||
|
||
public S3ArtifactCredentials(S3ArtifactAccount account) throws IllegalArgumentException { | ||
name = account.getName(); | ||
} | ||
|
||
@Override | ||
public InputStream download(Artifact artifact) throws IllegalArgumentException { | ||
String reference = artifact.getReference(); | ||
if (reference.startsWith("s3://")) { | ||
reference = reference.substring("s3://".length()); | ||
} | ||
|
||
int slash = reference.indexOf("/"); | ||
if (slash <= 0) { | ||
throw new IllegalArgumentException("S3 references must be of the format s3://<bucket>/<file-path>, got: " + artifact); | ||
} | ||
String bucketName = reference.substring(0, slash); | ||
String path = reference.substring(slash + 1); | ||
S3Object s3obj = AmazonS3ClientBuilder.defaultClient().getObject(bucketName, path); | ||
return s3obj.getObjectContent(); | ||
} | ||
|
||
@Override | ||
public boolean handlesType(String type) { | ||
return type.equals("s3/object"); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...ain/java/com/netflix/spinnaker/clouddriver/artifacts/s3/S3ArtifactProviderProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright 2018 Datadog, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License") | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.netflix.spinnaker.clouddriver.artifacts.s3; | ||
|
||
import com.netflix.spinnaker.clouddriver.artifacts.config.ArtifactProvider; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@EqualsAndHashCode(callSuper = true) | ||
@Data | ||
public class S3ArtifactProviderProperties extends ArtifactProvider<S3ArtifactAccount> { | ||
private boolean enabled; | ||
private List<S3ArtifactAccount> accounts = new ArrayList<>(); | ||
} |