v3

package
v0.0.15-beta Latest Latest
Warning

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

Go to latest
Published: Sep 30, 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(request *model.AssociateKeypairRequest) *def.HttpRequestDef

func GenReqDefForCreateKeypair

func GenReqDefForCreateKeypair(request *model.CreateKeypairRequest) *def.HttpRequestDef

func GenReqDefForDeleteAllFailedTask

func GenReqDefForDeleteAllFailedTask(request *model.DeleteAllFailedTaskRequest) *def.HttpRequestDef

func GenReqDefForDeleteFailedTask

func GenReqDefForDeleteFailedTask(request *model.DeleteFailedTaskRequest) *def.HttpRequestDef

func GenReqDefForDeleteKeypair

func GenReqDefForDeleteKeypair(request *model.DeleteKeypairRequest) *def.HttpRequestDef

func GenReqDefForDisassociateKeypair

func GenReqDefForDisassociateKeypair(request *model.DisassociateKeypairRequest) *def.HttpRequestDef

func GenReqDefForListFailedTask

func GenReqDefForListFailedTask(request *model.ListFailedTaskRequest) *def.HttpRequestDef

func GenReqDefForListKeypairDetail

func GenReqDefForListKeypairDetail(request *model.ListKeypairDetailRequest) *def.HttpRequestDef

func GenReqDefForListKeypairTask

func GenReqDefForListKeypairTask(request *model.ListKeypairTaskRequest) *def.HttpRequestDef

func GenReqDefForListKeypairs

func GenReqDefForListKeypairs(request *model.ListKeypairsRequest) *def.HttpRequestDef

func GenReqDefForListRunningTask

func GenReqDefForListRunningTask(request *model.ListRunningTaskRequest) *def.HttpRequestDef

func GenReqDefForUpdateKeypairDescription

func GenReqDefForUpdateKeypairDescription(request *model.UpdateKeypairDescriptionRequest) *def.HttpRequestDef

func GenRespForAssociateKeypair

func GenRespForAssociateKeypair() (*model.AssociateKeypairResponse, *def.HttpResponseDef)

func GenRespForCreateKeypair

func GenRespForCreateKeypair() (*model.CreateKeypairResponse, *def.HttpResponseDef)

func GenRespForDeleteAllFailedTask

func GenRespForDeleteAllFailedTask() (*model.DeleteAllFailedTaskResponse, *def.HttpResponseDef)

func GenRespForDeleteFailedTask

func GenRespForDeleteFailedTask() (*model.DeleteFailedTaskResponse, *def.HttpResponseDef)

func GenRespForDeleteKeypair

func GenRespForDeleteKeypair() (*model.DeleteKeypairResponse, *def.HttpResponseDef)

func GenRespForDisassociateKeypair

func GenRespForDisassociateKeypair() (*model.DisassociateKeypairResponse, *def.HttpResponseDef)

func GenRespForListFailedTask

func GenRespForListFailedTask() (*model.ListFailedTaskResponse, *def.HttpResponseDef)

func GenRespForListKeypairDetail

func GenRespForListKeypairDetail() (*model.ListKeypairDetailResponse, *def.HttpResponseDef)

func GenRespForListKeypairTask

func GenRespForListKeypairTask() (*model.ListKeypairTaskResponse, *def.HttpResponseDef)

func GenRespForListKeypairs

func GenRespForListKeypairs() (*model.ListKeypairsResponse, *def.HttpResponseDef)

func GenRespForListRunningTask

func GenRespForListRunningTask() (*model.ListRunningTaskResponse, *def.HttpResponseDef)

func KpsClientBuilder

func KpsClientBuilder() *http_client.HcHttpClientBuilder

Types

type KpsClient

type KpsClient struct {
	// contains filtered or unexported fields
}

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