mirror of
https://github.com/goharbor/harbor
synced 2025-04-21 01:18:02 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
e7fe841b03
|
@ -57,8 +57,8 @@ To simplify the installation process, a pre-built installation package of Harbor
|
||||||
|
|
||||||
For information on how to use Harbor, please see [User Guide](docs/user_guide.md) .
|
For information on how to use Harbor, please see [User Guide](docs/user_guide.md) .
|
||||||
|
|
||||||
### Deploy harbor on Kubernetes
|
### Deploy Harbor on Kubernetes
|
||||||
Detailed instruction about deploying harbor on Kubernetes is described [here](https://github.com/vmware/harbor/blob/master/kubernetes_deployment.md).
|
Detailed instruction about deploying Harbor on Kubernetes is described [here](docs/kubernetes_deployment.md).
|
||||||
|
|
||||||
### Contribution
|
### Contribution
|
||||||
We welcome contributions from the community. If you wish to contribute code and you have not signed our contributor license agreement (CLA), our bot will update the issue when you open a pull request. For any questions about the CLA process, please refer to our [FAQ](https://cla.vmware.com/faq).
|
We welcome contributions from the community. If you wish to contribute code and you have not signed our contributor license agreement (CLA), our bot will update the issue when you open a pull request. For any questions about the CLA process, please refer to our [FAQ](https://cla.vmware.com/faq).
|
||||||
|
|
|
@ -77,7 +77,7 @@ func InitDB() {
|
||||||
var err error
|
var err error
|
||||||
var c net.Conn
|
var c net.Conn
|
||||||
for {
|
for {
|
||||||
c, err = net.Dial("tcp", addr+":"+port)
|
c, err = net.DialTimeout("tcp", addr+":"+port, 20*time.Second)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
c.Close()
|
c.Close()
|
||||||
ch <- 1
|
ch <- 1
|
||||||
|
|
|
@ -473,6 +473,36 @@ paths:
|
||||||
description: Project ID does not exist.
|
description: Project ID does not exist.
|
||||||
500:
|
500:
|
||||||
description: Unexpected internal errors.
|
description: Unexpected internal errors.
|
||||||
|
delete:
|
||||||
|
summary: Delete a repository or a tag in a repository.
|
||||||
|
description: |
|
||||||
|
This endpoint let user delete repositories and tags with repo name and tag.
|
||||||
|
parameters:
|
||||||
|
- name: repo_name
|
||||||
|
in: query
|
||||||
|
type: string
|
||||||
|
format: string
|
||||||
|
required: true
|
||||||
|
description: The name of repository which will be deleted.
|
||||||
|
- name: tag
|
||||||
|
in: query
|
||||||
|
type: string
|
||||||
|
format: string
|
||||||
|
required: false
|
||||||
|
description: Tag of a repository.
|
||||||
|
tags:
|
||||||
|
- Products
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: Delete repository or tag successfully.
|
||||||
|
400:
|
||||||
|
description: Invalid repo_name.
|
||||||
|
401:
|
||||||
|
description: Unauthorized.
|
||||||
|
404:
|
||||||
|
description: Repository or tag not found.
|
||||||
|
403:
|
||||||
|
description: Forbidden.
|
||||||
/repositories/tags:
|
/repositories/tags:
|
||||||
get:
|
get:
|
||||||
summary: Get tags of a relevant repository.
|
summary: Get tags of a relevant repository.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user