refactor: update vendor.

This commit is contained in:
Bo-Yi Wu
2017-05-01 21:14:57 +08:00
parent 2263ba2a8d
commit 4f256bfd5c
41 changed files with 18 additions and 210 deletions

22
vendor/code.gitea.io/sdk/gitea/admin_repo.go generated vendored Normal file
View File

@@ -0,0 +1,22 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitea
import (
"bytes"
"encoding/json"
"fmt"
)
// AdminCreateRepo create a repo
func (c *Client) AdminCreateRepo(user string, opt CreateRepoOption) (*Repository, error) {
body, err := json.Marshal(&opt)
if err != nil {
return nil, err
}
repo := new(Repository)
return repo, c.getParsedResponse("POST", fmt.Sprintf("/admin/users/%s/repos", user),
jsonHeader, bytes.NewReader(body), repo)
}