diff options
author | Igor Drozdov <idrozdov@gitlab.com> | 2020-07-02 12:20:11 +0000 |
---|---|---|
committer | Igor Drozdov <idrozdov@gitlab.com> | 2020-07-02 12:20:11 +0000 |
commit | bb3133d078c876723ed6bf217a980613b05403be (patch) | |
tree | 7afd668bac9b29eae8e53614beb8587dbcbaa170 /internal/command/lfsauthenticate/lfsauthenticate.go | |
parent | e6a211544ef9abda2dbf4d943e786ffd9ca14193 (diff) | |
download | gitlab-shell-test-merge-request-2.tar.gz |
Test merge request 2test-merge-request-2
Diffstat (limited to 'internal/command/lfsauthenticate/lfsauthenticate.go')
-rw-r--r-- | internal/command/lfsauthenticate/lfsauthenticate.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/internal/command/lfsauthenticate/lfsauthenticate.go b/internal/command/lfsauthenticate/lfsauthenticate.go index 2aaac2a..9cf415b 100644 --- a/internal/command/lfsauthenticate/lfsauthenticate.go +++ b/internal/command/lfsauthenticate/lfsauthenticate.go @@ -18,12 +18,6 @@ const ( uploadOperation = "upload" ) -type Command struct { - Config *config.Config - Args *commandargs.Shell - ReadWriter *readwriter.ReadWriter -} - type PayloadHeader struct { Auth string `json:"Authorization"` } @@ -65,21 +59,6 @@ func (c *Command) Execute() error { return nil } -func actionFromOperation(operation string) (commandargs.CommandType, error) { - var action commandargs.CommandType - - switch operation { - case downloadOperation: - action = commandargs.UploadPack - case uploadOperation: - action = commandargs.ReceivePack - default: - return "", disallowedcommand.Error - } - - return action, nil -} - func (c *Command) verifyAccess(action commandargs.CommandType, repo string) (*accessverifier.Response, error) { cmd := accessverifier.Command{c.Config, c.Args, c.ReadWriter} |