v3

package
v0.1.44 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 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 AssociateKeypairInvoker added in v0.0.90

type AssociateKeypairInvoker struct {
	*invoker.BaseInvoker
}

func (*AssociateKeypairInvoker) Invoke added in v0.0.90

type CreateKeypairInvoker added in v0.0.90

type CreateKeypairInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateKeypairInvoker) Invoke added in v0.0.90

type DeleteAllFailedTaskInvoker added in v0.0.90

type DeleteAllFailedTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteAllFailedTaskInvoker) Invoke added in v0.0.90

type DeleteFailedTaskInvoker added in v0.0.90

type DeleteFailedTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteFailedTaskInvoker) Invoke added in v0.0.90

type DeleteKeypairInvoker added in v0.0.90

type DeleteKeypairInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteKeypairInvoker) Invoke added in v0.0.90

type DisassociateKeypairInvoker added in v0.0.90

type DisassociateKeypairInvoker struct {
	*invoker.BaseInvoker
}

func (*DisassociateKeypairInvoker) Invoke added in v0.0.90

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密钥对。

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密钥对

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

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

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) 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

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

type ListKeypairDetailInvoker added in v0.0.90

type ListKeypairDetailInvoker struct {
	*invoker.BaseInvoker
}

func (*ListKeypairDetailInvoker) Invoke added in v0.0.90

type ListKeypairTaskInvoker added in v0.0.90

type ListKeypairTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*ListKeypairTaskInvoker) Invoke added in v0.0.90

type ListKeypairsInvoker added in v0.0.90

type ListKeypairsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListKeypairsInvoker) Invoke added in v0.0.90

type ListRunningTaskInvoker added in v0.0.90

type ListRunningTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*ListRunningTaskInvoker) Invoke added in v0.0.90

type UpdateKeypairDescriptionInvoker added in v0.0.90

type UpdateKeypairDescriptionInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateKeypairDescriptionInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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