fix(region): struct tag fix (#25023)

This commit is contained in:
屈轩
2026-06-15 11:04:17 +08:00
committed by GitHub
parent f36d39848c
commit 7d0870790a
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func initContainerRegistry() {
type UploadOptions struct {
REGISTRY string `help:"The name or id of registry" json:"-"`
FILE string `help:"The container tar image" json:"-"`
Name string `help:"Override image name" json:"name`
Name string `help:"Override image name" json:"name"`
Tag string `help:"Override image tag" json:"tag"`
}
R(new(UploadOptions), "k8s-container-registry-upload-image", "Upload a docker image", func(s *mcclient.ClientSession, args *UploadOptions) error {
+1 -1
View File
@@ -406,7 +406,7 @@ type GuestDiskInfo struct {
Throughput int `json:"throughput"`
Bps int `json:"bps"`
ImageId string `json:"image_id,omitempty"`
Image string `json:"image,omitemtpy"`
Image string `json:"image,omitempty"`
StorageId string `json:"storage_id"`
Preallocation string `json:"preallocation"`
}
+1 -1
View File
@@ -91,7 +91,7 @@ type VpcListInput struct {
OrderByNetworkCount string `json:"order_by_network_count"`
// 按二层网络数量排序
// pattern:asc|desc
OrderByWireCount string `json:""order_by_wire_count`
OrderByWireCount string `json:"order_by_wire_count"`
}
const (
+1 -1
View File
@@ -57,7 +57,7 @@ type ImageListInput struct {
// 发行版本,可能值为: CentOS, Ubuntu, Debian, ArchLinux, OpenEuler 等
Distributions []string `json:"distributions"`
// 发行版精确匹配
DistributionPreciseMatch bool `json:"distribution_precise_match`
DistributionPreciseMatch bool `json:"distribution_precise_match"`
}
type GuestImageListInput struct {