@Restricted(value=org.kohsuke.accmod.restrictions.Beta.class) public abstract class BlobStoreProvider extends hudson.model.AbstractDescribableImpl<BlobStoreProvider> implements hudson.ExtensionPoint, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
BlobStoreProvider.HttpMethod |
| Constructor and Description |
|---|
BlobStoreProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getContainer()
A constant for the blob container name to use.
|
abstract org.jclouds.blobstore.BlobStoreContext |
getContext()
Creates the jclouds handle for working with blob.
|
BlobStoreProviderDescriptor |
getDescriptor() |
abstract String |
getPrefix()
A constant for the blob path prefix to use.
|
abstract boolean |
isDeleteArtifacts()
A constant to define whether we should delete artifacts or leave them to be managed on the blob service side.
|
abstract boolean |
isDeleteStashes()
A constant to define whether we should delete stashes or leave them to be managed on the blob service side.
|
abstract 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 time
|
abstract URI |
toURI(String container,
String key)
Get a provider-specific URI.
|
@NonNull public abstract String getPrefix()
@NonNull public abstract String getContainer()
public abstract boolean isDeleteArtifacts()
public abstract boolean isDeleteStashes()
@NonNull
public abstract org.jclouds.blobstore.BlobStoreContext getContext()
throws IOException
IOException@NonNull public abstract URI toURI(@NonNull String container, @NonNull String key)
container - container where this exists.key - fully qualified name relative to the container.@NonNull public abstract URL toExternalURL(@NonNull org.jclouds.blobstore.domain.Blob blob, @NonNull BlobStoreProvider.HttpMethod httpMethod) throws IOException
blob - blob to generate the URL forhttpMethod - HTTP method to create a URL for (downloads or uploads)IOExceptionpublic BlobStoreProviderDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<BlobStoreProvider>getDescriptor in class hudson.model.AbstractDescribableImpl<BlobStoreProvider>Copyright © 2016–2020. All rights reserved.