Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Art ¶
type Art struct {
/* 作品ID (Optional) */
ArtId string `json:"artId"`
/* 图片URL(对象存储) (Optional) */
ImageUrl string `json:"imageUrl"`
/* 模型列表 (Optional) */
Models []Model `json:"models"`
/* 正向提示词(英文逗号分隔) (Optional) */
Prompt string `json:"prompt"`
/* 负向提示词(英文逗号分隔) (Optional) */
NegativePrompt string `json:"negativePrompt"`
/* 其他参数 (Optional) */
OtherMetadata string `json:"otherMetadata"`
/* comfyui工作流URL(对象存储) (Optional) */
ComfyuiWorkflowUrl string `json:"comfyuiWorkflowUrl"`
/* 镜像列表 (Optional) */
Images []ArtImage `json:"images"`
/* 前一个作品ID (Optional) */
PrevArtId string `json:"prevArtId"`
/* 后一个作品ID (Optional) */
NextArtId string `json:"nextArtId"`
}
type GcsImageApplication ¶
type GcsImageApplication struct {
/* 应用名称 (Optional) */
Name string `json:"name"`
}
type ImageInfo ¶
type ImageInfo struct {
/* 镜像uuid (Optional) */
Uuid string `json:"uuid"`
/* 镜像名称,列表展示使用,比如:container-cuda12 (Optional) */
Name string `json:"name"`
/* 子域名 (Optional) */
SubDomain string `json:"subDomain"`
/* nvidia cuda version (Optional) */
CudaVersion string `json:"cudaVersion"`
/* 镜像操作系统类型:centos|ubantu (Optional) */
Os string `json:"os"`
/* 使用哪种conda:miniconda or anoconda (Optional) */
Conda string `json:"conda"`
/* 应用框架,比如:unsigned(无)|Pytorch (Optional) */
Framework string `json:"framework"`
/* 镜像类型:cuda(英伟达环境镜像)|normal(常规镜像)|amd(amd环境镜像) (Optional) */
ImageType string `json:"imageType"`
/* 镜像渠道:official(JD官方镜像)|custom(用户自定义镜像) (Optional) */
Channel string `json:"channel"`
/* 镜像基础描述信息 (Optional) */
Remark string `json:"remark"`
/* 镜像应用列表 (Optional) */
Apps []GcsImageApplication `json:"apps"`
}
type Instance ¶
type Instance struct {
/* 容器所属名称空间 (Optional) */
Namespace string `json:"namespace"`
/* 容器名称 (Optional) */
Name string `json:"name"`
/* 对应的SKU ID (Optional) */
SkuInfoId string `json:"skuInfoId"`
/* az (Optional) */
Az string `json:"az"`
/* image id (Optional) */
ImageId string `json:"imageId"`
/* gcs-uuid (Optional) */
InstanceId string `json:"instanceId"`
/* nick name,用户自定义 (Optional) */
InstanceName string `json:"instanceName"`
/* 当前pod实例状态:running|stopped|release|createing (Optional) */
Status string `json:"status"`
/* 当前实例是否为无卡运行状态,0-无卡运行|1-有卡运行 (Optional) */
Cardless int `json:"cardless"`
/* 实例所在宿主机可用卡数量 (Optional) */
Cardnum int `json:"cardnum"`
/* Jupyter编辑器公网路径+token (Optional) */
Jupyter string `json:"jupyter"`
/* sd ui host (Optional) */
SdUrl string `json:"sdUrl"`
/* cluster host (Optional) */
Host string `json:"host"`
/* 容器登录名 (Optional) */
SshUserName string `json:"sshUserName"`
/* 容器登录密码 (Optional) */
SshPassword string `json:"sshPassword"`
/* 实例关机到期时间 (Optional) */
ReleaseTime string `json:"releaseTime"`
/* 实例关机时间 (Optional) */
StopTime string `json:"stopTime"`
/* 实例版本 (Optional) */
InsVersion string `json:"insVersion"`
/* 订单渠道:aidc(默认)|yunding (Optional) */
Channel string `json:"channel"`
/* 计费信息 (Optional) */
Charge charge.Charge `json:"charge"`
/* service,NodePort开放端口记录 (Optional) */
Ports []Service `json:"ports"`
/* service,ClusterIp开放端口记录 (Optional) */
ClusterIpPorts []Service `json:"clusterIpPorts"`
}
type InstanceSpec ¶
type InstanceSpec struct {
/* sku uuid */
SkuId string `json:"skuId"`
/* image uuid */
ImageId string `json:"imageId"`
/* 可用区 (Optional) */
Az *string `json:"az"`
/* 订单渠道:aidc(默认)|yunding (Optional) */
Channel *string `json:"channel"`
/* 购买数量 */
Count int `json:"count"`
/* 计费配置 */
Charge *charge.ChargeSpec `json:"charge"`
}
type OrderInfo ¶
type OrderInfo struct {
/* 用户pin (Optional) */
Pin string `json:"pin"`
/* 资源的ID,即业务线的实例ID (Optional) */
InstanceId string `json:"instanceId"`
/* 主订单编号 (Optional) */
OrderNumber string `json:"orderNumber"`
/* 子订单编号 (Optional) */
SubOrderNumber string `json:"subOrderNumber"`
/* 山海计费项信息 (Optional) */
ChargeItem string `json:"chargeItem"`
/* 订单类型:1-新购 2-续费 3-配置变更 (Optional) */
OrderType int `json:"orderType"`
/* 订单状态 (Optional) */
OrderStatus string `json:"orderStatus"`
/* sku信息,仅order_type=1生效 (Optional) */
SkuId string `json:"skuId"`
/* 镜像信息,仅order_type=1生效 (Optional) */
ImageId string `json:"imageId"`
/* 支付模式:prepaid_by_duration-预付费(包年包月)|postpaid_by_duration-按配置|postpaid_by_usage-按用量 (Optional) */
ChargeMode string `json:"chargeMode"`
/* normal-正常|overdue-已到期|overdue_stop-已到期停服|arrear-欠费|arrear_stop-欠费停服 (Optional) */
ChargeStatus string `json:"chargeStatus"`
/* 计费开始时间 (Optional) */
ChargeStartTime string `json:"chargeStartTime"`
/* 计费过期时间,仅预付费 (Optional) */
ChargeExpiredTime string `json:"chargeExpiredTime"`
/* 欠费、过期资源释放时间 (Optional) */
ChargeRetireTime string `json:"chargeRetireTime"`
/* 促销标识 (Optional) */
BuyScenario string `json:"buyScenario"`
/* 是否开启自动续费 (Optional) */
AutoRenew string `json:"autoRenew"`
/* 打包id号 (Optional) */
TaskId string `json:"taskId"`
/* 产品线自定义的消息 (Optional) */
CustomInfo string `json:"customInfo"`
/* 资源的唯一标识,批量创建会包含多个子订单 (Optional) */
SourceIdMain string `json:"sourceIdMain"`
/* service codes 逗号分隔 (Optional) */
ServiceCode string `json:"serviceCode"`
/* 实际订单资源id (Optional) */
SourceIdSub string `json:"sourceIdSub"`
/* 来源 (Optional) */
Source string `json:"source"`
/* 记录创建时间 (Optional) */
CreateTime string `json:"createTime"`
}
type RenewalResource ¶
type RenewalResource struct {
/* 资源ID (Optional) */
ResourceId string `json:"resourceId"`
/* 资源名称 (Optional) */
ResourceName string `json:"resourceName"`
/* 备注 (Optional) */
Remark string `json:"remark"`
/* 绑定资源列表 (Optional) */
Bind []RenewalResource `json:"bind"`
}
type SaveToDbSpec ¶
type SaveToDbSpec struct {
/* 资源创建唯一标识 */
ResourceKey string `json:"resourceKey"`
}
type Service ¶
type Service struct {
/* 名称,取自container_port.port字段,比如:http-np-ssh (Optional) */
Name string `json:"name"`
/* appName (Optional) */
AppName string `json:"appName"`
/* Service服务端口,来自端口池,以便保证服务端口在分配的时候不会重复 (Optional) */
Port int `json:"port"`
/* protocol:http or tcp (Optional) */
Protocol string `json:"protocol"`
}
type SkuInfo ¶
type SkuInfo struct {
/* sku id (Optional) */
Uuid string `json:"uuid"`
/* 地域代码, 如cn-north-1 (Optional) */
Region string `json:"region"`
/* 可用区, 如cn-north-1a (Optional) */
Az string `json:"az"`
/* sku名称,比如:NVIDIA 3090 24G*1卡 (Optional) */
SkuName string `json:"skuName"`
/* 库存值 (Optional) */
SkuStock int `json:"skuStock"`
/* SKU规格,比如:gcs.nv-3090-1.6c-24g.nvme200 (Optional) */
Specification string `json:"specification"`
/* 有卡开机-计算规格 (Optional) */
Compute SkuItemCompute `json:"compute"`
/* 无卡开机-计算规格 (Optional) */
Cardless SkuItemCompute `json:"cardless"`
/* LocalPv存储规格 (Optional) */
LocalPv SkuItemStorage `json:"localPv"`
/* 容器镜像记录 (Optional) */
ImageList []ImageInfo `json:"imageList"`
}
type SkuItemCompute ¶
type SkuItemCompute struct {
/* 京东云山海系统申请的计费项标识 (Optional) */
ChargeItem string `json:"chargeItem"`
/* 计费项名称,例如:gcs-com.nv-3090-24g-1.x86-6c-24g (Optional) */
ItemName string `json:"itemName"`
/* 计费项类型:0:有卡开机-计算规格|1:存储规格-localPV|2:无卡开机-计算规格 (Optional) */
Type string `json:"type"`
/* GPU厂商 (Optional) */
GpuManufacturer string `json:"gpuManufacturer"`
/* GPU展示名称 (Optional) */
GpuName string `json:"gpuName"`
/* GPU型号,例如:NVIDIA GeForce RTX 3060 (Optional) */
GpuModel string `json:"gpuModel"`
/* GPU显存 (Optional) */
GpuMemory string `json:"gpuMemory"`
/* GPU浮点数 (Optional) */
GpuComputility string `json:"gpuComputility"`
/* GPU卡数,单位:卡 (Optional) */
GpuCount int `json:"gpuCount"`
/* CPU架构,例如:x86|arm (Optional) */
CpuArchitecture string `json:"cpuArchitecture"`
/* CPU核数,单位:个 (Optional) */
CpuCount int `json:"cpuCount"`
/* k8s cpu request核数,单位:个 (Optional) */
CpuRequest int `json:"cpuRequest"`
/* cpu generation, cpu代际名称,比如:Intel Platinum 8338 (Optional) */
CpuGen string `json:"cpuGen"`
/* 内存大小,单位:G (Optional) */
Memory int `json:"memory"`
/* k8s memory request,单位:G (Optional) */
MemoryRequest int `json:"memoryRequest"`
/* memory generation, 内存代际名称,比如:DDR4 or DDR5 (Optional) */
MemoryGen string `json:"memoryGen"`
}
type SkuItemStorage ¶
type SkuItemStorage struct {
/* 京东云山海系统申请的计费项标识 (Optional) */
ChargeItem string `json:"chargeItem"`
/* 计费项名称,例如:gcs-com.nv-3090-24g-1.x86-6c-24g (Optional) */
ItemName string `json:"itemName"`
/* 计费项类型:0:有卡开机-计算规格|1:存储规格-localPV|2:无卡开机-计算规格 (Optional) */
Type string `json:"type"`
/* 系统盘类型,例如:ssd|nvme|hdd (Optional) */
SystemDiskType string `json:"systemDiskType"`
/* 系统盘大小,单位G (Optional) */
SystemDisk int `json:"systemDisk"`
/* 数据盘类型,例如:ssd|nvme|hdd (Optional) */
DataDiskType string `json:"dataDiskType"`
/* 数据盘大小,单位G (Optional) */
DataDisk int `json:"dataDisk"`
}
type SkuStock ¶
type SkuStock struct {
/* sku名称,比如:NVIDIA 3090 24G*1卡 (Optional) */
SkuName string `json:"skuName"`
/* SKU规格,比如:gcs.nv-3090-1.6c-24g.nvme200 (Optional) */
Specification string `json:"specification"`
/* GPU卡数,单位:卡 (Optional) */
GpuCount int `json:"gpuCount"`
/* 库存值 (Optional) */
SkuStock int `json:"skuStock"`
/* 库存预警阀值;skuStock低于此数值页面可以给出提示信息 (Optional) */
StockLimit int `json:"stockLimit"`
}
Click to show internal directories.
Click to hide internal directories.