Documentation ¶
Overview ¶
Package aliyunocs 包含阿里云ocsAPI相关结构体
Index ¶
- func ReleaseAliyunOcsRegion(v *AliyunOcsRegion)
- func ReleaseMKvstoreAliyuncsComCreateInstance20150301APIRequest(v *MKvstoreAliyuncsComCreateInstance20150301APIRequest)
- func ReleaseMKvstoreAliyuncsComCreateInstance20150301APIResponse(v *MKvstoreAliyuncsComCreateInstance20150301APIResponse)
- func ReleaseMKvstoreAliyuncsComDescribeRegions20150301APIRequest(v *MKvstoreAliyuncsComDescribeRegions20150301APIRequest)
- func ReleaseMKvstoreAliyuncsComDescribeRegions20150301APIResponse(v *MKvstoreAliyuncsComDescribeRegions20150301APIResponse)
- type AliyunOcsRegion
- type MKvstoreAliyuncsComCreateInstance20150301APIRequest
- func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetApiMethodName() string
- func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetApiParams(params url.Values)
- func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetCapacity() int64
- func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetInstanceName() string
- func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetNetworkType() string
- func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetPassword() string
- func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetPrivateIpAddress() string
- func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetRawParams() model.Params
- func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetRegionId() string
- func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetToken() string
- func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetVSwitchId() string
- func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetVpcId() string
- func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetZoneId() string
- func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) Reset()
- func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetCapacity(_capacity int64) error
- func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetInstanceName(_instanceName string) error
- func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetNetworkType(_networkType string) error
- func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetPassword(_password string) error
- func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetPrivateIpAddress(_privateIpAddress string) error
- func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetRegionId(_regionId string) error
- func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetToken(_token string) error
- func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetVSwitchId(_vSwitchId string) error
- func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetVpcId(_vpcId string) error
- func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetZoneId(_zoneId string) error
- type MKvstoreAliyuncsComCreateInstance20150301APIResponse
- type MKvstoreAliyuncsComCreateInstance20150301APIResponseModel
- type MKvstoreAliyuncsComDescribeRegions20150301APIRequest
- func (r MKvstoreAliyuncsComDescribeRegions20150301APIRequest) GetApiMethodName() string
- func (r MKvstoreAliyuncsComDescribeRegions20150301APIRequest) GetApiParams(params url.Values)
- func (r MKvstoreAliyuncsComDescribeRegions20150301APIRequest) GetRawParams() model.Params
- func (r *MKvstoreAliyuncsComDescribeRegions20150301APIRequest) Reset()
- type MKvstoreAliyuncsComDescribeRegions20150301APIResponse
- type MKvstoreAliyuncsComDescribeRegions20150301APIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseAliyunOcsRegion ¶ added in v1.3.4
func ReleaseAliyunOcsRegion(v *AliyunOcsRegion)
ReleaseAliyunOcsRegion 释放AliyunOcsRegion
func ReleaseMKvstoreAliyuncsComCreateInstance20150301APIRequest ¶ added in v1.3.4
func ReleaseMKvstoreAliyuncsComCreateInstance20150301APIRequest(v *MKvstoreAliyuncsComCreateInstance20150301APIRequest)
ReleaseMKvstoreAliyuncsComCreateInstance20150301APIRequest 将 MKvstoreAliyuncsComCreateInstance20150301APIRequest 放入 sync.Pool
func ReleaseMKvstoreAliyuncsComCreateInstance20150301APIResponse ¶ added in v1.3.4
func ReleaseMKvstoreAliyuncsComCreateInstance20150301APIResponse(v *MKvstoreAliyuncsComCreateInstance20150301APIResponse)
ReleaseMKvstoreAliyuncsComCreateInstance20150301APIResponse 将 MKvstoreAliyuncsComCreateInstance20150301APIResponse 保存到 sync.Pool
func ReleaseMKvstoreAliyuncsComDescribeRegions20150301APIRequest ¶ added in v1.3.4
func ReleaseMKvstoreAliyuncsComDescribeRegions20150301APIRequest(v *MKvstoreAliyuncsComDescribeRegions20150301APIRequest)
ReleaseMKvstoreAliyuncsComDescribeRegions20150301APIRequest 将 MKvstoreAliyuncsComDescribeRegions20150301APIRequest 放入 sync.Pool
func ReleaseMKvstoreAliyuncsComDescribeRegions20150301APIResponse ¶ added in v1.3.4
func ReleaseMKvstoreAliyuncsComDescribeRegions20150301APIResponse(v *MKvstoreAliyuncsComDescribeRegions20150301APIResponse)
ReleaseMKvstoreAliyuncsComDescribeRegions20150301APIResponse 将 MKvstoreAliyuncsComDescribeRegions20150301APIResponse 保存到 sync.Pool
Types ¶
type AliyunOcsRegion ¶
type AliyunOcsRegion struct { // cn-hangzhou RegionId string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // "B,D" ZoneIds string `json:"ZoneIds,omitempty" xml:"ZoneIds,omitempty"` // 杭州 LocalName string `json:"LocalName,omitempty" xml:"LocalName,omitempty"` }
AliyunOcsRegion 结构体
func GetAliyunOcsRegion ¶ added in v1.3.4
func GetAliyunOcsRegion() *AliyunOcsRegion
GetAliyunOcsRegion() 从对象池中获取AliyunOcsRegion
type MKvstoreAliyuncsComCreateInstance20150301APIRequest ¶ added in v1.3.3
type MKvstoreAliyuncsComCreateInstance20150301APIRequest struct { model.Params // contains filtered or unexported fields }
MKvstoreAliyuncsComCreateInstance20150301APIRequest 创建OCS实例 API请求 m-kvstore.aliyuncs.com.CreateInstance.2015-03-01
创建OCS实例
func GetMKvstoreAliyuncsComCreateInstance20150301APIRequest ¶ added in v1.3.4
func GetMKvstoreAliyuncsComCreateInstance20150301APIRequest() *MKvstoreAliyuncsComCreateInstance20150301APIRequest
GetMKvstoreAliyuncsComCreateInstance20150301Request 从 sync.Pool 获取 MKvstoreAliyuncsComCreateInstance20150301APIRequest
func NewMKvstoreAliyuncsComCreateInstance20150301Request ¶ added in v1.3.3
func NewMKvstoreAliyuncsComCreateInstance20150301Request() *MKvstoreAliyuncsComCreateInstance20150301APIRequest
NewMKvstoreAliyuncsComCreateInstance20150301Request 初始化MKvstoreAliyuncsComCreateInstance20150301APIRequest对象
func (MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetApiMethodName ¶ added in v1.3.3
func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetApiParams ¶ added in v1.3.3
func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetCapacity ¶ added in v1.3.3
func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetCapacity() int64
GetCapacity Capacity Getter
func (MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetInstanceName ¶ added in v1.3.3
func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetInstanceName() string
GetInstanceName InstanceName Getter
func (MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetNetworkType ¶ added in v1.3.3
func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetNetworkType() string
GetNetworkType NetworkType Getter
func (MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetPassword ¶ added in v1.3.3
func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetPassword() string
GetPassword Password Getter
func (MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetPrivateIpAddress ¶ added in v1.3.3
func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetPrivateIpAddress() string
GetPrivateIpAddress PrivateIpAddress Getter
func (MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetRawParams ¶ added in v1.3.3
func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetRegionId ¶ added in v1.3.3
func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetRegionId() string
GetRegionId RegionId Getter
func (MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetToken ¶ added in v1.3.3
func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetToken() string
GetToken Token Getter
func (MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetVSwitchId ¶ added in v1.3.4
func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetVSwitchId() string
GetVSwitchId VSwitchId Getter
func (MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetVpcId ¶ added in v1.3.3
func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetVpcId() string
GetVpcId VpcId Getter
func (MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetZoneId ¶ added in v1.3.3
func (r MKvstoreAliyuncsComCreateInstance20150301APIRequest) GetZoneId() string
GetZoneId ZoneId Getter
func (*MKvstoreAliyuncsComCreateInstance20150301APIRequest) Reset ¶ added in v1.3.4
func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetCapacity ¶ added in v1.3.3
func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetCapacity(_capacity int64) error
SetCapacity is Capacity Setter 说明:实例容量设置单位:MByte输入范围请见OCS规格参数表
func (*MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetInstanceName ¶ added in v1.3.3
func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetInstanceName(_instanceName string) error
SetInstanceName is InstanceName Setter 实例昵称长度为2-128个字符,以大小写英文字母或中文开头,不支持字符@/:="<>{[]}和空格
func (*MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetNetworkType ¶ added in v1.3.3
func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetNetworkType(_networkType string) error
SetNetworkType is NetworkType Setter OCS实例的网络类型:classic或vpc。默认为classic
func (*MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetPassword ¶ added in v1.3.3
func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetPassword(_password string) error
SetPassword is Password Setter 说明:实例密码规则:需同时且只能包含大写字母、小写字母和数字长度8~30个字符
func (*MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetPrivateIpAddress ¶ added in v1.3.3
func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetPrivateIpAddress(_privateIpAddress string) error
SetPrivateIpAddress is PrivateIpAddress Setter OCS实例所属vpc内的私网IP地址。当NetworkType参数为vpc时有效。如果不带本参数,则系统通过VpcId和VSwitchId自动分配。如果此参数对应的私网IP地址不在VSwitchId包含的IP地址段内,则创建失败。
func (*MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetRegionId ¶ added in v1.3.3
func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetRegionId(_regionId string) error
SetRegionId is RegionId Setter 华东杭州:cn-hangzhou 华北青岛:cn-qingdao
func (*MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetToken ¶ added in v1.3.3
func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetToken(_token string) error
SetToken is Token Setter 用于保证幂等性
func (*MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetVSwitchId ¶ added in v1.3.4
func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetVSwitchId(_vSwitchId string) error
SetVSwitchId is VSwitchId Setter OCS实例所属vpc实例的虚拟交换机ID。如果NetworkType参数为vpc,则本参数为必须。
func (*MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetVpcId ¶ added in v1.3.3
func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetVpcId(_vpcId string) error
SetVpcId is VpcId Setter OCS实例所属vpc实例id。如果NetworkType参数为vpc,则本参数为必须。
func (*MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetZoneId ¶ added in v1.3.3
func (r *MKvstoreAliyuncsComCreateInstance20150301APIRequest) SetZoneId(_zoneId string) error
SetZoneId is ZoneId Setter RegionId下级可用区编码
type MKvstoreAliyuncsComCreateInstance20150301APIResponse ¶ added in v1.3.3
type MKvstoreAliyuncsComCreateInstance20150301APIResponse struct { model.CommonResponse MKvstoreAliyuncsComCreateInstance20150301APIResponseModel }
MKvstoreAliyuncsComCreateInstance20150301APIResponse 创建OCS实例 API返回值 m-kvstore.aliyuncs.com.CreateInstance.2015-03-01
创建OCS实例
func GetMKvstoreAliyuncsComCreateInstance20150301APIResponse ¶ added in v1.3.4
func GetMKvstoreAliyuncsComCreateInstance20150301APIResponse() *MKvstoreAliyuncsComCreateInstance20150301APIResponse
GetMKvstoreAliyuncsComCreateInstance20150301APIResponse 从 sync.Pool 获取 MKvstoreAliyuncsComCreateInstance20150301APIResponse
func (*MKvstoreAliyuncsComCreateInstance20150301APIResponse) Reset ¶ added in v1.3.4
func (m *MKvstoreAliyuncsComCreateInstance20150301APIResponse) Reset()
Reset 清空结构体
type MKvstoreAliyuncsComCreateInstance20150301APIResponseModel ¶ added in v1.3.3
type MKvstoreAliyuncsComCreateInstance20150301APIResponseModel struct { XMLName xml.Name `xml:"m-kvstore_aliyuncs_com_CreateInstance_2015-03-01_response"` // OCS例ID;<br/>16位字符串(全局唯一) InstanceId string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // 实例名称 InstanceName string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // Memcached连接域名<br/>注:仅支持内网 ConnectionDomain string `json:"ConnectionDomain,omitempty" xml:"ConnectionDomain,omitempty"` // Memcached连接用户名<br/>注:取InstanceId的值 UserName string `json:"UserName,omitempty" xml:"UserName,omitempty"` // 使用中:Available<br/>已禁用:Unavailable<br/>创建中:Creating<br/>修改中:Changing InstanceStatus string `json:"InstanceStatus,omitempty" xml:"InstanceStatus,omitempty"` // cn-hangzhou<br/>cn-qingdao <br/>地域-城市 RegionId string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // 请求唯一标识 RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // RegionId下级可用区编码 ZoneId string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` // OCS实例的网络类型 NetworkType string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"` // NetworkType为vpc时OCS实例所属vpc内由用户指定或系统分配的私网IP地址。NetworkType为classic时忽略此返回参数。 PrivateIpAddress string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` // Memcached连接端口 Port int64 `json:"Port,omitempty" xml:"Port,omitempty"` // 实例容量上限 单位:MByte Capacity int64 `json:"Capacity,omitempty" xml:"Capacity,omitempty"` // 实例QPS限制<br/>单位:次/秒 QPS int64 `json:"QPS,omitempty" xml:"QPS,omitempty"` // 实例带宽限制<br/>单位:MKbps Bandwidth int64 `json:"Bandwidth,omitempty" xml:"Bandwidth,omitempty"` // 实例连接数限制<br/>单位:个 Connections int64 `json:"Connections,omitempty" xml:"Connections,omitempty"` }
MKvstoreAliyuncsComCreateInstance20150301APIResponseModel is 创建OCS实例 成功返回结果
func (*MKvstoreAliyuncsComCreateInstance20150301APIResponseModel) Reset ¶ added in v1.3.4
func (m *MKvstoreAliyuncsComCreateInstance20150301APIResponseModel) Reset()
Reset 清空结构体
type MKvstoreAliyuncsComDescribeRegions20150301APIRequest ¶ added in v1.3.3
MKvstoreAliyuncsComDescribeRegions20150301APIRequest 查看Region列表 API请求 m-kvstore.aliyuncs.com.DescribeRegions.2015-03-01
查看Region列表
func GetMKvstoreAliyuncsComDescribeRegions20150301APIRequest ¶ added in v1.3.4
func GetMKvstoreAliyuncsComDescribeRegions20150301APIRequest() *MKvstoreAliyuncsComDescribeRegions20150301APIRequest
GetMKvstoreAliyuncsComDescribeRegions20150301Request 从 sync.Pool 获取 MKvstoreAliyuncsComDescribeRegions20150301APIRequest
func NewMKvstoreAliyuncsComDescribeRegions20150301Request ¶ added in v1.3.3
func NewMKvstoreAliyuncsComDescribeRegions20150301Request() *MKvstoreAliyuncsComDescribeRegions20150301APIRequest
NewMKvstoreAliyuncsComDescribeRegions20150301Request 初始化MKvstoreAliyuncsComDescribeRegions20150301APIRequest对象
func (MKvstoreAliyuncsComDescribeRegions20150301APIRequest) GetApiMethodName ¶ added in v1.3.3
func (r MKvstoreAliyuncsComDescribeRegions20150301APIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (MKvstoreAliyuncsComDescribeRegions20150301APIRequest) GetApiParams ¶ added in v1.3.3
func (r MKvstoreAliyuncsComDescribeRegions20150301APIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (MKvstoreAliyuncsComDescribeRegions20150301APIRequest) GetRawParams ¶ added in v1.3.3
func (r MKvstoreAliyuncsComDescribeRegions20150301APIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*MKvstoreAliyuncsComDescribeRegions20150301APIRequest) Reset ¶ added in v1.3.4
func (r *MKvstoreAliyuncsComDescribeRegions20150301APIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
type MKvstoreAliyuncsComDescribeRegions20150301APIResponse ¶ added in v1.3.3
type MKvstoreAliyuncsComDescribeRegions20150301APIResponse struct { model.CommonResponse MKvstoreAliyuncsComDescribeRegions20150301APIResponseModel }
MKvstoreAliyuncsComDescribeRegions20150301APIResponse 查看Region列表 API返回值 m-kvstore.aliyuncs.com.DescribeRegions.2015-03-01
查看Region列表
func GetMKvstoreAliyuncsComDescribeRegions20150301APIResponse ¶ added in v1.3.4
func GetMKvstoreAliyuncsComDescribeRegions20150301APIResponse() *MKvstoreAliyuncsComDescribeRegions20150301APIResponse
GetMKvstoreAliyuncsComDescribeRegions20150301APIResponse 从 sync.Pool 获取 MKvstoreAliyuncsComDescribeRegions20150301APIResponse
func (*MKvstoreAliyuncsComDescribeRegions20150301APIResponse) Reset ¶ added in v1.3.4
func (m *MKvstoreAliyuncsComDescribeRegions20150301APIResponse) Reset()
Reset 清空结构体
type MKvstoreAliyuncsComDescribeRegions20150301APIResponseModel ¶ added in v1.3.3
type MKvstoreAliyuncsComDescribeRegions20150301APIResponseModel struct { XMLName xml.Name `xml:"m-kvstore_aliyuncs_com_DescribeRegions_2015-03-01_response"` // RegionIds 为一个 List,里面每个元素由三部分组成【RegionId,LocalName,ZoneIds】,其中ZoneIds是多个值组成的String,多个值间用英文半角“,”分隔。 RegionIds []AliyunOcsRegion `json:"RegionIds,omitempty" xml:"RegionIds>aliyun_ocs_region,omitempty"` // 请求的唯一ID RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` }
MKvstoreAliyuncsComDescribeRegions20150301APIResponseModel is 查看Region列表 成功返回结果
func (*MKvstoreAliyuncsComDescribeRegions20150301APIResponseModel) Reset ¶ added in v1.3.4
func (m *MKvstoreAliyuncsComDescribeRegions20150301APIResponseModel) Reset()
Reset 清空结构体