Package jenkins.plugins.itemstorage.s3
Class S3ItemStorage
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ItemStorage<T>>
-
- jenkins.plugins.itemstorage.ItemStorage<S3ObjectPath>
-
- jenkins.plugins.itemstorage.s3.S3ItemStorage
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ItemStorage<S3ObjectPath>>
,Serializable
public class S3ItemStorage extends ItemStorage<S3ObjectPath>
S3 implementation of the Item Storage extension point.- Author:
- Peter Hayes
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
S3ItemStorage.DescriptorImpl
static class
S3ItemStorage.S3ItemListener
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description S3ItemStorage(String credentialsId, String bucketName, String prefix, String region)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBucketName()
String
getCredentialsId()
S3ObjectPath
getObjectPath(Item item, String path)
Given an item and path, return an ObjectPath implementation for itS3ObjectPath
getObjectPathForBranch(Item item, String path, String branch)
Given an item, a path and a branch, return an ObjectPath implementation for itString
getPrefix()
String
getRegion()
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
getBucketName
public String getBucketName()
-
getPrefix
public String getPrefix()
-
getRegion
public String getRegion()
-
getCredentialsId
public String getCredentialsId()
-
getObjectPath
public S3ObjectPath getObjectPath(Item item, String path)
Description copied from class:ItemStorage
Given an item and path, return an ObjectPath implementation for it- Specified by:
getObjectPath
in classItemStorage<S3ObjectPath>
- Parameters:
item
- The item to associate the path withpath
- The path scoped by the item- Returns:
- The ObjectPath to act upon that path
-
getObjectPathForBranch
public S3ObjectPath getObjectPathForBranch(Item item, String path, String branch)
Description copied from class:ItemStorage
Given an item, a path and a branch, return an ObjectPath implementation for it- Specified by:
getObjectPathForBranch
in classItemStorage<S3ObjectPath>
- Parameters:
item
- The item to associate the path withpath
- The path scoped by the itembranch
- The branch for which to get the object path for- Returns:
- The ObjectPath to act upon that path
-
-