models

package
v1.44.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 0 Imported by: 10 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster added in v1.0.9

type Cluster struct {

	/* 集群ID (Optional) */
	ClusterId string `json:"clusterId"`

	/* 集群名称 (Optional) */
	ClusterName string `json:"clusterName"`

	/* 集群创建时间 (Optional) */
	ClusterCreateTime string `json:"clusterCreateTime"`

	/* 集群是否为高可用 (Optional) */
	ClusterHa bool `json:"clusterHa"`

	/* 集群状态 (Optional) */
	ClusterStatus string `json:"clusterStatus"`

	/* 集群版本 (Optional) */
	ClusterVersion string `json:"clusterVersion"`

	/* 集群服务 (Optional) */
	ClusterService []string `json:"clusterService"`

	/* 集群所属地域 (Optional) */
	ClusterRegion string `json:"clusterRegion"`

	/* 集群所属可用区 (Optional) */
	ClusterAz string `json:"clusterAz"`

	/* 集群费用 (Optional) */
	ClusterPrice float64 `json:"clusterPrice"`

	/* 集群计费类型 (Optional) */
	ClusterPaymentType string `json:"clusterPaymentType"`

	/* 集群是否关联对象存储 (Optional) */
	ClusterOss bool `json:"clusterOss"`

	/* 集群私有网络名称 (Optional) */
	ClusterVpc string `json:"clusterVpc"`

	/* 集群子网名称 (Optional) */
	ClusterVpcSubnet string `json:"clusterVpcSubnet"`

	/* 集群公网网络带宽 (Optional) */
	ClusterBandwidth int `json:"clusterBandwidth"`

	/* 集群节点信息 (Optional) */
	ClusterNodes []ClusterNode `json:"clusterNodes"`
}

type ClusterExpansion added in v1.0.9

type ClusterExpansion struct {

	/* 集群ID  */
	ClusterId string `json:"clusterId"`

	/* 扩容节点个数  */
	ExpansionNum string `json:"expansionNum"`
}

type ClusterNode added in v1.44.0

type ClusterNode struct {

	/* 集群节点ID (Optional) */
	ClusterNodeId string `json:"clusterNodeId"`

	/* 集群节点主机名称 (Optional) */
	ClusterNodeHostName string `json:"clusterNodeHostName"`

	/* 集群节点内网IP (Optional) */
	ClusterNodeIntranetIp string `json:"clusterNodeIntranetIp"`

	/* 集群节点公网IP (Optional) */
	ClusterNodeConnectionIp string `json:"clusterNodeConnectionIp"`

	/* 集群节点类型 (Optional) */
	ClusterNodeRole string `json:"clusterNodeRole"`

	/* 集群节点硬盘信息 (Optional) */
	ClusterNodeDisk []ClusterNodeDisk `json:"clusterNodeDisk"`

	/* 集群节点型号 (Optional) */
	ClusterNodeModel string `json:"clusterNodeModel"`
}

type ClusterNodeDisk added in v1.44.0

type ClusterNodeDisk struct {

	/* 云硬盘ID,暂不提供 (Optional) */
	ClusterNodeDiskId string `json:"clusterNodeDiskId"`

	/* 云硬盘类型 (Optional) */
	ClusterNodeDiskType string `json:"clusterNodeDiskType"`

	/* 云硬盘大小,单位为 GiB (Optional) */
	ClusterNodeDiskSize int `json:"clusterNodeDiskSize"`
}

type ClusterSpec added in v1.44.0

type ClusterSpec struct {

	/* 集群名称(不能少于6字符不能超过20字符,除下划线外不能包含特殊符号)  */
	Name string `json:"name"`

	/* 集群root用户密码(须包含大小写字母、数字及特殊字符其中三类,且不能少于8字符不能超过30字符)  */
	Password string `json:"password"`

	/* 集群版本,默认版本为JMR2.0.0  */
	Version string `json:"version"`

	/* 集群计费类型,支持按配置和包年包月计费  */
	PayType string `json:"payType"`

	/* 主节点数量  */
	MasterNodeCount int `json:"masterNodeCount"`

	/* Master节点CPU (Optional) */
	MasterCore *int `json:"masterCore"`

	/* Master节点内存(推荐至少8G内存,否则服务可能会部署失败) (Optional) */
	MasterMemory *int `json:"masterMemory"`

	/* Master系统硬盘类型:ssd.gp1,ssd.io1和hdd.std1  */
	MasterSystemDiskType string `json:"masterSystemDiskType"`

	/* Master系统硬盘大小,单位GB  */
	MasterSystemDiskVolume int `json:"masterSystemDiskVolume"`

	/* Master系统硬盘iops,只有在硬盘类型是ssd.gp1,ssd.io1时,才需要有iops,200起步,步长为10  */
	MasterSystemDiskIops int `json:"masterSystemDiskIops"`

	/* Master数据盘类型:ssd.gp1,ssd.io1和hdd.std1  */
	MasterDiskType string `json:"masterDiskType"`

	/* Master数据盘大小,单位GB  */
	MasterDiskVolume int `json:"masterDiskVolume"`

	/* Master数据盘ipos,只有在硬盘类型是ssd.gp1,ssd.io1时,才需要有iops,200起步,步长为10  */
	MasterDiskIops int `json:"masterDiskIops"`

	/* master节点规格  */
	MasterInstanceType string `json:"masterInstanceType"`

	/* Slave节点数量  */
	SlaveNodeCount int `json:"slaveNodeCount"`

	/* Slave节点CPU (Optional) */
	SlaveCore *int `json:"slaveCore"`

	/* Slave节点内存(推荐至少4G内存,否则服务可能会部署失败) (Optional) */
	SlaveMemory *int `json:"slaveMemory"`

	/* Slave系统硬盘类型:ssd.gp1,ssd.io1和hdd.std1  */
	SlaveSystemDiskType string `json:"slaveSystemDiskType"`

	/* Slave系统硬盘大小,单位GB  */
	SlaveSystemDiskVolume int `json:"slaveSystemDiskVolume"`

	/* Slave系统硬盘iops,只有在硬盘类型是ssd.gp1,ssd.io1时,才需要有iops,200起步,步长为10  */
	SlaveSystemDiskIops int `json:"slaveSystemDiskIops"`

	/* Slave数据盘类型:ssd.gp1,ssd.io1和hdd.std1  */
	SlaveDiskType string `json:"slaveDiskType"`

	/* Slave数据盘大小,单位GB  */
	SlaveDiskVolume int `json:"slaveDiskVolume"`

	/* Slave数据盘ipos,只有在硬盘类型是ssd.gp1,ssd.io1时,才需要有iops,200起步,步长为10  */
	SlaveDiskIops int `json:"slaveDiskIops"`

	/* slave节点规格  */
	CoreInstanceType string `json:"coreInstanceType"`

	/* 关联JSS  */
	JssFlag bool `json:"jssFlag"`

	/* 数据中心,即regionId  */
	DataCenter string `json:"dataCenter"`

	/* 软件列表  */
	SoftwareList string `json:"softwareList"`

	/* 集群是否为高可用,默认为高可用集群  */
	HaFlag bool `json:"haFlag"`

	/* Vpc网络ID  */
	VpcId string `json:"vpcId"`

	/* Vpc子网ID  */
	VpcSubnetId string `json:"vpcSubnetId"`

	/* 数据中心的可用区  */
	Az string `json:"az"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL