models

package
v1.69.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 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 CloudstorageSpec

type CloudstorageSpec struct {

	/* 副本集名称  */
	Rsname string `json:"rsname"`

	/* 云盘扩容大小  */
	Size int `json:"size"`
}

type DeviceControlSpec

type DeviceControlSpec struct {

	/* 请求ID  */
	Request_id string `json:"request_id"`

	/* 设备列表  */
	Peers string `json:"peers"`

	/* 设备指令串base64  */
	Br_msg string `json:"br_msg"`
}

type DwAuthSpec

type DwAuthSpec struct {

	/* 产品key  */
	ProductKey string `json:"productKey"`

	/* 设备IDENT  */
	DeviceIdent string `json:"deviceIdent"`

	/* 设备密钥  */
	DeviceSecret string `json:"deviceSecret"`
}

type FlavorSpec

type FlavorSpec struct {

	/* 副本集名称  */
	Rsname string `json:"rsname"`

	/* 副本规格  */
	Flavor string `json:"flavor"`
}

type Instance

type Instance struct {

	/* 实例ID (Optional) */
	InstanceId string `json:"instanceId"`

	/* 实例名称 (Optional) */
	InstanceName string `json:"instanceName"`

	/* 实例版本 (Optional) */
	InstanceVersion string `json:"instanceVersion"`

	/* 所在地域 (Optional) */
	InstanceRegion string `json:"instanceRegion"`

	/* 实例状态,running:运行,error:错误,creating:创建中,changing:变配中 (Optional) */
	InstanceStatus string `json:"instanceStatus"`

	/* 实例硬件配置规格 例如:2C4G20G (Optional) */
	InstanceFlavor string `json:"instanceFlavor"`

	/* az信息 (Optional) */
	AzId string `json:"azId"`

	/* 所属VPC的ID (Optional) */
	VpcId string `json:"vpcId"`

	/* 所属子网的ID (Optional) */
	SubnetId string `json:"subnetId"`

	/* 下行控制管理域名和设备上行链接的外网域名 (Optional) */
	ExposedDomain string `json:"exposedDomain"`

	/* 节点个数 (Optional) */
	Replica int `json:"replica"`

	/* 云硬盘大小 (Optional) */
	Cloudstorage int `json:"cloudstorage"`

	/* 实例服务配置 (Optional) */
	ServiceConfig string `json:"serviceConfig"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 网关设备ID (Optional) */
	Gw_dev_id string `json:"gw_dev_id"`

	/* 网关子设备数 (Optional) */
	Gw_dev_num int `json:"gw_dev_num"`

	/* 计费类型 (Optional) */
	ChargeType int `json:"chargeType"`

	/* 计费过期时间 (Optional) */
	ChargeExpired string `json:"chargeExpired"`
}

type InstanceConfig

type InstanceConfig struct {

	/* 服务id  */
	ServiceId string `json:"serviceId"`

	/* 产品key  */
	ProductKey string `json:"productKey"`

	/* 产品secret  */
	ProductSecret string `json:"productSecret"`

	/* 支持协议(jt808,gbt32960)  */
	Protocol string `json:"protocol"`

	/* hub mqtt地址  */
	MqttAddr string `json:"mqttAddr"`

	/* hub http地址  */
	HttpAddr string `json:"httpAddr"`

	/* redis地址  */
	RedisAddr string `json:"redisAddr"`

	/* 本地多媒体存放路径  */
	MediaStore string `json:"mediaStore"`

	/* 网关设备ID  */
	GwdevId string `json:"gwdevId"`

	/* 关联的OSS配置 (Optional) */
	OssSpec OssSpec `json:"ossSpec"`

	/* 关联的DW认证配置 (Optional) */
	DwAuthSpec DwAuthSpec `json:"dwAuthSpec"`
}

type InstanceSpec

type InstanceSpec struct {

	/* 实例集群名称  */
	InstanceName string `json:"instanceName"`

	/* iotcloudgateway版本  */
	InstanceVersion string `json:"instanceVersion"`

	/* 应用服务名称  */
	ServiceName string `json:"serviceName"`

	/* 实例操作  */
	ActionName string `json:"actionName"`

	/* 私有网络vpcId  */
	VpcId string `json:"vpcId"`

	/* 子网subnetId  */
	SubnetId string `json:"subnetId"`

	/* 可用区ID, 如果两个可用区一样,也需输入两个azId  */
	AzId []string `json:"azId"`

	/* source type  */
	SourceType string `json:"sourceType"`

	/* AZ1实例硬件规格  */
	Az1flavor string `json:"az1flavor"`

	/* AZ1节点个数  */
	Az1replica int `json:"az1replica"`

	/* AZ1云硬盘大小  */
	Az1storagesize int `json:"az1storagesize"`

	/* AZ2实例硬件规格  */
	Az2flavor string `json:"az2flavor"`

	/* AZ2节点个数  */
	Az2replica int `json:"az2replica"`

	/* AZ2云硬盘大小  */
	Az2storagesize int `json:"az2storagesize"`
}

type NewInstanceSpec

type NewInstanceSpec struct {

	/* 可用区ID, 如果两个可用区一样,也需输入两个azId  */
	AzId []string `json:"azId"`

	/* AZ1实例硬件规格  */
	Az1flavor string `json:"az1flavor"`

	/* AZ1节点个数  */
	Az1replica int `json:"az1replica"`

	/* AZ1云硬盘大小  */
	Az1storagesize int `json:"az1storagesize"`

	/* AZ2实例硬件规格  */
	Az2flavor string `json:"az2flavor"`

	/* AZ2节点个数  */
	Az2replica int `json:"az2replica"`

	/* AZ2云硬盘大小  */
	Az2storagesize int `json:"az2storagesize"`
}

type OssSpec

type OssSpec struct {

	/* OSS AK  */
	Oss_ak string `json:"oss_ak"`

	/* OSS SK  */
	Oss_sk string `json:"oss_sk"`

	/* OSS region  */
	Oss_region string `json:"oss_region"`

	/* OSS endpoint  */
	Oss_endpoint string `json:"oss_endpoint"`

	/* OSS bucket  */
	Oss_bucket string `json:"oss_bucket"`
}

type ReplicaSpec

type ReplicaSpec struct {

	/* 副本集名称  */
	Rsname string `json:"rsname"`

	/* 副本数  */
	Replica int `json:"replica"`
}

type Resource

type Resource struct {

	/* 资源ID (Optional) */
	ResourceId string `json:"resourceId"`

	/* 资源名称 (Optional) */
	ResourceName string `json:"resourceName"`
}

Jump to

Keyboard shortcuts

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