Package jenkins.plugins.itemstorage.s3
Class S3Profile
java.lang.Object
jenkins.plugins.itemstorage.s3.S3Profile
Based on same named class in S3 Jenkins Plugin
Reusable class for interacting with S3 for file operations
- Author:
- Peter Hayes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
int
downloadAll
(String bucketName, String pathPrefix, String fileMask, String excludes, boolean useDefaultExcludes, FilePath target) boolean
void
void
upload
(String bucketName, String path, FilePath source, Map<String, String> userMetadata, String storageClass, boolean useServerSideEncryption) int
uploadAll
(String bucketName, String path, String fileMask, String excludes, boolean useDefaultExcludes, FilePath source, Map<String, String> userMetadata, String storageClass, boolean useServerSideEncryption)
-
Constructor Details
-
S3Profile
-
-
Method Details
-
upload
public void upload(String bucketName, String path, FilePath source, Map<String, String> userMetadata, String storageClass, boolean useServerSideEncryption) throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
uploadAll
public int uploadAll(String bucketName, String path, String fileMask, String excludes, boolean useDefaultExcludes, FilePath source, Map<String, String> userMetadata, String storageClass, boolean useServerSideEncryption) throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
exists
-
download
public void download(String bucketName, String key, FilePath target) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
downloadAll
public int downloadAll(String bucketName, String pathPrefix, String fileMask, String excludes, boolean useDefaultExcludes, FilePath target) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
delete
-
rename
-