Documentation ¶
Index ¶
- func GenReqDefForAssociateKeypair() *def.HttpRequestDef
- func GenReqDefForBatchAssociateKeypair() *def.HttpRequestDef
- func GenReqDefForClearPrivateKey() *def.HttpRequestDef
- func GenReqDefForCreateKeypair() *def.HttpRequestDef
- func GenReqDefForDeleteAllFailedTask() *def.HttpRequestDef
- func GenReqDefForDeleteFailedTask() *def.HttpRequestDef
- func GenReqDefForDeleteKeypair() *def.HttpRequestDef
- func GenReqDefForDisassociateKeypair() *def.HttpRequestDef
- func GenReqDefForExportPrivateKey() *def.HttpRequestDef
- func GenReqDefForImportPrivateKey() *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() *httpclient.HcHttpClientBuilder
- type AssociateKeypairInvoker
- type BatchAssociateKeypairInvoker
- type ClearPrivateKeyInvoker
- type CreateKeypairInvoker
- type DeleteAllFailedTaskInvoker
- type DeleteFailedTaskInvoker
- type DeleteKeypairInvoker
- type DisassociateKeypairInvoker
- type ExportPrivateKeyInvoker
- type ImportPrivateKeyInvoker
- type KpsClient
- func (c *KpsClient) AssociateKeypair(request *model.AssociateKeypairRequest) (*model.AssociateKeypairResponse, error)
- func (c *KpsClient) AssociateKeypairInvoker(request *model.AssociateKeypairRequest) *AssociateKeypairInvoker
- func (c *KpsClient) BatchAssociateKeypair(request *model.BatchAssociateKeypairRequest) (*model.BatchAssociateKeypairResponse, error)
- func (c *KpsClient) BatchAssociateKeypairInvoker(request *model.BatchAssociateKeypairRequest) *BatchAssociateKeypairInvoker
- func (c *KpsClient) ClearPrivateKey(request *model.ClearPrivateKeyRequest) (*model.ClearPrivateKeyResponse, error)
- func (c *KpsClient) ClearPrivateKeyInvoker(request *model.ClearPrivateKeyRequest) *ClearPrivateKeyInvoker
- 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) ExportPrivateKey(request *model.ExportPrivateKeyRequest) (*model.ExportPrivateKeyResponse, error)
- func (c *KpsClient) ExportPrivateKeyInvoker(request *model.ExportPrivateKeyRequest) *ExportPrivateKeyInvoker
- func (c *KpsClient) ImportPrivateKey(request *model.ImportPrivateKeyRequest) (*model.ImportPrivateKeyResponse, error)
- func (c *KpsClient) ImportPrivateKeyInvoker(request *model.ImportPrivateKeyRequest) *ImportPrivateKeyInvoker
- 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 GenReqDefForBatchAssociateKeypair ¶ added in v0.1.59
func GenReqDefForBatchAssociateKeypair() *def.HttpRequestDef
func GenReqDefForClearPrivateKey ¶ added in v0.1.59
func GenReqDefForClearPrivateKey() *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 GenReqDefForExportPrivateKey ¶ added in v0.1.59
func GenReqDefForExportPrivateKey() *def.HttpRequestDef
func GenReqDefForImportPrivateKey ¶ added in v0.1.59
func GenReqDefForImportPrivateKey() *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() *httpclient.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 BatchAssociateKeypairInvoker ¶ added in v0.1.59
type BatchAssociateKeypairInvoker struct {
*invoker.BaseInvoker
}
func (*BatchAssociateKeypairInvoker) Invoke ¶ added in v0.1.59
func (i *BatchAssociateKeypairInvoker) Invoke() (*model.BatchAssociateKeypairResponse, error)
type ClearPrivateKeyInvoker ¶ added in v0.1.59
type ClearPrivateKeyInvoker struct {
*invoker.BaseInvoker
}
func (*ClearPrivateKeyInvoker) Invoke ¶ added in v0.1.59
func (i *ClearPrivateKeyInvoker) Invoke() (*model.ClearPrivateKeyResponse, 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 ExportPrivateKeyInvoker ¶ added in v0.1.59
type ExportPrivateKeyInvoker struct {
*invoker.BaseInvoker
}
func (*ExportPrivateKeyInvoker) Invoke ¶ added in v0.1.59
func (i *ExportPrivateKeyInvoker) Invoke() (*model.ExportPrivateKeyResponse, error)
type ImportPrivateKeyInvoker ¶ added in v0.1.59
type ImportPrivateKeyInvoker struct {
*invoker.BaseInvoker
}
func (*ImportPrivateKeyInvoker) Invoke ¶ added in v0.1.59
func (i *ImportPrivateKeyInvoker) Invoke() (*model.ImportPrivateKeyResponse, error)
type KpsClient ¶
type KpsClient struct {
HcClient *httpclient.HcHttpClient
}
func NewKpsClient ¶
func NewKpsClient(hcClient *httpclient.HcHttpClient) *KpsClient
func (*KpsClient) AssociateKeypair ¶
func (c *KpsClient) AssociateKeypair(request *model.AssociateKeypairRequest) (*model.AssociateKeypairResponse, error)
AssociateKeypair 绑定SSH密钥对
给指定的虚拟机绑定(替换或重置,替换需提供虚拟机已配置的SSH密钥对私钥;重置不需要提供虚拟机的SSH密钥对私钥)新的SSH密钥对。
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) BatchAssociateKeypair ¶ added in v0.1.59
func (c *KpsClient) BatchAssociateKeypair(request *model.BatchAssociateKeypairRequest) (*model.BatchAssociateKeypairResponse, error)
BatchAssociateKeypair 批量绑定SSH密钥对
给指定的虚拟机批量绑定新的SSH密钥对。
Please refer to HUAWEI cloud API Explorer for details.
func (*KpsClient) BatchAssociateKeypairInvoker ¶ added in v0.1.59
func (c *KpsClient) BatchAssociateKeypairInvoker(request *model.BatchAssociateKeypairRequest) *BatchAssociateKeypairInvoker
BatchAssociateKeypairInvoker 批量绑定SSH密钥对
func (*KpsClient) ClearPrivateKey ¶ added in v0.1.59
func (c *KpsClient) ClearPrivateKey(request *model.ClearPrivateKeyRequest) (*model.ClearPrivateKeyResponse, error)
ClearPrivateKey 清除私钥
清除SSH密钥对私钥。
Please refer to HUAWEI cloud API Explorer for details.
func (*KpsClient) ClearPrivateKeyInvoker ¶ added in v0.1.59
func (c *KpsClient) ClearPrivateKeyInvoker(request *model.ClearPrivateKeyRequest) *ClearPrivateKeyInvoker
ClearPrivateKeyInvoker 清除私钥
func (*KpsClient) CreateKeypair ¶
func (c *KpsClient) CreateKeypair(request *model.CreateKeypairRequest) (*model.CreateKeypairResponse, error)
CreateKeypair 创建和导入SSH密钥对
创建和导入SSH密钥对
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 删除所有失败的任务
删除操作失败的任务信息。
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 删除失败的任务
删除失败的任务。
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密钥对。
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密码登录。
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) ExportPrivateKey ¶ added in v0.1.59
func (c *KpsClient) ExportPrivateKey(request *model.ExportPrivateKeyRequest) (*model.ExportPrivateKeyResponse, error)
ExportPrivateKey 导出私钥
导出指定密钥对的私钥。
Please refer to HUAWEI cloud API Explorer for details.
func (*KpsClient) ExportPrivateKeyInvoker ¶ added in v0.1.59
func (c *KpsClient) ExportPrivateKeyInvoker(request *model.ExportPrivateKeyRequest) *ExportPrivateKeyInvoker
ExportPrivateKeyInvoker 导出私钥
func (*KpsClient) ImportPrivateKey ¶ added in v0.1.59
func (c *KpsClient) ImportPrivateKey(request *model.ImportPrivateKeyRequest) (*model.ImportPrivateKeyResponse, error)
ImportPrivateKey 导入私钥
导入私钥到指定密钥对。
Please refer to HUAWEI cloud API Explorer for details.
func (*KpsClient) ImportPrivateKeyInvoker ¶ added in v0.1.59
func (c *KpsClient) ImportPrivateKeyInvoker(request *model.ImportPrivateKeyRequest) *ImportPrivateKeyInvoker
ImportPrivateKeyInvoker 导入私钥
func (*KpsClient) ListFailedTask ¶
func (c *KpsClient) ListFailedTask(request *model.ListFailedTaskRequest) (*model.ListFailedTaskResponse, error)
ListFailedTask 查询失败的任务信息
查询绑定、解绑等操作失败的任务信息。
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密钥对详细信息
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密钥对当前任务的执行状态。
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密钥对列表
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 查询正在处理的任务信息
查询正在处理的任务信息。
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密钥对描述。
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)