Skip to content

Commit

Permalink
fix: gen doc
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed Sep 6, 2024
1 parent 170c125 commit 29045af
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
1 change: 1 addition & 0 deletions pkg/filesystem/api/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
)

type FileSystemBackend struct {
// 地址
Backend strfmt.Endpoint `flag:"backend"`

fsi filesystem.FileSystem `flag:"-"`
Expand Down
4 changes: 3 additions & 1 deletion pkg/filesystem/api/zz_generated.runtimedoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ func (v FileSystemBackend) RuntimeDoc(names ...string) ([]string, bool) {
if len(names) > 0 {
switch names[0] {
case "Backend":
return []string{}, true
return []string{
"地址",
}, true

}

Expand Down
25 changes: 23 additions & 2 deletions pkg/filesystem/ftp/zz_generated.runtimedoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ func (v Config) RuntimeDoc(names ...string) ([]string, bool) {
switch names[0] {
case "Endpoint":
return []string{}, true
case "TLS":
return []string{}, true

}

Expand All @@ -34,10 +36,29 @@ func (v Pool) RuntimeDoc(names ...string) ([]string, bool) {
return []string{}, true
case "Auth":
return []string{}, true
case "MaxConnections":
return []string{}, true
case "ConnectTimeout":
return []string{}, true
case "EnableDebug":
return []string{}, true
case "ExplicitTLS":
return []string{}, true
case "TLSConfig":
return []string{}, true

}

return nil, false
}
return []string{}, true
}

func (v TLS) RuntimeDoc(names ...string) ([]string, bool) {
if len(names) > 0 {
switch names[0] {
case "CertData":
return []string{}, true
case "KeyData":
return []string{}, true

}

Expand Down
4 changes: 4 additions & 0 deletions pkg/ftp/zz_generated.runtimedoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ func (v Server) RuntimeDoc(names ...string) ([]string, bool) {
return []string{}, true
case "PublicHost":
return []string{}, true
case "DisableMLST":
return []string{}, true
case "DisableMLSD":
return []string{}, true

}

Expand Down

0 comments on commit 29045af

Please sign in to comment.