Documentation
¶
Index ¶
- Constants
- func MkResponse(ctx *gin.Context, code int, msg string, data interface{})
- type CheckInstanceConnectableResponse
- type CloudAccount
- type ClusterCountResponse
- type ClusterTagsResponse
- type ClusterThumb
- type ClusterThumbWithTag
- type CustomClusterInstance
- type CustomClusterResponse
- type CustomInstanceListResponse
- type DataDisk
- type EncryptCloudAccountInfo
- type InstanceCountResponse
- type InstanceDetail
- type InstanceListResponse
- type InstanceResponse
- type InstanceStatResponse
- type InstanceThumb
- type InstanceUsage
- type InstanceUsageResponse
- type ListCloudAccountResponse
- type ListClustersResponse
- type ListClustersWithTagResponse
- type ListOrgsResponse
- type ListUsersResponse
- type NetworkConfig
- type OrgInfo
- type OrgThumb
- type Pager
- type StorageConfig
- type TaskCountResponse
- type TaskDetailListResponse
- type TaskDetailResponse
- type TaskInstancesResponse
- type TaskListResponse
- type TaskThumb
- type UserInfo
- type UserThumb
Constants ¶
View Source
const ( Success = "success" ParamInvalid = "param_invalid" TokenInvalid = "token_invalid" PermissionDenied = "permission_denied" UserNotFound = "user_not_found" UserExists = "user_already_exists" TaskNotFound = "task_not_found" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckInstanceConnectableResponse ¶ added in v0.4.0
type CheckInstanceConnectableResponse struct { IsAllPass bool `json:"is_all_pass"` InstanceList []*model.ConnectableResult `json:"instance_list"` }
type CloudAccount ¶
type ClusterCountResponse ¶
type ClusterCountResponse struct {
ClusterNum int64 `json:"cluster_num"`
}
type ClusterTagsResponse ¶ added in v0.1.5
type ClusterThumb ¶
type ClusterThumb struct { ClusterId string `json:"cluster_id"` ClusterName string `json:"cluster_name"` InstanceCount int64 `json:"instance_count"` InstanceType string `json:"instance_type"` ChargeType string `json:"charge_type"` Provider string `json:"provider"` Account string `json:"account"` Usage string `json:"usage"` CreateAt string `json:"create_at"` CreateBy string `json:"create_by"` UpdateBy string `json:"update_by"` UpdateAt string `json:"update_at"` }
type ClusterThumbWithTag ¶ added in v0.1.5
type CustomClusterInstance ¶ added in v0.4.0
type CustomClusterResponse ¶ added in v0.4.0
type CustomInstanceListResponse ¶ added in v0.4.0
type CustomInstanceListResponse struct { InstanceList []CustomClusterInstance `json:"instance_list"` Pager Pager `json:"pager"` }
type EncryptCloudAccountInfo ¶ added in v0.1.5
type InstanceCountResponse ¶
type InstanceCountResponse struct {
InstanceNum int64 `json:"instance_num"`
}
type InstanceDetail ¶
type InstanceDetail struct { InstanceId string `json:"instance_id"` Provider string `json:"provider"` RegionId string `json:"region_id"` ImageId string `json:"image_id"` InstanceType string `json:"instance_type"` IpInner string `json:"ip_inner"` IpOuter string `json:"ip_outer"` CreateAt string `json:"create_at"` StorageConfig *StorageConfig `json:"storage_config"` NetworkConfig *NetworkConfig `json:"network_config"` }
type InstanceListResponse ¶
type InstanceListResponse struct { InstanceList []InstanceThumb `json:"instance_list"` Pager Pager `json:"pager"` }
type InstanceResponse ¶
type InstanceResponse struct {
InstanceDetail
}
type InstanceStatResponse ¶ added in v0.1.2
type InstanceThumb ¶
type InstanceThumb struct { InstanceId string `json:"instance_id"` IpInner string `json:"ip_inner"` IpOuter string `json:"ip_outer"` Provider string `json:"provider"` ClusterType string `json:"cluster_type"` CreateAt string `json:"create_at"` Status string `json:"status"` StartupTime int `json:"startup_time"` ClusterName string `json:"cluster_name"` InstanceType string `json:"instance_type"` LoginName string `json:"login_name"` LoginPassword string `json:"login_password"` ChargeType string `json:"charge_type"` ComputingPowerType string `json:"computing_power_type"` }
type InstanceUsage ¶
type InstanceUsageResponse ¶
type InstanceUsageResponse struct { InstanceList []InstanceUsage `json:"instance_list"` Pager Pager `json:"pager"` }
type ListCloudAccountResponse ¶
type ListCloudAccountResponse struct { CloudAccountList []CloudAccount `json:"account_list"` Pager Pager `json:"pager"` }
type ListClustersResponse ¶
type ListClustersResponse struct { ClusterList []ClusterThumb `json:"cluster_list"` Pager Pager `json:"pager"` }
type ListClustersWithTagResponse ¶ added in v0.1.5
type ListClustersWithTagResponse struct { ClusterList []ClusterThumbWithTag `json:"cluster_list"` Pager Pager `json:"pager"` }
type ListOrgsResponse ¶
type ListOrgsResponse struct {
OrgList []OrgThumb `json:"org_list"`
}
type ListUsersResponse ¶
type NetworkConfig ¶
type StorageConfig ¶
type TaskCountResponse ¶
type TaskCountResponse struct {
TaskNum int64 `json:"task_num"`
}
type TaskDetailListResponse ¶
type TaskDetailListResponse struct { TaskList []*TaskDetailResponse `json:"task_list"` Pager Pager `json:"pager"` }
type TaskDetailResponse ¶
type TaskDetailResponse struct { TaskId string `json:"task_id"` TaskName string `json:"task_name"` ClusterName string `json:"cluster_name"` TaskStatus string `json:"task_status"` TaskResult string `json:"task_result"` TaskAction string `json:"task_action"` FailReason string `json:"fail_reason"` RunNum int `json:"run_num"` SuspendNum int `json:"suspend_num"` SuccessNum int `json:"success_num"` FailNum int `json:"fail_num"` TotalNum int `json:"total_num"` SuccessRate string `json:"success_rate"` ExecuteTime int `json:"execute_time"` BeforeInstanceCount int `json:"before_instance_count"` AfterInstanceCount int `json:"after_instance_count"` ExpectInstanceCount int `json:"expect_instance_count"` CreateAt string `json:"create_at"` CreateBy string `json:"create_by"` }
type TaskInstancesResponse ¶
type TaskInstancesResponse struct { InstanceList []InstanceThumb `json:"instance_list"` Pager Pager `json:"pager"` }
type TaskListResponse ¶
type TaskThumb ¶
type TaskThumb struct { TaskId string `json:"task_id"` TaskName string `json:"task_name"` TaskAction string `json:"task_action"` Status string `json:"status"` ClusterName string `json:"cluster_name"` CreateAt string `json:"create_at"` ExecuteTime int `json:"execute_time"` FinishAt string `json:"finish_at"` }
Click to show internal directories.
Click to hide internal directories.