diff options
Diffstat (limited to 'internal/gitlabnet/lfsauthenticate/client.go')
-rw-r--r-- | internal/gitlabnet/lfsauthenticate/client.go | 12 |
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 { |