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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidintdownloadAll(String bucketName, String pathPrefix, String fileMask, String excludes, boolean useDefaultExcludes, FilePath target) booleanvoidvoidupload(String bucketName, String path, FilePath source, Map<String, String> userMetadata, String storageClass, boolean useServerSideEncryption) intuploadAll(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:
IOExceptionInterruptedException
-
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:
IOExceptionInterruptedException
-
exists
-
download
public void download(String bucketName, String key, FilePath target) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
downloadAll
public int downloadAll(String bucketName, String pathPrefix, String fileMask, String excludes, boolean useDefaultExcludes, FilePath target) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
delete
-
rename
-