summaryrefslogtreecommitdiff
path: root/go/internal/gitlabnet
Commit message (Collapse)AuthorAgeFilesLines
* Support calling internal API using HTTPSid-api-httpsIgor Drozdov2019-05-013-4/+166
|
* Support calling internal api using HTTPIgor2019-04-249-115/+204
|
* Provide go implementation for 2fa_recovery_codes commandIgor2019-03-216-6/+368
|
* Wrap Stderr & Stdout in a reporter structBob Van Landuyt2019-03-152-13/+62
| | | | | The reporter struct can be used for passing around and reporting to the io.Writer of choice.
* Detect user based on key, username or idBob Van Landuyt2019-03-146-0/+468
This allows gitlab-shell to be called with an argument of the format `key-123` or `username-name`. When called in this way, `gitlab-shell` will call the GitLab internal API. If the API responds with user information, it will print a welcome message including the username. If the API responds with a successful but empty response, gitlab-shell will print a welcome message for an anonymous user. If the API response includes an error message in JSON, this message will be printed to stderr. If the API call fails, an error message including the status code will be printed to stderr.