提交 76483a59 编写于 作者: 周鹏飞@yunify

refine deveops API docs, fix typo

Signed-off-by: N周鹏飞@yunify <pengfeizhou@yunify.com>
上级 56a916e5
...@@ -41,11 +41,11 @@ type DevOpsProject struct { ...@@ -41,11 +41,11 @@ type DevOpsProject struct {
Name string `json:"name" description:"DevOps Projects's Name"` Name string `json:"name" description:"DevOps Projects's Name"`
Description string `json:"description,omitempty" description:"DevOps Projects's Description, used to describe the DevOps Project'"` Description string `json:"description,omitempty" description:"DevOps Projects's Description, used to describe the DevOps Project"`
Creator string `json:"creator" description:"Creator's username'"` Creator string `json:"creator" description:"Creator's username"`
CreateTime time.Time `json:"create_time" description:"DevOps Project's Creation time'"` CreateTime time.Time `json:"create_time" description:"DevOps Project's Creation time"`
Status string `json:"status" description:"DevOps project's status. e.g. active"` Status string `json:"status" description:"DevOps project's status. e.g. active"`
......
...@@ -28,7 +28,7 @@ const ( ...@@ -28,7 +28,7 @@ const (
type JenkinsCredential struct { type JenkinsCredential struct {
Id string `json:"id" description:"Id of Credential, e.g. dockerhub-id"` Id string `json:"id" description:"Id of Credential, e.g. dockerhub-id"`
Type string `json:"type" description:"Type of Credential, e.g. ssh/kubeconfig"` Type string `json:"type" description:"Type of Credential, e.g. ssh/kubeconfig"`
DisplayName string `json:"display_name,omitempty" description:"Credential's display name'"` DisplayName string `json:"display_name,omitempty" description:"Credential's display name"`
Fingerprint *struct { Fingerprint *struct {
FileName string `json:"file_name,omitempty" description:"Credential's display name and description"` FileName string `json:"file_name,omitempty" description:"Credential's display name and description"`
Hash string `json:"hash,omitempty" description:"Credential's hash"` Hash string `json:"hash,omitempty" description:"Credential's hash"`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册