Documentation ¶
Index ¶
- func GenReqDefForAssociateKeypair() *def.HttpRequestDef
- func GenReqDefForCreateKeypair() *def.HttpRequestDef
- func GenReqDefForDeleteAllFailedTask() *def.HttpRequestDef
- func GenReqDefForDeleteFailedTask() *def.HttpRequestDef
- func GenReqDefForDeleteKeypair() *def.HttpRequestDef
- func GenReqDefForDisassociateKeypair() *def.HttpRequestDef
- func GenReqDefForListFailedTask() *def.HttpRequestDef
- func GenReqDefForListKeypairDetail() *def.HttpRequestDef
- func GenReqDefForListKeypairTask() *def.HttpRequestDef
- func GenReqDefForListKeypairs() *def.HttpRequestDef
- func GenReqDefForListRunningTask() *def.HttpRequestDef
- func GenReqDefForUpdateKeypairDescription() *def.HttpRequestDef
- func KpsClientBuilder() *http_client.HcHttpClientBuilder
- type AssociateKeypairInvoker
- type CreateKeypairInvoker
- type DeleteAllFailedTaskInvoker
- type DeleteFailedTaskInvoker
- type DeleteKeypairInvoker
- type DisassociateKeypairInvoker
- type KpsClient
- func (c *KpsClient) AssociateKeypair(request *model.AssociateKeypairRequest) (*model.AssociateKeypairResponse, error)
- func (c *KpsClient) AssociateKeypairInvoker(request *model.AssociateKeypairRequest) *AssociateKeypairInvoker
- func (c *KpsClient) CreateKeypair(request *model.CreateKeypairRequest) (*model.CreateKeypairResponse, error)
- func (c *KpsClient) CreateKeypairInvoker(request *model.CreateKeypairRequest) *CreateKeypairInvoker
- func (c *KpsClient) DeleteAllFailedTask(request *model.DeleteAllFailedTaskRequest) (*model.DeleteAllFailedTaskResponse, error)
- func (c *KpsClient) DeleteAllFailedTaskInvoker(request *model.DeleteAllFailedTaskRequest) *DeleteAllFailedTaskInvoker
- func (c *KpsClient) DeleteFailedTask(request *model.DeleteFailedTaskRequest) (*model.DeleteFailedTaskResponse, error)
- func (c *KpsClient) DeleteFailedTaskInvoker(request *model.DeleteFailedTaskRequest) *DeleteFailedTaskInvoker
- func (c *KpsClient) DeleteKeypair(request *model.DeleteKeypairRequest) (*model.DeleteKeypairResponse, error)
- func (c *KpsClient) DeleteKeypairInvoker(request *model.DeleteKeypairRequest) *DeleteKeypairInvoker
- func (c *KpsClient) DisassociateKeypair(request *model.DisassociateKeypairRequest) (*model.DisassociateKeypairResponse, error)
- func (c *KpsClient) DisassociateKeypairInvoker(request *model.DisassociateKeypairRequest) *DisassociateKeypairInvoker
- func (c *KpsClient) ListFailedTask(request *model.ListFailedTaskRequest) (*model.ListFailedTaskResponse, error)
- func (c *KpsClient) ListFailedTaskInvoker(request *model.ListFailedTaskRequest) *ListFailedTaskInvoker
- func (c *KpsClient) ListKeypairDetail(request *model.ListKeypairDetailRequest) (*model.ListKeypairDetailResponse, error)
- func (c *KpsClient) ListKeypairDetailInvoker(request *model.ListKeypairDetailRequest) *ListKeypairDetailInvoker
- func (c *KpsClient) ListKeypairTask(request *model.ListKeypairTaskRequest) (*model.ListKeypairTaskResponse, error)
- func (c *KpsClient) ListKeypairTaskInvoker(request *model.ListKeypairTaskRequest) *ListKeypairTaskInvoker
- func (c *KpsClient) ListKeypairs(request *model.ListKeypairsRequest) (*model.ListKeypairsResponse, error)
- func (c *KpsClient) ListKeypairsInvoker(request *model.ListKeypairsRequest) *ListKeypairsInvoker
- func (c *KpsClient) ListRunningTask(request *model.ListRunningTaskRequest) (*model.ListRunningTaskResponse, error)
- func (c *KpsClient) ListRunningTaskInvoker(request *model.ListRunningTaskRequest) *ListRunningTaskInvoker
- func (c *KpsClient) UpdateKeypairDescription(request *model.UpdateKeypairDescriptionRequest) (*model.UpdateKeypairDescriptionResponse, error)
- func (c *KpsClient) UpdateKeypairDescriptionInvoker(request *model.UpdateKeypairDescriptionRequest) *UpdateKeypairDescriptionInvoker
- type ListFailedTaskInvoker
- type ListKeypairDetailInvoker
- type ListKeypairTaskInvoker
- type ListKeypairsInvoker
- type ListRunningTaskInvoker
- type UpdateKeypairDescriptionInvoker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForAssociateKeypair ¶
func GenReqDefForAssociateKeypair() *def.HttpRequestDef
func GenReqDefForCreateKeypair ¶
func GenReqDefForCreateKeypair() *def.HttpRequestDef
func GenReqDefForDeleteAllFailedTask ¶
func GenReqDefForDeleteAllFailedTask() *def.HttpRequestDef
func GenReqDefForDeleteFailedTask ¶
func GenReqDefForDeleteFailedTask() *def.HttpRequestDef
func GenReqDefForDeleteKeypair ¶
func GenReqDefForDeleteKeypair() *def.HttpRequestDef
func GenReqDefForDisassociateKeypair ¶
func GenReqDefForDisassociateKeypair() *def.HttpRequestDef
func GenReqDefForListFailedTask ¶
func GenReqDefForListFailedTask() *def.HttpRequestDef
func GenReqDefForListKeypairDetail ¶
func GenReqDefForListKeypairDetail() *def.HttpRequestDef
func GenReqDefForListKeypairTask ¶
func GenReqDefForListKeypairTask() *def.HttpRequestDef
func GenReqDefForListKeypairs ¶
func GenReqDefForListKeypairs() *def.HttpRequestDef
func GenReqDefForListRunningTask ¶
func GenReqDefForListRunningTask() *def.HttpRequestDef
func GenReqDefForUpdateKeypairDescription ¶
func GenReqDefForUpdateKeypairDescription() *def.HttpRequestDef
func KpsClientBuilder ¶
func KpsClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type AssociateKeypairInvoker ¶ added in v0.0.90
type AssociateKeypairInvoker struct {
*invoker.BaseInvoker
}
func (*AssociateKeypairInvoker) Invoke ¶ added in v0.0.90
func (i *AssociateKeypairInvoker) Invoke() (*model.AssociateKeypairResponse, error)
type CreateKeypairInvoker ¶ added in v0.0.90
type CreateKeypairInvoker struct {
*invoker.BaseInvoker
}
func (*CreateKeypairInvoker) Invoke ¶ added in v0.0.90
func (i *CreateKeypairInvoker) Invoke() (*model.CreateKeypairResponse, error)
type DeleteAllFailedTaskInvoker ¶ added in v0.0.90
type DeleteAllFailedTaskInvoker struct {
*invoker.BaseInvoker
}
func (*DeleteAllFailedTaskInvoker) Invoke ¶ added in v0.0.90
func (i *DeleteAllFailedTaskInvoker) Invoke() (*model.DeleteAllFailedTaskResponse, error)
type DeleteFailedTaskInvoker ¶ added in v0.0.90
type DeleteFailedTaskInvoker struct {
*invoker.BaseInvoker
}
func (*DeleteFailedTaskInvoker) Invoke ¶ added in v0.0.90
func (i *DeleteFailedTaskInvoker) Invoke() (*model.DeleteFailedTaskResponse, error)
type DeleteKeypairInvoker ¶ added in v0.0.90
type DeleteKeypairInvoker struct {
*invoker.BaseInvoker
}
func (*DeleteKeypairInvoker) Invoke ¶ added in v0.0.90
func (i *DeleteKeypairInvoker) Invoke() (*model.DeleteKeypairResponse, error)
type DisassociateKeypairInvoker ¶ added in v0.0.90
type DisassociateKeypairInvoker struct {
*invoker.BaseInvoker
}
func (*DisassociateKeypairInvoker) Invoke ¶ added in v0.0.90
func (i *DisassociateKeypairInvoker) Invoke() (*model.DisassociateKeypairResponse, error)
type KpsClient ¶
type KpsClient struct {
HcClient *http_client.HcHttpClient
}
func NewKpsClient ¶
func NewKpsClient(hcClient *http_client.HcHttpClient) *KpsClient
func (*KpsClient) AssociateKeypair ¶
func (c *KpsClient) AssociateKeypair(request *model.AssociateKeypairRequest) (*model.AssociateKeypairResponse, error)
AssociateKeypair 绑定SSH密钥对
给指定的虚拟机绑定(替换或重置,替换需提供虚拟机已配置的SSH密钥对私钥;重置不需要提供虚拟机的SSH密钥对私钥)新的SSH密钥对。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*KpsClient) AssociateKeypairInvoker ¶ added in v0.0.90
func (c *KpsClient) AssociateKeypairInvoker(request *model.AssociateKeypairRequest) *AssociateKeypairInvoker
AssociateKeypairInvoker 绑定SSH密钥对
func (*KpsClient) CreateKeypair ¶
func (c *KpsClient) CreateKeypair(request *model.CreateKeypairRequest) (*model.CreateKeypairResponse, error)
CreateKeypair 创建和导入SSH密钥对
创建和导入SSH密钥对
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*KpsClient) CreateKeypairInvoker ¶ added in v0.0.90
func (c *KpsClient) CreateKeypairInvoker(request *model.CreateKeypairRequest) *CreateKeypairInvoker
CreateKeypairInvoker 创建和导入SSH密钥对
func (*KpsClient) DeleteAllFailedTask ¶
func (c *KpsClient) DeleteAllFailedTask(request *model.DeleteAllFailedTaskRequest) (*model.DeleteAllFailedTaskResponse, error)
DeleteAllFailedTask 删除所有失败的任务
删除操作失败的任务信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*KpsClient) DeleteAllFailedTaskInvoker ¶ added in v0.0.90
func (c *KpsClient) DeleteAllFailedTaskInvoker(request *model.DeleteAllFailedTaskRequest) *DeleteAllFailedTaskInvoker
DeleteAllFailedTaskInvoker 删除所有失败的任务
func (*KpsClient) DeleteFailedTask ¶
func (c *KpsClient) DeleteFailedTask(request *model.DeleteFailedTaskRequest) (*model.DeleteFailedTaskResponse, error)
DeleteFailedTask 删除失败的任务
删除失败的任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*KpsClient) DeleteFailedTaskInvoker ¶ added in v0.0.90
func (c *KpsClient) DeleteFailedTaskInvoker(request *model.DeleteFailedTaskRequest) *DeleteFailedTaskInvoker
DeleteFailedTaskInvoker 删除失败的任务
func (*KpsClient) DeleteKeypair ¶
func (c *KpsClient) DeleteKeypair(request *model.DeleteKeypairRequest) (*model.DeleteKeypairResponse, error)
DeleteKeypair 删除SSH密钥对
删除SSH密钥对。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*KpsClient) DeleteKeypairInvoker ¶ added in v0.0.90
func (c *KpsClient) DeleteKeypairInvoker(request *model.DeleteKeypairRequest) *DeleteKeypairInvoker
DeleteKeypairInvoker 删除SSH密钥对
func (*KpsClient) DisassociateKeypair ¶
func (c *KpsClient) DisassociateKeypair(request *model.DisassociateKeypairRequest) (*model.DisassociateKeypairResponse, error)
DisassociateKeypair 解绑SSH密钥对
给指定的虚拟机解除绑定SSH密钥对并恢复SSH密码登录。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*KpsClient) DisassociateKeypairInvoker ¶ added in v0.0.90
func (c *KpsClient) DisassociateKeypairInvoker(request *model.DisassociateKeypairRequest) *DisassociateKeypairInvoker
DisassociateKeypairInvoker 解绑SSH密钥对
func (*KpsClient) ListFailedTask ¶
func (c *KpsClient) ListFailedTask(request *model.ListFailedTaskRequest) (*model.ListFailedTaskResponse, error)
ListFailedTask 查询失败的任务信息
查询绑定、解绑等操作失败的任务信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*KpsClient) ListFailedTaskInvoker ¶ added in v0.0.90
func (c *KpsClient) ListFailedTaskInvoker(request *model.ListFailedTaskRequest) *ListFailedTaskInvoker
ListFailedTaskInvoker 查询失败的任务信息
func (*KpsClient) ListKeypairDetail ¶
func (c *KpsClient) ListKeypairDetail(request *model.ListKeypairDetailRequest) (*model.ListKeypairDetailResponse, error)
ListKeypairDetail 查询SSH密钥对详细信息
查询SSH密钥对详细信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*KpsClient) ListKeypairDetailInvoker ¶ added in v0.0.90
func (c *KpsClient) ListKeypairDetailInvoker(request *model.ListKeypairDetailRequest) *ListKeypairDetailInvoker
ListKeypairDetailInvoker 查询SSH密钥对详细信息
func (*KpsClient) ListKeypairTask ¶
func (c *KpsClient) ListKeypairTask(request *model.ListKeypairTaskRequest) (*model.ListKeypairTaskResponse, error)
ListKeypairTask 查询任务信息
根据SSH密钥对接口返回的task_id,查询SSH密钥对当前任务的执行状态。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*KpsClient) ListKeypairTaskInvoker ¶ added in v0.0.90
func (c *KpsClient) ListKeypairTaskInvoker(request *model.ListKeypairTaskRequest) *ListKeypairTaskInvoker
ListKeypairTaskInvoker 查询任务信息
func (*KpsClient) ListKeypairs ¶
func (c *KpsClient) ListKeypairs(request *model.ListKeypairsRequest) (*model.ListKeypairsResponse, error)
ListKeypairs 查询SSH密钥对列表
查询SSH密钥对列表
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*KpsClient) ListKeypairsInvoker ¶ added in v0.0.90
func (c *KpsClient) ListKeypairsInvoker(request *model.ListKeypairsRequest) *ListKeypairsInvoker
ListKeypairsInvoker 查询SSH密钥对列表
func (*KpsClient) ListRunningTask ¶
func (c *KpsClient) ListRunningTask(request *model.ListRunningTaskRequest) (*model.ListRunningTaskResponse, error)
ListRunningTask 查询正在处理的任务信息
查询正在处理的任务信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*KpsClient) ListRunningTaskInvoker ¶ added in v0.0.90
func (c *KpsClient) ListRunningTaskInvoker(request *model.ListRunningTaskRequest) *ListRunningTaskInvoker
ListRunningTaskInvoker 查询正在处理的任务信息
func (*KpsClient) UpdateKeypairDescription ¶
func (c *KpsClient) UpdateKeypairDescription(request *model.UpdateKeypairDescriptionRequest) (*model.UpdateKeypairDescriptionResponse, error)
UpdateKeypairDescription 更新SSH密钥对描述
更新SSH密钥对描述。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*KpsClient) UpdateKeypairDescriptionInvoker ¶ added in v0.0.90
func (c *KpsClient) UpdateKeypairDescriptionInvoker(request *model.UpdateKeypairDescriptionRequest) *UpdateKeypairDescriptionInvoker
UpdateKeypairDescriptionInvoker 更新SSH密钥对描述
type ListFailedTaskInvoker ¶ added in v0.0.90
type ListFailedTaskInvoker struct {
*invoker.BaseInvoker
}
func (*ListFailedTaskInvoker) Invoke ¶ added in v0.0.90
func (i *ListFailedTaskInvoker) Invoke() (*model.ListFailedTaskResponse, error)
type ListKeypairDetailInvoker ¶ added in v0.0.90
type ListKeypairDetailInvoker struct {
*invoker.BaseInvoker
}
func (*ListKeypairDetailInvoker) Invoke ¶ added in v0.0.90
func (i *ListKeypairDetailInvoker) Invoke() (*model.ListKeypairDetailResponse, error)
type ListKeypairTaskInvoker ¶ added in v0.0.90
type ListKeypairTaskInvoker struct {
*invoker.BaseInvoker
}
func (*ListKeypairTaskInvoker) Invoke ¶ added in v0.0.90
func (i *ListKeypairTaskInvoker) Invoke() (*model.ListKeypairTaskResponse, error)
type ListKeypairsInvoker ¶ added in v0.0.90
type ListKeypairsInvoker struct {
*invoker.BaseInvoker
}
func (*ListKeypairsInvoker) Invoke ¶ added in v0.0.90
func (i *ListKeypairsInvoker) Invoke() (*model.ListKeypairsResponse, error)
type ListRunningTaskInvoker ¶ added in v0.0.90
type ListRunningTaskInvoker struct {
*invoker.BaseInvoker
}
func (*ListRunningTaskInvoker) Invoke ¶ added in v0.0.90
func (i *ListRunningTaskInvoker) Invoke() (*model.ListRunningTaskResponse, error)
type UpdateKeypairDescriptionInvoker ¶ added in v0.0.90
type UpdateKeypairDescriptionInvoker struct {
*invoker.BaseInvoker
}
func (*UpdateKeypairDescriptionInvoker) Invoke ¶ added in v0.0.90
func (i *UpdateKeypairDescriptionInvoker) Invoke() (*model.UpdateKeypairDescriptionResponse, error)