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 KpsClient
- func (c *KpsClient) AssociateKeypair(request *model.AssociateKeypairRequest) (*model.AssociateKeypairResponse, error)
- func (c *KpsClient) CreateKeypair(request *model.CreateKeypairRequest) (*model.CreateKeypairResponse, error)
- func (c *KpsClient) DeleteAllFailedTask(request *model.DeleteAllFailedTaskRequest) (*model.DeleteAllFailedTaskResponse, error)
- func (c *KpsClient) DeleteFailedTask(request *model.DeleteFailedTaskRequest) (*model.DeleteFailedTaskResponse, error)
- func (c *KpsClient) DeleteKeypair(request *model.DeleteKeypairRequest) (*model.DeleteKeypairResponse, error)
- func (c *KpsClient) DisassociateKeypair(request *model.DisassociateKeypairRequest) (*model.DisassociateKeypairResponse, error)
- func (c *KpsClient) ListFailedTask(request *model.ListFailedTaskRequest) (*model.ListFailedTaskResponse, error)
- func (c *KpsClient) ListKeypairDetail(request *model.ListKeypairDetailRequest) (*model.ListKeypairDetailResponse, error)
- func (c *KpsClient) ListKeypairTask(request *model.ListKeypairTaskRequest) (*model.ListKeypairTaskResponse, error)
- func (c *KpsClient) ListKeypairs(request *model.ListKeypairsRequest) (*model.ListKeypairsResponse, error)
- func (c *KpsClient) ListRunningTask(request *model.ListRunningTaskRequest) (*model.ListRunningTaskResponse, error)
- func (c *KpsClient) UpdateKeypairDescription(request *model.UpdateKeypairDescriptionRequest) (*model.UpdateKeypairDescriptionResponse, error)
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 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)
给指定的虚拟机绑定(替换或重置,替换需提供虚拟机已配置的SSH密钥对私钥;重置不需要提供虚拟机的SSH密钥对私钥)新的SSH密钥对。
func (*KpsClient) CreateKeypair ¶
func (c *KpsClient) CreateKeypair(request *model.CreateKeypairRequest) (*model.CreateKeypairResponse, error)
创建和导入SSH密钥对
func (*KpsClient) DeleteAllFailedTask ¶
func (c *KpsClient) DeleteAllFailedTask(request *model.DeleteAllFailedTaskRequest) (*model.DeleteAllFailedTaskResponse, error)
删除操作失败的任务信息。
func (*KpsClient) DeleteFailedTask ¶
func (c *KpsClient) DeleteFailedTask(request *model.DeleteFailedTaskRequest) (*model.DeleteFailedTaskResponse, error)
删除失败的任务。
func (*KpsClient) DeleteKeypair ¶
func (c *KpsClient) DeleteKeypair(request *model.DeleteKeypairRequest) (*model.DeleteKeypairResponse, error)
删除SSH密钥对。
func (*KpsClient) DisassociateKeypair ¶
func (c *KpsClient) DisassociateKeypair(request *model.DisassociateKeypairRequest) (*model.DisassociateKeypairResponse, error)
给指定的虚拟机解除绑定SSH密钥对并恢复SSH密码登录。
func (*KpsClient) ListFailedTask ¶
func (c *KpsClient) ListFailedTask(request *model.ListFailedTaskRequest) (*model.ListFailedTaskResponse, error)
查询绑定、解绑等操作失败的任务信息。
func (*KpsClient) ListKeypairDetail ¶
func (c *KpsClient) ListKeypairDetail(request *model.ListKeypairDetailRequest) (*model.ListKeypairDetailResponse, error)
查询SSH密钥对详细信息
func (*KpsClient) ListKeypairTask ¶
func (c *KpsClient) ListKeypairTask(request *model.ListKeypairTaskRequest) (*model.ListKeypairTaskResponse, error)
根据SSH密钥对接口返回的task_id,查询SSH密钥对当前任务的执行状态。
func (*KpsClient) ListKeypairs ¶
func (c *KpsClient) ListKeypairs(request *model.ListKeypairsRequest) (*model.ListKeypairsResponse, error)
查询SSH密钥对列表
func (*KpsClient) ListRunningTask ¶
func (c *KpsClient) ListRunningTask(request *model.ListRunningTaskRequest) (*model.ListRunningTaskResponse, error)
查询正在处理的任务信息。
func (*KpsClient) UpdateKeypairDescription ¶
func (c *KpsClient) UpdateKeypairDescription(request *model.UpdateKeypairDescriptionRequest) (*model.UpdateKeypairDescriptionResponse, error)
更新SSH密钥对描述。
Click to show internal directories.
Click to hide internal directories.