Class AzureClient
- java.lang.Object
-
- io.jenkins.plugins.jobcacherazurestorage.AzureClient
-
public class AzureClient extends Object
-
-
Constructor Summary
Constructors Constructor Description AzureClient(com.azure.storage.blob.BlobContainerClient container, String blobEndpoint)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(String filePath)
void
download(FilePath target, String path)
boolean
exists(String path)
static OffsetDateTime
generateExpiryDate()
void
upload(FilePath filePath, String path)
-
-
-
Constructor Detail
-
AzureClient
public AzureClient(com.azure.storage.blob.BlobContainerClient container, String blobEndpoint)
-
-
Method Detail
-
exists
public boolean exists(String path)
-
download
public void download(FilePath target, String path) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
upload
public void upload(FilePath filePath, String path) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
generateExpiryDate
public static OffsetDateTime generateExpiryDate()
-
delete
public void delete(String filePath)
-
-