Package jenkins.plugins.itemstorage.s3
Class S3Profile
- java.lang.Object
-
- jenkins.plugins.itemstorage.s3.S3Profile
-
public class S3Profile extends Object
Based on same named class in S3 Jenkins PluginReusable class for interacting with S3 for file operations
- Author:
- Peter Hayes
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(String bucketName, String pathPrefix)
void
download(String bucketName, String key, FilePath target)
int
downloadAll(String bucketName, String pathPrefix, String fileMask, String excludes, boolean useDefaultExcludes, FilePath target)
boolean
exists(String bucketName, String path)
void
rename(String bucketName, String currentPathPrefix, String newPathPrefix)
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)
-
-
-
Method Detail
-
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
-
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
-
-