Package org.eclipse.jgit.lfs.server
Interface LargeFileRepository
- All Known Implementing Classes:
FileLfsRepository
,S3Repository
public interface LargeFileRepository
Abstraction of a repository for storing large objects
- Since:
- 4.3
-
Method Summary
Modifier and TypeMethodDescriptionGet download actionlong
Get size of an objectgetUploadAction
(AnyLongObjectId id, long size) Get upload actionGet verify action
-
Method Details
-
getDownloadAction
Get download action- Parameters:
id
- id of the object to download- Returns:
- Action for downloading the object
-
getUploadAction
Get upload action- Parameters:
id
- id of the object to uploadsize
- size of the object to be uploaded- Returns:
- Action for uploading the object
-
getVerifyAction
Get verify action- Parameters:
id
- id of the object to be verified- Returns:
- Action for verifying the object, or
null
if the server doesn't support or require verification
-
getSize
Get size of an object- Parameters:
id
- id of the object- Returns:
- length of the object content in bytes, -1 if the object doesn't exist
- Throws:
IOException
-