use of org.flywaydb.core.internal.resource.s3.AwsS3Resource in project flyway by flyway.
the class AwsS3Scanner method getLoadableResources.
private Collection<LoadableResource> getLoadableResources(String bucketName, final ListObjectsV2Response listObjectResult) {
List<S3Object> objectSummaries = listObjectResult.contents();
Set<LoadableResource> resources = new TreeSet<>();
for (S3Object objectSummary : objectSummaries) {
LOG.debug("Found Amazon S3 resource: " + bucketName.concat("/").concat(objectSummary.key()));
resources.add(new AwsS3Resource(bucketName, objectSummary, encoding));
}
return resources;
}
Aggregations