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 class
LfsStore.AppServer
Tiny web application server for testingprivate static class
LfsStore.StorageClass
private static class
LfsStore.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.String
accessKey
(package private) java.lang.String
bucket
(package private) java.lang.String
directory
(package private) boolean
disableSslVerify
(package private) int
expirationSeconds
private static java.lang.String
OBJECTS
(package private) int
port
private static java.lang.String
PROTOCOL_PATH
(package private) java.lang.String
protocolUrl
(package private) java.lang.String
region
(package private) java.lang.String
secretKey
(package private) LfsStore.StorageClass
storageClass
private static java.lang.String
STORE_PATH
(package private) LfsStore.StoreType
storeType
(package private) java.lang.String
storeUrl
-
Constructor Summary
Constructors Constructor Description LfsStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkOptions()
private java.lang.String
getProtocolUrl(java.net.URI baseURI)
private java.lang.String
getStoreUrl(java.net.URI baseURI)
private void
readAWSKeys()
protected boolean
requiresRepository()
If this command requires a repository.protected void
run()
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:
requiresRepository
in classTextBuiltin
- Returns:
- true if
TextBuiltin.db
/TextBuiltin.getRepository()
is required
-
run
protected void run() throws java.lang.Exception
Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[])
.- Specified by:
run
in 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.IOException
ConfigInvalidException
-
getStoreUrl
private java.lang.String getStoreUrl(java.net.URI baseURI)
-
getProtocolUrl
private java.lang.String getProtocolUrl(java.net.URI baseURI)
-
-