summaryrefslogtreecommitdiff
path: root/internal/gitlabnet/lfsauthenticate/client.go
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-11-28 14:49:33 +1100
committerAsh McKenzie <amckenzie@gitlab.com>2019-12-03 15:17:07 +1100
commitf0a6e62da76c53a0853bcd0c3a6e0c9c384f5dea (patch)
treebc6bc10c843c34eb4d17ff6e6f1172a7f7986c79 /internal/gitlabnet/lfsauthenticate/client.go
parent0afa8ec5fcc571d7bdfb5f52533e3df4ab78f793 (diff)
downloadgitlab-shell-f0a6e62da76c53a0853bcd0c3a6e0c9c384f5dea.tar.gz
Use correct LFS download or upload operation names
Diffstat (limited to 'internal/gitlabnet/lfsauthenticate/client.go')
-rw-r--r--internal/gitlabnet/lfsauthenticate/client.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/gitlabnet/lfsauthenticate/client.go b/internal/gitlabnet/lfsauthenticate/client.go
index d7469dd..d797321 100644
--- a/internal/gitlabnet/lfsauthenticate/client.go
+++ b/internal/gitlabnet/lfsauthenticate/client.go
@@ -17,10 +17,10 @@ type Client struct {
}
type Request struct {
- Action commandargs.CommandType `json:"operation"`
- Repo string `json:"project"`
- KeyId string `json:"key_id,omitempty"`
- UserId string `json:"user_id,omitempty"`
+ Operation string `json:"operation"`
+ Repo string `json:"project"`
+ KeyId string `json:"key_id,omitempty"`
+ UserId string `json:"user_id,omitempty"`
}
type Response struct {
@@ -39,8 +39,8 @@ func NewClient(config *config.Config, args *commandargs.Shell) (*Client, error)
return &Client{config: config, client: client, args: args}, nil
}
-func (c *Client) Authenticate(action commandargs.CommandType, repo, userId string) (*Response, error) {
- request := &Request{Action: action, Repo: repo}
+func (c *Client) Authenticate(operation, repo, userId string) (*Response, error) {
+ request := &Request{Operation: operation, Repo: repo}
if c.args.GitlabKeyId != "" {
request.KeyId = c.args.GitlabKeyId
} else {