mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-31 01:35:56 +08:00
fix(region): struct tag fix (#25023)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user