v1

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CsmsClientBuilder

func CsmsClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForBatchCreateOrDeleteTags

func GenReqDefForBatchCreateOrDeleteTags() *def.HttpRequestDef

func GenReqDefForCreateSecret

func GenReqDefForCreateSecret() *def.HttpRequestDef

func GenReqDefForCreateSecretTag

func GenReqDefForCreateSecretTag() *def.HttpRequestDef

func GenReqDefForCreateSecretVersion

func GenReqDefForCreateSecretVersion() *def.HttpRequestDef

func GenReqDefForDeleteSecret

func GenReqDefForDeleteSecret() *def.HttpRequestDef

func GenReqDefForDeleteSecretForSchedule

func GenReqDefForDeleteSecretForSchedule() *def.HttpRequestDef

func GenReqDefForDeleteSecretStage

func GenReqDefForDeleteSecretStage() *def.HttpRequestDef

func GenReqDefForDeleteSecretTag

func GenReqDefForDeleteSecretTag() *def.HttpRequestDef

func GenReqDefForDownloadSecretBlob added in v0.0.103

func GenReqDefForDownloadSecretBlob() *def.HttpRequestDef

func GenReqDefForListProjectSecretsTags

func GenReqDefForListProjectSecretsTags() *def.HttpRequestDef

func GenReqDefForListResourceInstances

func GenReqDefForListResourceInstances() *def.HttpRequestDef

func GenReqDefForListSecretTags

func GenReqDefForListSecretTags() *def.HttpRequestDef

func GenReqDefForListSecretVersions

func GenReqDefForListSecretVersions() *def.HttpRequestDef

func GenReqDefForListSecrets

func GenReqDefForListSecrets() *def.HttpRequestDef

func GenReqDefForRestoreSecret

func GenReqDefForRestoreSecret() *def.HttpRequestDef

func GenReqDefForShowSecret

func GenReqDefForShowSecret() *def.HttpRequestDef

func GenReqDefForShowSecretStage

func GenReqDefForShowSecretStage() *def.HttpRequestDef

func GenReqDefForShowSecretVersion

func GenReqDefForShowSecretVersion() *def.HttpRequestDef

func GenReqDefForUpdateSecret

func GenReqDefForUpdateSecret() *def.HttpRequestDef

func GenReqDefForUpdateSecretStage

func GenReqDefForUpdateSecretStage() *def.HttpRequestDef

func GenReqDefForUploadSecretBlob added in v0.0.103

func GenReqDefForUploadSecretBlob() *def.HttpRequestDef

Types

type BatchCreateOrDeleteTagsInvoker added in v0.0.90

type BatchCreateOrDeleteTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchCreateOrDeleteTagsInvoker) Invoke added in v0.0.90

type CreateSecretInvoker added in v0.0.90

type CreateSecretInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateSecretInvoker) Invoke added in v0.0.90

type CreateSecretTagInvoker added in v0.0.90

type CreateSecretTagInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateSecretTagInvoker) Invoke added in v0.0.90

type CreateSecretVersionInvoker added in v0.0.90

type CreateSecretVersionInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateSecretVersionInvoker) Invoke added in v0.0.90

type CsmsClient

type CsmsClient struct {
	HcClient *http_client.HcHttpClient
}

func NewCsmsClient

func NewCsmsClient(hcClient *http_client.HcHttpClient) *CsmsClient

func (*CsmsClient) BatchCreateOrDeleteTags

BatchCreateOrDeleteTags 批量添加或删除凭据标签

- 功能介绍:批量添加或删除凭据标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) BatchCreateOrDeleteTagsInvoker added in v0.0.90

func (c *CsmsClient) BatchCreateOrDeleteTagsInvoker(request *model.BatchCreateOrDeleteTagsRequest) *BatchCreateOrDeleteTagsInvoker

BatchCreateOrDeleteTagsInvoker 批量添加或删除凭据标签

func (*CsmsClient) CreateSecret

func (c *CsmsClient) CreateSecret(request *model.CreateSecretRequest) (*model.CreateSecretResponse, error)

CreateSecret 创建凭据

创建新的凭据,并将凭据值存入凭据的初始版本。

凭据管理服务将凭据值加密后,存储在凭据对象下的版本中。每个版本可与多个凭据版本状态相关联,凭据版本状态用于标识凭据版本处于的阶段,没有版本状态标记的版本视为已弃用,可用凭据管理服务自动删除。

初始版本的状态被标记为SYSCURRENT。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) CreateSecretInvoker added in v0.0.90

func (c *CsmsClient) CreateSecretInvoker(request *model.CreateSecretRequest) *CreateSecretInvoker

CreateSecretInvoker 创建凭据

func (*CsmsClient) CreateSecretTag

func (c *CsmsClient) CreateSecretTag(request *model.CreateSecretTagRequest) (*model.CreateSecretTagResponse, error)

CreateSecretTag 添加凭据标签

- 功能介绍:添加凭据标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) CreateSecretTagInvoker added in v0.0.90

func (c *CsmsClient) CreateSecretTagInvoker(request *model.CreateSecretTagRequest) *CreateSecretTagInvoker

CreateSecretTagInvoker 添加凭据标签

func (*CsmsClient) CreateSecretVersion

CreateSecretVersion 创建凭据版本

在指定的凭据中,创建一个新的凭据版本,用于加密保管新的凭据值。默认情况下,新创建的凭据版本被标记为SYSCURRENT状态,而SYSCURRENT标记的前一个凭据版本被标记为SYSPREVIOUS状态。您可以通过指定VersionStage参数来覆盖默认行为。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) CreateSecretVersionInvoker added in v0.0.90

func (c *CsmsClient) CreateSecretVersionInvoker(request *model.CreateSecretVersionRequest) *CreateSecretVersionInvoker

CreateSecretVersionInvoker 创建凭据版本

func (*CsmsClient) DeleteSecret

func (c *CsmsClient) DeleteSecret(request *model.DeleteSecretRequest) (*model.DeleteSecretResponse, error)

DeleteSecret 立即删除凭据

立即删除指定的凭据,且无法恢复。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) DeleteSecretForSchedule

DeleteSecretForSchedule 创建凭据的定时删除任务

指定延迟删除时间,创建删除凭据的定时任务,可设置7~30天的的延迟删除时间。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) DeleteSecretForScheduleInvoker added in v0.0.90

func (c *CsmsClient) DeleteSecretForScheduleInvoker(request *model.DeleteSecretForScheduleRequest) *DeleteSecretForScheduleInvoker

DeleteSecretForScheduleInvoker 创建凭据的定时删除任务

func (*CsmsClient) DeleteSecretInvoker added in v0.0.90

func (c *CsmsClient) DeleteSecretInvoker(request *model.DeleteSecretRequest) *DeleteSecretInvoker

DeleteSecretInvoker 立即删除凭据

func (*CsmsClient) DeleteSecretStage

DeleteSecretStage 删除凭据的版本状态

删除指定的凭据版本状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) DeleteSecretStageInvoker added in v0.0.90

func (c *CsmsClient) DeleteSecretStageInvoker(request *model.DeleteSecretStageRequest) *DeleteSecretStageInvoker

DeleteSecretStageInvoker 删除凭据的版本状态

func (*CsmsClient) DeleteSecretTag

func (c *CsmsClient) DeleteSecretTag(request *model.DeleteSecretTagRequest) (*model.DeleteSecretTagResponse, error)

DeleteSecretTag 删除凭据标签

- 功能介绍:删除凭据标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) DeleteSecretTagInvoker added in v0.0.90

func (c *CsmsClient) DeleteSecretTagInvoker(request *model.DeleteSecretTagRequest) *DeleteSecretTagInvoker

DeleteSecretTagInvoker 删除凭据标签

func (*CsmsClient) DownloadSecretBlob added in v0.0.103

DownloadSecretBlob 下载凭据备份

下载指定凭据的备份文件

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) DownloadSecretBlobInvoker added in v0.0.103

func (c *CsmsClient) DownloadSecretBlobInvoker(request *model.DownloadSecretBlobRequest) *DownloadSecretBlobInvoker

DownloadSecretBlobInvoker 下载凭据备份

func (*CsmsClient) ListProjectSecretsTags

ListProjectSecretsTags 查询项目标签

- 功能介绍:查询用户在指定项目下的所有凭据标签集合。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) ListProjectSecretsTagsInvoker added in v0.0.90

func (c *CsmsClient) ListProjectSecretsTagsInvoker(request *model.ListProjectSecretsTagsRequest) *ListProjectSecretsTagsInvoker

ListProjectSecretsTagsInvoker 查询项目标签

func (*CsmsClient) ListResourceInstances

ListResourceInstances 查询凭据实例

- 功能介绍:查询凭据实例。通过标签过滤,筛选用户凭据,返回凭据列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) ListResourceInstancesInvoker added in v0.0.90

func (c *CsmsClient) ListResourceInstancesInvoker(request *model.ListResourceInstancesRequest) *ListResourceInstancesInvoker

ListResourceInstancesInvoker 查询凭据实例

func (*CsmsClient) ListSecretTags

func (c *CsmsClient) ListSecretTags(request *model.ListSecretTagsRequest) (*model.ListSecretTagsResponse, error)

ListSecretTags 查询凭据标签

- 功能介绍:查询凭据标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) ListSecretTagsInvoker added in v0.0.90

func (c *CsmsClient) ListSecretTagsInvoker(request *model.ListSecretTagsRequest) *ListSecretTagsInvoker

ListSecretTagsInvoker 查询凭据标签

func (*CsmsClient) ListSecretVersions

ListSecretVersions 查询凭据的版本列表

查询指定凭据下的版本列表信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) ListSecretVersionsInvoker added in v0.0.90

func (c *CsmsClient) ListSecretVersionsInvoker(request *model.ListSecretVersionsRequest) *ListSecretVersionsInvoker

ListSecretVersionsInvoker 查询凭据的版本列表

func (*CsmsClient) ListSecrets

func (c *CsmsClient) ListSecrets(request *model.ListSecretsRequest) (*model.ListSecretsResponse, error)

ListSecrets 查询凭据列表

查询当前用户在本项目下创建的所有凭据。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) ListSecretsInvoker added in v0.0.90

func (c *CsmsClient) ListSecretsInvoker(request *model.ListSecretsRequest) *ListSecretsInvoker

ListSecretsInvoker 查询凭据列表

func (*CsmsClient) RestoreSecret

func (c *CsmsClient) RestoreSecret(request *model.RestoreSecretRequest) (*model.RestoreSecretResponse, error)

RestoreSecret 取消凭据的定时删除任务

取消凭据的定时删除任务,凭据对象恢复可使用状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) RestoreSecretInvoker added in v0.0.90

func (c *CsmsClient) RestoreSecretInvoker(request *model.RestoreSecretRequest) *RestoreSecretInvoker

RestoreSecretInvoker 取消凭据的定时删除任务

func (*CsmsClient) ShowSecret

func (c *CsmsClient) ShowSecret(request *model.ShowSecretRequest) (*model.ShowSecretResponse, error)

ShowSecret 查询凭据

查询指定凭据的信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) ShowSecretInvoker added in v0.0.90

func (c *CsmsClient) ShowSecretInvoker(request *model.ShowSecretRequest) *ShowSecretInvoker

ShowSecretInvoker 查询凭据

func (*CsmsClient) ShowSecretStage

func (c *CsmsClient) ShowSecretStage(request *model.ShowSecretStageRequest) (*model.ShowSecretStageResponse, error)

ShowSecretStage 查询凭据的版本状态

查询指定凭据版本状态标记的版本信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) ShowSecretStageInvoker added in v0.0.90

func (c *CsmsClient) ShowSecretStageInvoker(request *model.ShowSecretStageRequest) *ShowSecretStageInvoker

ShowSecretStageInvoker 查询凭据的版本状态

func (*CsmsClient) ShowSecretVersion

ShowSecretVersion 查询凭据的版本与凭据值

查询指定凭据版本的信息和版本中的明文凭据值,只能查询ENABLED状态的凭据。 通过/v1/{project_id}/secrets/{secret_name}/versions/latest (即将当前接口URL中的{version_id}赋值为latest)可访问凭据最新版本的凭据值。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) ShowSecretVersionInvoker added in v0.0.90

func (c *CsmsClient) ShowSecretVersionInvoker(request *model.ShowSecretVersionRequest) *ShowSecretVersionInvoker

ShowSecretVersionInvoker 查询凭据的版本与凭据值

func (*CsmsClient) UpdateSecret

func (c *CsmsClient) UpdateSecret(request *model.UpdateSecretRequest) (*model.UpdateSecretResponse, error)

UpdateSecret 更新凭据

更新指定凭据的元数据信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) UpdateSecretInvoker added in v0.0.90

func (c *CsmsClient) UpdateSecretInvoker(request *model.UpdateSecretRequest) *UpdateSecretInvoker

UpdateSecretInvoker 更新凭据

func (*CsmsClient) UpdateSecretStage

UpdateSecretStage 更新凭据的版本状态

更新凭据的版本状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) UpdateSecretStageInvoker added in v0.0.90

func (c *CsmsClient) UpdateSecretStageInvoker(request *model.UpdateSecretStageRequest) *UpdateSecretStageInvoker

UpdateSecretStageInvoker 更新凭据的版本状态

func (*CsmsClient) UploadSecretBlob added in v0.0.103

func (c *CsmsClient) UploadSecretBlob(request *model.UploadSecretBlobRequest) (*model.UploadSecretBlobResponse, error)

UploadSecretBlob 恢复凭据对象

通过上传凭据备份文件,恢复凭据对象

Please refer to HUAWEI cloud API Explorer for details.

func (*CsmsClient) UploadSecretBlobInvoker added in v0.0.103

func (c *CsmsClient) UploadSecretBlobInvoker(request *model.UploadSecretBlobRequest) *UploadSecretBlobInvoker

UploadSecretBlobInvoker 恢复凭据对象

type DeleteSecretForScheduleInvoker added in v0.0.90

type DeleteSecretForScheduleInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteSecretForScheduleInvoker) Invoke added in v0.0.90

type DeleteSecretInvoker added in v0.0.90

type DeleteSecretInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteSecretInvoker) Invoke added in v0.0.90

type DeleteSecretStageInvoker added in v0.0.90

type DeleteSecretStageInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteSecretStageInvoker) Invoke added in v0.0.90

type DeleteSecretTagInvoker added in v0.0.90

type DeleteSecretTagInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteSecretTagInvoker) Invoke added in v0.0.90

type DownloadSecretBlobInvoker added in v0.0.103

type DownloadSecretBlobInvoker struct {
	*invoker.BaseInvoker
}

func (*DownloadSecretBlobInvoker) Invoke added in v0.0.103

type ListProjectSecretsTagsInvoker added in v0.0.90

type ListProjectSecretsTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListProjectSecretsTagsInvoker) Invoke added in v0.0.90

type ListResourceInstancesInvoker added in v0.0.90

type ListResourceInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListResourceInstancesInvoker) Invoke added in v0.0.90

type ListSecretTagsInvoker added in v0.0.90

type ListSecretTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListSecretTagsInvoker) Invoke added in v0.0.90

type ListSecretVersionsInvoker added in v0.0.90

type ListSecretVersionsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListSecretVersionsInvoker) Invoke added in v0.0.90

type ListSecretsInvoker added in v0.0.90

type ListSecretsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListSecretsInvoker) Invoke added in v0.0.90

type RestoreSecretInvoker added in v0.0.90

type RestoreSecretInvoker struct {
	*invoker.BaseInvoker
}

func (*RestoreSecretInvoker) Invoke added in v0.0.90

type ShowSecretInvoker added in v0.0.90

type ShowSecretInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowSecretInvoker) Invoke added in v0.0.90

type ShowSecretStageInvoker added in v0.0.90

type ShowSecretStageInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowSecretStageInvoker) Invoke added in v0.0.90

type ShowSecretVersionInvoker added in v0.0.90

type ShowSecretVersionInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowSecretVersionInvoker) Invoke added in v0.0.90

type UpdateSecretInvoker added in v0.0.90

type UpdateSecretInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateSecretInvoker) Invoke added in v0.0.90

type UpdateSecretStageInvoker added in v0.0.90

type UpdateSecretStageInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateSecretStageInvoker) Invoke added in v0.0.90

type UploadSecretBlobInvoker added in v0.0.103

type UploadSecretBlobInvoker struct {
	*invoker.BaseInvoker
}

func (*UploadSecretBlobInvoker) Invoke added in v0.0.103

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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