Preben Ingvaldsen
880bbf81af
lfsapi: add Access param to DoWithAuth()
...
Add a new Access parameter to DoWithAuth() to allow callers to
specify the URL Access Mode. This removes the assumption that
DoWithAuth() will always be used for an LFS API request. This
commit also adds DoAPIRequestWithAuth(), which provides the
functionality of DoWithAuth() while explicitly using the LFS API
endpoint for the access mode, allowing parity with the previous
DoWithAuth() functionality.
2018-09-28 14:16:55 -07:00
Preben Ingvaldsen
d101bdb605
lfsapi: extract new lfshttp package
...
Extract more basic http-related functionality out of lfsapi and
into a new package, lfshttp. Everything is currently functional
aside from authorization.
2018-09-11 14:51:29 -07:00
Taylor Blau
2e1cae8ee6
locking: update schemas correctly
2017-12-14 16:27:25 -05:00
rick olson
903580bfc7
locking: teach SearchLocks() to send remote refspec
2017-12-06 18:08:18 -07:00
rick olson
257df970f0
locking: teach UnlockFile() and UnlockFileById() to send remote refspec
2017-12-06 16:29:24 -07:00
rick olson
be55d7905d
locking: teach LockFile() to send remote refspec
2017-12-06 15:50:08 -07:00
rick olson
62f62d7f9d
locking: turn Ref property into a struct to allow for future additions
2017-11-02 16:13:59 -06:00
rick olson
c3573c727d
config,locking,commands: send remote ref name to lock verify api calls
2017-10-31 11:23:37 -06:00
risk danger olson
5d9a2f6ba5
logging for lfs verify and locking requests
2017-04-27 16:27:36 -06:00
risk danger olson
b5a07bd56f
Merge branch 'master' into locking/docs
2017-02-06 13:52:33 -07:00
risk danger olson
cbaf151139
locking: ensure verifiable locks call is made with the correct operation
2017-02-03 11:34:18 -07:00
risk danger olson
b14b18e181
locking: rename properties to satisfy 'go vet'
2017-02-03 10:57:19 -07:00
risk danger olson
f0d9be4684
locking: rename 'committer' to 'owner'
2017-02-03 10:48:31 -07:00
risk danger olson
799439bb7b
stop sending committer when creating locks
2017-02-03 09:58:13 -07:00
risk danger olson
e7de4391c0
locking: update to match finalized api docs
2017-02-02 09:54:41 -07:00
risk danger olson
ff09824d97
locking: add SearchVerifiable() api request
2017-01-30 17:21:56 -07:00
Taylor Blau
7a42d46a09
locking: use *Committer
to implement fmt.Stringer
2017-01-19 14:52:19 -07:00
Taylor Blau
b2cfaf67c6
Merge branch 'master' into locking-pre-push
2017-01-13 13:52:13 -07:00
Taylor Blau
6659830f35
locking,commands: make Committer
implement fmt.Stringer
2017-01-13 13:01:55 -07:00
Taylor Blau
4a0496aea1
locking,commands: demote Name, Email fields into Committer
2017-01-13 13:01:55 -07:00
Taylor Blau
ebdeaa1a57
locking/api: only decode lock list if status is OK
2017-01-12 16:43:11 -07:00
risk danger olson
f52de2fd89
tq: implement batch api using lfsapi.Client
2017-01-04 10:37:44 -07:00
risk danger olson
c65e82f70d
lfsapi: basic locking client
2017-01-03 13:05:30 -07:00