| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final int | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | discoverLfsUrl(Repository db, String purpose, Map<String, String> additionalHeaders, String remoteUrl)
|
| private static String | |
| public static HttpConnection | Returns: the connection for the lfs server. e.g. "https://github.com/github/git-lfs.git/info/lfs"the repository to work with db, String the method (GET,PUT,...) of the request this connection will
be used for method, String the action, e.g. Protocol.OPERATION_DOWNLOAD purpose)Determine URL of LFS server by looking into config parameters lfs.url, lfs.[remote].url or remote.[remote].url. |
| public static HttpConnection | Returns: a connection. output mode is not set.the repo to fetch required configuration from repo, Protocol.the action for which to create a connection action,the target method (GET or PUT) method)Create a connection for the specified
|
| private static String | Returns: the URL for the LFS server. e.g. "https://github.com/github/git-lfs.git/info/lfs"the repository to work with db, String the action, e.g. Protocol.OPERATION_DOWNLOAD purpose, Map<String, String> additional headers that can be used to connect to LFS server additionalHeaders)Get LFS Server URL. |
| private static Protocol. | |
| public static Protocol. | Returns: a request that can be serialized to JSONthe operation to perform, e.g. Protocol.OPERATION_DOWNLOAD operation, LfsPointer... the LFS resources affected resources)Create request that can be serialized to JSON |
| SCHEME_HTTPS | back to summary |
|---|---|
| private static final String SCHEME_HTTPS | |
| SCHEME_SSH | back to summary |
|---|---|
| private static final String SCHEME_SSH | |
| SSH_AUTH_TIMEOUT_SECONDS | back to summary |
|---|---|
| private static final int SSH_AUTH_TIMEOUT_SECONDS | |
| sshAuthCache | back to summary |
|---|---|
| private static final Map<String, LfsConnectionFactory. | |
| LfsConnectionFactory | back to summary |
|---|---|
| public LfsConnectionFactory() | |
| discoverLfsUrl | back to summary |
|---|---|
| private static String discoverLfsUrl(Repository db, String purpose, Map<String, String> additionalHeaders, String remoteUrl) throws URISyntaxException, IOException, CommandFailedException | |
| extractProjectName | back to summary |
|---|---|
| private static String extractProjectName(URIish u) | |
| getLfsConnection | back to summary |
|---|---|
| public static HttpConnection getLfsConnection(Repository db, String method, String purpose) throws IOException Determine URL of LFS server by looking into config parameters lfs.url, lfs.[remote].url or remote.[remote].url. The LFS server URL is computed from remote.[remote].url by appending "/info/lfs". In case there is no URL configured, a SSH remote URI can be used to auto-detect the LFS URI by using the remote "git-lfs-authenticate" command.
| |
| getLfsContentConnection | back to summary |
|---|---|
| public static HttpConnection getLfsContentConnection(Repository repo, Protocol. Create a connection for the specified
| |
| getLfsUrl | back to summary |
|---|---|
| private static String getLfsUrl(Repository db, String purpose, Map<String, String> additionalHeaders) throws IOException Get LFS Server URL.
| |
| getSshAuthentication | back to summary |
|---|---|
| private static Protocol. | |
| toRequest | back to summary |
|---|---|
| public static Protocol. Create request that can be serialized to JSON
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| pack-priv Protocol. | |
| private static final DateTimeFormatter | |
| pack-priv long |
| Access | Constructor and Description |
|---|---|
| public | AuthCache(Protocol.
action with an additional expiration timestamp actionCreates a cache entry for an authentication response. |
| AUTH_CACHE_EAGER_TIMEOUT | back to summary |
|---|---|
| private static final long AUTH_CACHE_EAGER_TIMEOUT | |
| cachedAction | back to summary |
|---|---|
| pack-priv Protocol. | |
| ISO_FORMAT | back to summary |
|---|---|
| private static final DateTimeFormatter ISO_FORMAT | |
| validUntil | back to summary |
|---|---|
| pack-priv long validUntil | |
| AuthCache | back to summary |
|---|---|
| public AuthCache(Protocol. Creates a cache entry for an authentication response. The timeout of the cache token is extracted from the given action. If no timeout can be determined, the token will be used only once.
| |