Class S3BlobStore
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BlobStoreProvider>
-
- io.jenkins.plugins.artifact_manager_jclouds.BlobStoreProvider
-
- io.jenkins.plugins.artifact_manager_jclouds.s3.S3BlobStore
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<BlobStoreProvider>
,Serializable
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class S3BlobStore extends BlobStoreProvider
Extension that customizes JCloudsBlobStore for AWS S3. Credentials are fetched from the environment, env vars, aws profiles,...- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
S3BlobStore.DescriptorImpl
-
Nested classes/interfaces inherited from class io.jenkins.plugins.artifact_manager_jclouds.BlobStoreProvider
BlobStoreProvider.HttpMethod
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description S3BlobStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S3BlobStoreConfig
getConfiguration()
String
getContainer()
A constant for the blob container name to use.org.jclouds.blobstore.BlobStoreContext
getContext()
Creates the jclouds handle for working with blob.String
getPrefix()
A constant for the blob path prefix to use.String
getRegion()
boolean
isDeleteArtifacts()
A constant to define whether we should delete artifacts or leave them to be managed on the blob service side.boolean
isDeleteStashes()
A constant to define whether we should delete stashes or leave them to be managed on the blob service side.URL
toExternalURL(org.jclouds.blobstore.domain.Blob blob, BlobStoreProvider.HttpMethod httpMethod)
Generate a URL valid for downloading OR uploading the blob for a limited period of timeString
toString()
URI
toURI(String container, String key)
Get a provider-specific URI.-
Methods inherited from class io.jenkins.plugins.artifact_manager_jclouds.BlobStoreProvider
getDescriptor
-
-
-
-
Method Detail
-
getPrefix
public String getPrefix()
Description copied from class:BlobStoreProvider
A constant for the blob path prefix to use.- Specified by:
getPrefix
in classBlobStoreProvider
-
getContainer
public String getContainer()
Description copied from class:BlobStoreProvider
A constant for the blob container name to use.- Specified by:
getContainer
in classBlobStoreProvider
-
getRegion
public String getRegion()
-
getConfiguration
public S3BlobStoreConfig getConfiguration()
-
isDeleteArtifacts
public boolean isDeleteArtifacts()
Description copied from class:BlobStoreProvider
A constant to define whether we should delete artifacts or leave them to be managed on the blob service side.- Specified by:
isDeleteArtifacts
in classBlobStoreProvider
-
isDeleteStashes
public boolean isDeleteStashes()
Description copied from class:BlobStoreProvider
A constant to define whether we should delete stashes or leave them to be managed on the blob service side.- Specified by:
isDeleteStashes
in classBlobStoreProvider
-
getContext
public org.jclouds.blobstore.BlobStoreContext getContext() throws IOException
Description copied from class:BlobStoreProvider
Creates the jclouds handle for working with blob.- Specified by:
getContext
in classBlobStoreProvider
- Throws:
IOException
-
toURI
@NonNull public URI toURI(@NonNull String container, @NonNull String key)
Description copied from class:BlobStoreProvider
Get a provider-specific URI.- Specified by:
toURI
in classBlobStoreProvider
- Parameters:
container
- container where this exists.key
- fully qualified name relative to the container.- Returns:
- the URI
-
toExternalURL
public URL toExternalURL(@NonNull org.jclouds.blobstore.domain.Blob blob, @NonNull BlobStoreProvider.HttpMethod httpMethod) throws IOException
Description copied from class:BlobStoreProvider
Generate a URL valid for downloading OR uploading the blob for a limited period of time- Specified by:
toExternalURL
in classBlobStoreProvider
- Parameters:
blob
- blob to generate the URL forhttpMethod
- HTTP method to create a URL for (downloads or uploads)- Returns:
- the URL
- Throws:
IOException
- See Also:
- Generate a Pre-signed Object URL using AWS SDK for Java
-
-