Package org.eclipse.jgit.pgm.debug
Class LfsStore
- java.lang.Object
-
- org.eclipse.jgit.pgm.TextBuiltin
-
- org.eclipse.jgit.pgm.debug.LfsStore
-
class LfsStore extends TextBuiltin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classLfsStore.AppServerTiny web application server for testingprivate static classLfsStore.StorageClassprivate static classLfsStore.StoreType-
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.StringaccessKey(package private) java.lang.Stringbucket(package private) java.lang.Stringdirectory(package private) booleandisableSslVerify(package private) intexpirationSecondsprivate static java.lang.StringOBJECTS(package private) intportprivate static java.lang.StringPROTOCOL_PATH(package private) java.lang.StringprotocolUrl(package private) java.lang.Stringregion(package private) java.lang.StringsecretKey(package private) LfsStore.StorageClassstorageClassprivate static java.lang.StringSTORE_PATH(package private) LfsStore.StoreTypestoreType(package private) java.lang.StringstoreUrl
-
Constructor Summary
Constructors Constructor Description LfsStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckOptions()private java.lang.StringgetProtocolUrl(java.net.URI baseURI)private java.lang.StringgetStoreUrl(java.net.URI baseURI)private voidreadAWSKeys()protected booleanrequiresRepository()If this command requires a repository.protected voidrun()Perform the actions of this command.-
Methods inherited from class org.eclipse.jgit.pgm.TextBuiltin
containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit
-
-
-
-
Field Detail
-
OBJECTS
private static final java.lang.String OBJECTS
- See Also:
- Constant Field Values
-
STORE_PATH
private static final java.lang.String STORE_PATH
- See Also:
- Constant Field Values
-
PROTOCOL_PATH
private static final java.lang.String PROTOCOL_PATH
- See Also:
- Constant Field Values
-
port
int port
-
storeType
LfsStore.StoreType storeType
-
storeUrl
java.lang.String storeUrl
-
region
java.lang.String region
-
bucket
java.lang.String bucket
-
storageClass
LfsStore.StorageClass storageClass
-
expirationSeconds
int expirationSeconds
-
disableSslVerify
boolean disableSslVerify
-
directory
java.lang.String directory
-
protocolUrl
java.lang.String protocolUrl
-
accessKey
java.lang.String accessKey
-
secretKey
java.lang.String secretKey
-
-
Method Detail
-
requiresRepository
protected boolean requiresRepository()
If this command requires a repository.- Overrides:
requiresRepositoryin classTextBuiltin- Returns:
- true if
TextBuiltin.db/TextBuiltin.getRepository()is required
-
run
protected void run() throws java.lang.ExceptionPerform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[]).- Specified by:
runin classTextBuiltin- Throws:
java.lang.Exception- an error occurred while processing the command. The main framework will catch the exception and print a message on standard error.
-
checkOptions
private void checkOptions()
-
readAWSKeys
private void readAWSKeys() throws java.io.IOException, ConfigInvalidException- Throws:
java.io.IOExceptionConfigInvalidException
-
getStoreUrl
private java.lang.String getStoreUrl(java.net.URI baseURI)
-
getProtocolUrl
private java.lang.String getProtocolUrl(java.net.URI baseURI)
-
-