v3

package
v0.0.28-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 3

Documentation

Index

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 (*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

给指定的虚拟机解除绑定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

更新SSH密钥对描述。

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL