Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) DescribeSREInstanceAccessAddress(request *DescribeSREInstanceAccessAddressRequest) (response *DescribeSREInstanceAccessAddressResponse, err error)
- func (c *Client) DescribeSREInstances(request *DescribeSREInstancesRequest) (response *DescribeSREInstancesResponse, err error)
- func (c *Client) ManageConfig(request *ManageConfigRequest) (response *ManageConfigResponse, err error)
- type DescribeSREInstanceAccessAddressRequest
- type DescribeSREInstanceAccessAddressResponse
- type DescribeSREInstancesRequest
- type DescribeSREInstancesResponse
- type Filter
- type ManageConfigRequest
- type ManageConfigResponse
- type SREInstance
Constants ¶
const APIVersion = "2020-12-07"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) DescribeSREInstanceAccessAddress ¶
func (c *Client) DescribeSREInstanceAccessAddress(request *DescribeSREInstanceAccessAddressRequest) (response *DescribeSREInstanceAccessAddressResponse, err error)
查询微服务注册引擎实例访问地址
func (*Client) DescribeSREInstances ¶
func (c *Client) DescribeSREInstances(request *DescribeSREInstancesRequest) (response *DescribeSREInstancesResponse, err error)
用于查询微服务注册中心实例列表
func (*Client) ManageConfig ¶
func (c *Client) ManageConfig(request *ManageConfigRequest) (response *ManageConfigResponse, err error)
管理配置
type DescribeSREInstanceAccessAddressRequest ¶
type DescribeSREInstanceAccessAddressRequest struct { *tchttp.BaseRequest // 注册引擎实例Id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeSREInstanceAccessAddressRequest ¶
func NewDescribeSREInstanceAccessAddressRequest() (request *DescribeSREInstanceAccessAddressRequest)
func (*DescribeSREInstanceAccessAddressRequest) FromJsonString ¶
func (r *DescribeSREInstanceAccessAddressRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSREInstanceAccessAddressRequest) ToJsonString ¶
func (r *DescribeSREInstanceAccessAddressRequest) ToJsonString() string
type DescribeSREInstanceAccessAddressResponse ¶
type DescribeSREInstanceAccessAddressResponse struct { *tchttp.BaseResponse Response *struct { // 内网访问地址 IntranetAddress *string `json:"IntranetAddress,omitempty" name:"IntranetAddress"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeSREInstanceAccessAddressResponse ¶
func NewDescribeSREInstanceAccessAddressResponse() (response *DescribeSREInstanceAccessAddressResponse)
func (*DescribeSREInstanceAccessAddressResponse) FromJsonString ¶
func (r *DescribeSREInstanceAccessAddressResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSREInstanceAccessAddressResponse) ToJsonString ¶
func (r *DescribeSREInstanceAccessAddressResponse) ToJsonString() string
type DescribeSREInstancesRequest ¶
type DescribeSREInstancesRequest struct { *tchttp.BaseRequest // 请求过滤参数 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` // 翻页单页查询限制数量[0,1000], 默认值0 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 翻页单页偏移量,默认值0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeSREInstancesRequest ¶
func NewDescribeSREInstancesRequest() (request *DescribeSREInstancesRequest)
func (*DescribeSREInstancesRequest) FromJsonString ¶
func (r *DescribeSREInstancesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSREInstancesRequest) ToJsonString ¶
func (r *DescribeSREInstancesRequest) ToJsonString() string
type DescribeSREInstancesResponse ¶
type DescribeSREInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 总数量 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 实例记录 Content []*SREInstance `json:"Content,omitempty" name:"Content" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeSREInstancesResponse ¶
func NewDescribeSREInstancesResponse() (response *DescribeSREInstancesResponse)
func (*DescribeSREInstancesResponse) FromJsonString ¶
func (r *DescribeSREInstancesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSREInstancesResponse) ToJsonString ¶
func (r *DescribeSREInstancesResponse) ToJsonString() string
type ManageConfigRequest ¶
type ManageConfigRequest struct { *tchttp.BaseRequest // 实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 配置中心类型(consul、zookeeper、apollo等) Type *string `json:"Type,omitempty" name:"Type"` // 请求命名 PUT GET DELETE Command *string `json:"Command,omitempty" name:"Command"` // 配置的Key Key *string `json:"Key,omitempty" name:"Key"` // 配置的Value Value *string `json:"Value,omitempty" name:"Value"` }
func NewManageConfigRequest ¶
func NewManageConfigRequest() (request *ManageConfigRequest)
func (*ManageConfigRequest) FromJsonString ¶
func (r *ManageConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ManageConfigRequest) ToJsonString ¶
func (r *ManageConfigRequest) ToJsonString() string
type ManageConfigResponse ¶
type ManageConfigResponse struct { *tchttp.BaseResponse Response *struct { // 对配置中心操作配置之后的返回值 // 注意:此字段可能返回 null,表示取不到有效值。 Result *string `json:"Result,omitempty" name:"Result"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewManageConfigResponse ¶
func NewManageConfigResponse() (response *ManageConfigResponse)
func (*ManageConfigResponse) FromJsonString ¶
func (r *ManageConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ManageConfigResponse) ToJsonString ¶
func (r *ManageConfigResponse) ToJsonString() string
type SREInstance ¶
type SREInstance struct { // 实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 名称 Name *string `json:"Name,omitempty" name:"Name"` // 版本号 Edition *string `json:"Edition,omitempty" name:"Edition"` // 状态, 枚举值:creating/create_fail/running/updating/update_fail/restarting/restart_fail/destroying/destroy_fail Status *string `json:"Status,omitempty" name:"Status"` // 规格ID SpecId *string `json:"SpecId,omitempty" name:"SpecId"` // 副本数 Replica *int64 `json:"Replica,omitempty" name:"Replica"` // 类型 Type *string `json:"Type,omitempty" name:"Type"` // Vpc iD VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 子网ID // 注意:此字段可能返回 null,表示取不到有效值。 SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds" list` // 是否开启持久化存储 // 注意:此字段可能返回 null,表示取不到有效值。 EnableStorage *bool `json:"EnableStorage,omitempty" name:"EnableStorage"` // 数据存储方式 // 注意:此字段可能返回 null,表示取不到有效值。 StorageType *string `json:"StorageType,omitempty" name:"StorageType"` // 云硬盘容量 // 注意:此字段可能返回 null,表示取不到有效值。 StorageCapacity *int64 `json:"StorageCapacity,omitempty" name:"StorageCapacity"` // 计费方式 // 注意:此字段可能返回 null,表示取不到有效值。 Paymode *string `json:"Paymode,omitempty" name:"Paymode"` }