git-lfs/lfsapi
Taylor Blau f11664770f lfsapi/ssh.go: use zero-value sentinels
Instead of storing the ExpiresAt and ExpiresIn fields as a *time.Time,
and *int, respectively, use a time.Time and int instead.

Later, in the zero-value comparison, change from != nil to != 0 and
time.Time.IsZero(), respectively.

This has the effect of ridding the API of setting expires_in to zero,
and will fall-back to the default expiration offset, after which it will
retry, or fail the underlying request. We don't have precise
determinations on how many API requests this will affect, but it's
certainly not common usage of the specification, so the behavior change
is OK.
2018-07-02 13:21:39 -05:00
..
auth_test.go lfsapi: add test case for credential.URL.usehttppath 2017-10-27 10:42:17 -06:00
auth.go Merge pull request #3028 from git-lfs/lfsapi-authenticate-redirects 2018-05-28 18:35:13 -07:00
body.go lfsapi: Ensure requests include Content-Length header if necessary 2017-01-25 08:59:11 -07:00
certs_darwin.go lfsapi: add custom ssl cert support 2016-12-20 11:22:20 -07:00
certs_freebsd.go lfsapi: add custom ssl cert support 2016-12-20 11:22:20 -07:00
certs_linux.go lfsapi: add custom ssl cert support 2016-12-20 11:22:20 -07:00
certs_openbsd.go lfsapi: add custom ssl cert support 2016-12-20 11:22:20 -07:00
certs_test.go lfsapi: add *git.Configuration to Client 2017-10-25 15:38:13 -06:00
certs_windows.go lfsapi: add custom ssl cert support 2016-12-20 11:22:20 -07:00
certs.go lfsapi: introduce interface for initializing a Client 2017-10-25 15:33:20 -06:00
client_test.go lfsapi/client_test.go: test cross-host authenticated redirect 2018-05-28 18:14:09 -07:00
client.go lfsapi: re-authenticated redirected requests when needed 2018-05-25 09:24:36 -07:00
creds_test.go lfsapi: replace old credential cache and CredentialHelpers types 2017-10-26 18:34:33 -06:00
creds.go add some godocs 2017-10-27 14:10:46 -06:00
endpoint_finder_test.go Map local abspath to file://<abspath> endpoint URL 2018-04-02 14:56:00 +02:00
endpoint_finder.go Map local abspath to file://<abspath> endpoint URL 2018-04-02 14:56:00 +02:00
endpoint_test.go move endpoint pkg to lfsapi 2016-12-19 11:45:22 -07:00
endpoint.go Map local abspath to file://<abspath> endpoint URL 2018-04-02 14:56:00 +02:00
errors.go Don't print doc url and request id for expected errors 2017-02-27 14:16:19 -07:00
lfsapi_nix.go lfsapi: teach auth about netrc 2016-12-19 14:53:18 -07:00
lfsapi_windows.go lfsapi: teach auth about netrc 2016-12-19 14:53:18 -07:00
lfsapi.go Set ExpiresIn field to lfs.defaulttokenttl if it is not present and the 2018-02-14 13:58:59 -08:00
netrc_test.go *: use patched version of bgetnry/go-netrc 2018-05-25 12:42:02 -07:00
netrc.go *: use patched version of bgetnry/go-netrc 2018-05-25 12:42:02 -07:00
ntlm_auth_nix.go Use SSPI ntlm authentication on windows: 2018-02-27 17:02:57 +01:00
ntlm_auth_test_nix.go Use SSPI ntlm authentication on windows: 2018-02-27 17:02:57 +01:00
ntlm_auth_windows.go Use SSPI ntlm authentication on windows: 2018-02-27 17:02:57 +01:00
ntlm_test.go Use SSPI ntlm authentication on windows: 2018-02-27 17:02:57 +01:00
ntlm.go lfsapi: teach do() and friends 'remote' 2018-05-25 09:24:15 -07:00
proxy_test.go lfsapi: prefer proxying from gitconfig before environment 2018-06-13 12:30:10 -05:00
proxy.go lfsapi: prefer proxying from gitconfig before environment 2018-06-13 12:30:10 -05:00
response_test.go lfsapi: introduce interface for initializing a Client 2017-10-25 15:33:20 -06:00
retries_test.go lfsapi: introduce interface for initializing a Client 2017-10-25 15:33:20 -06:00
retries.go lfsapi: make 'retries' the number of additional requests 2017-09-07 11:04:48 -04:00
ssh_test.go lfsapi: add *git.Configuration to Client 2017-10-25 15:38:13 -06:00
ssh.go lfsapi/ssh.go: use zero-value sentinels 2018-07-02 13:21:39 -05:00
stats_test.go lfsapi: introduce interface for initializing a Client 2017-10-25 15:33:20 -06:00
stats.go lfsapi: note alignment issue in *httpTransfer 2018-02-26 17:05:54 -08:00
verbose_test.go lfsapi: introduce interface for initializing a Client 2017-10-25 15:33:20 -06:00
verbose.go dont rely on res 2017-04-27 17:03:17 -06:00