v3

package
v0.1.123 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 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 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) GetBaseInvoker added in v0.1.118

func (i *AssociateKeypairInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*AssociateKeypairInvoker) Invoke added in v0.0.90

type BatchAssociateKeypairInvoker added in v0.1.59

type BatchAssociateKeypairInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchAssociateKeypairInvoker) GetBaseInvoker added in v0.1.118

func (i *BatchAssociateKeypairInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*BatchAssociateKeypairInvoker) Invoke added in v0.1.59

type ClearPrivateKeyInvoker added in v0.1.59

type ClearPrivateKeyInvoker struct {
	*invoker.BaseInvoker
}

func (*ClearPrivateKeyInvoker) GetBaseInvoker added in v0.1.118

func (i *ClearPrivateKeyInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ClearPrivateKeyInvoker) Invoke added in v0.1.59

type CreateKeypairInvoker added in v0.0.90

type CreateKeypairInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateKeypairInvoker) GetBaseInvoker added in v0.1.118

func (i *CreateKeypairInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*CreateKeypairInvoker) Invoke added in v0.0.90

type DeleteAllFailedTaskInvoker added in v0.0.90

type DeleteAllFailedTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteAllFailedTaskInvoker) GetBaseInvoker added in v0.1.118

func (i *DeleteAllFailedTaskInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*DeleteAllFailedTaskInvoker) Invoke added in v0.0.90

type DeleteFailedTaskInvoker added in v0.0.90

type DeleteFailedTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteFailedTaskInvoker) GetBaseInvoker added in v0.1.118

func (i *DeleteFailedTaskInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*DeleteFailedTaskInvoker) Invoke added in v0.0.90

type DeleteKeypairInvoker added in v0.0.90

type DeleteKeypairInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteKeypairInvoker) GetBaseInvoker added in v0.1.118

func (i *DeleteKeypairInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*DeleteKeypairInvoker) Invoke added in v0.0.90

type DisassociateKeypairInvoker added in v0.0.90

type DisassociateKeypairInvoker struct {
	*invoker.BaseInvoker
}

func (*DisassociateKeypairInvoker) GetBaseInvoker added in v0.1.118

func (i *DisassociateKeypairInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*DisassociateKeypairInvoker) Invoke added in v0.0.90

type ExportPrivateKeyInvoker added in v0.1.59

type ExportPrivateKeyInvoker struct {
	*invoker.BaseInvoker
}

func (*ExportPrivateKeyInvoker) GetBaseInvoker added in v0.1.118

func (i *ExportPrivateKeyInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ExportPrivateKeyInvoker) Invoke added in v0.1.59

type ImportPrivateKeyInvoker added in v0.1.59

type ImportPrivateKeyInvoker struct {
	*invoker.BaseInvoker
}

func (*ImportPrivateKeyInvoker) GetBaseInvoker added in v0.1.118

func (i *ImportPrivateKeyInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ImportPrivateKeyInvoker) Invoke added in v0.1.59

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

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

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

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) GetBaseInvoker added in v0.1.118

func (i *ListFailedTaskInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ListFailedTaskInvoker) Invoke added in v0.0.90

type ListKeypairDetailInvoker added in v0.0.90

type ListKeypairDetailInvoker struct {
	*invoker.BaseInvoker
}

func (*ListKeypairDetailInvoker) GetBaseInvoker added in v0.1.118

func (i *ListKeypairDetailInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ListKeypairDetailInvoker) Invoke added in v0.0.90

type ListKeypairTaskInvoker added in v0.0.90

type ListKeypairTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*ListKeypairTaskInvoker) GetBaseInvoker added in v0.1.118

func (i *ListKeypairTaskInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ListKeypairTaskInvoker) Invoke added in v0.0.90

type ListKeypairsInvoker added in v0.0.90

type ListKeypairsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListKeypairsInvoker) GetBaseInvoker added in v0.1.118

func (i *ListKeypairsInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ListKeypairsInvoker) Invoke added in v0.0.90

type ListRunningTaskInvoker added in v0.0.90

type ListRunningTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*ListRunningTaskInvoker) GetBaseInvoker added in v0.1.118

func (i *ListRunningTaskInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ListRunningTaskInvoker) Invoke added in v0.0.90

type UpdateKeypairDescriptionInvoker added in v0.0.90

type UpdateKeypairDescriptionInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateKeypairDescriptionInvoker) GetBaseInvoker added in v0.1.118

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