v2

package
v0.1.38 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenReqDefForAddImageTag

func GenReqDefForAddImageTag() *def.HttpRequestDef

func GenReqDefForBatchAddMembers

func GenReqDefForBatchAddMembers() *def.HttpRequestDef

func GenReqDefForBatchAddOrDeleteTags

func GenReqDefForBatchAddOrDeleteTags() *def.HttpRequestDef

func GenReqDefForBatchDeleteMembers

func GenReqDefForBatchDeleteMembers() *def.HttpRequestDef

func GenReqDefForBatchUpdateMembers

func GenReqDefForBatchUpdateMembers() *def.HttpRequestDef

func GenReqDefForCopyImageCrossRegion

func GenReqDefForCopyImageCrossRegion() *def.HttpRequestDef

func GenReqDefForCopyImageInRegion

func GenReqDefForCopyImageInRegion() *def.HttpRequestDef

func GenReqDefForCreateDataImage

func GenReqDefForCreateDataImage() *def.HttpRequestDef

func GenReqDefForCreateImage

func GenReqDefForCreateImage() *def.HttpRequestDef

func GenReqDefForCreateOrUpdateTags

func GenReqDefForCreateOrUpdateTags() *def.HttpRequestDef

func GenReqDefForCreateWholeImage

func GenReqDefForCreateWholeImage() *def.HttpRequestDef

func GenReqDefForDeleteImageTag

func GenReqDefForDeleteImageTag() *def.HttpRequestDef

func GenReqDefForExportImage

func GenReqDefForExportImage() *def.HttpRequestDef

func GenReqDefForGlanceAddImageMember

func GenReqDefForGlanceAddImageMember() *def.HttpRequestDef

func GenReqDefForGlanceCreateImageMetadata

func GenReqDefForGlanceCreateImageMetadata() *def.HttpRequestDef

func GenReqDefForGlanceCreateTag

func GenReqDefForGlanceCreateTag() *def.HttpRequestDef

func GenReqDefForGlanceDeleteImage

func GenReqDefForGlanceDeleteImage() *def.HttpRequestDef

func GenReqDefForGlanceDeleteImageMember

func GenReqDefForGlanceDeleteImageMember() *def.HttpRequestDef

func GenReqDefForGlanceDeleteTag

func GenReqDefForGlanceDeleteTag() *def.HttpRequestDef

func GenReqDefForGlanceListImageMemberSchemas

func GenReqDefForGlanceListImageMemberSchemas() *def.HttpRequestDef

func GenReqDefForGlanceListImageMembers

func GenReqDefForGlanceListImageMembers() *def.HttpRequestDef

func GenReqDefForGlanceListImageSchemas

func GenReqDefForGlanceListImageSchemas() *def.HttpRequestDef

func GenReqDefForGlanceListImages

func GenReqDefForGlanceListImages() *def.HttpRequestDef

func GenReqDefForGlanceShowImage

func GenReqDefForGlanceShowImage() *def.HttpRequestDef

func GenReqDefForGlanceShowImageMember

func GenReqDefForGlanceShowImageMember() *def.HttpRequestDef

func GenReqDefForGlanceShowImageMemberSchemas

func GenReqDefForGlanceShowImageMemberSchemas() *def.HttpRequestDef

func GenReqDefForGlanceShowImageSchemas

func GenReqDefForGlanceShowImageSchemas() *def.HttpRequestDef

func GenReqDefForGlanceUpdateImage

func GenReqDefForGlanceUpdateImage() *def.HttpRequestDef

func GenReqDefForGlanceUpdateImageMember

func GenReqDefForGlanceUpdateImageMember() *def.HttpRequestDef

func GenReqDefForImportImageQuick

func GenReqDefForImportImageQuick() *def.HttpRequestDef

func GenReqDefForListImageByTags

func GenReqDefForListImageByTags() *def.HttpRequestDef

func GenReqDefForListImageTags

func GenReqDefForListImageTags() *def.HttpRequestDef

func GenReqDefForListImages

func GenReqDefForListImages() *def.HttpRequestDef

func GenReqDefForListImagesTags

func GenReqDefForListImagesTags() *def.HttpRequestDef

func GenReqDefForListOsVersions

func GenReqDefForListOsVersions() *def.HttpRequestDef

func GenReqDefForListTags

func GenReqDefForListTags() *def.HttpRequestDef

func GenReqDefForListVersions added in v0.0.81

func GenReqDefForListVersions() *def.HttpRequestDef

func GenReqDefForRegisterImage

func GenReqDefForRegisterImage() *def.HttpRequestDef

func GenReqDefForShowImageQuota

func GenReqDefForShowImageQuota() *def.HttpRequestDef

func GenReqDefForShowJob

func GenReqDefForShowJob() *def.HttpRequestDef

func GenReqDefForShowJobProgress added in v0.0.107

func GenReqDefForShowJobProgress() *def.HttpRequestDef

func GenReqDefForShowVersion added in v0.0.81

func GenReqDefForShowVersion() *def.HttpRequestDef

func GenReqDefForUpdateImage

func GenReqDefForUpdateImage() *def.HttpRequestDef

func ImsClientBuilder

func ImsClientBuilder() *http_client.HcHttpClientBuilder

Types

type AddImageTagInvoker added in v0.0.90

type AddImageTagInvoker struct {
	*invoker.BaseInvoker
}

func (*AddImageTagInvoker) Invoke added in v0.0.90

type BatchAddMembersInvoker added in v0.0.90

type BatchAddMembersInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchAddMembersInvoker) Invoke added in v0.0.90

type BatchAddOrDeleteTagsInvoker added in v0.0.90

type BatchAddOrDeleteTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchAddOrDeleteTagsInvoker) Invoke added in v0.0.90

type BatchDeleteMembersInvoker added in v0.0.90

type BatchDeleteMembersInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteMembersInvoker) Invoke added in v0.0.90

type BatchUpdateMembersInvoker added in v0.0.90

type BatchUpdateMembersInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchUpdateMembersInvoker) Invoke added in v0.0.90

type CopyImageCrossRegionInvoker added in v0.0.90

type CopyImageCrossRegionInvoker struct {
	*invoker.BaseInvoker
}

func (*CopyImageCrossRegionInvoker) Invoke added in v0.0.90

type CopyImageInRegionInvoker added in v0.0.90

type CopyImageInRegionInvoker struct {
	*invoker.BaseInvoker
}

func (*CopyImageInRegionInvoker) Invoke added in v0.0.90

type CreateDataImageInvoker added in v0.0.90

type CreateDataImageInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateDataImageInvoker) Invoke added in v0.0.90

type CreateImageInvoker added in v0.0.90

type CreateImageInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateImageInvoker) Invoke added in v0.0.90

type CreateOrUpdateTagsInvoker added in v0.0.90

type CreateOrUpdateTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateOrUpdateTagsInvoker) Invoke added in v0.0.90

type CreateWholeImageInvoker added in v0.0.90

type CreateWholeImageInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateWholeImageInvoker) Invoke added in v0.0.90

type DeleteImageTagInvoker added in v0.0.90

type DeleteImageTagInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteImageTagInvoker) Invoke added in v0.0.90

type ExportImageInvoker added in v0.0.90

type ExportImageInvoker struct {
	*invoker.BaseInvoker
}

func (*ExportImageInvoker) Invoke added in v0.0.90

type GlanceAddImageMemberInvoker added in v0.0.90

type GlanceAddImageMemberInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceAddImageMemberInvoker) Invoke added in v0.0.90

type GlanceCreateImageMetadataInvoker added in v0.0.90

type GlanceCreateImageMetadataInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceCreateImageMetadataInvoker) Invoke added in v0.0.90

type GlanceCreateTagInvoker added in v0.0.90

type GlanceCreateTagInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceCreateTagInvoker) Invoke added in v0.0.90

type GlanceDeleteImageInvoker added in v0.0.90

type GlanceDeleteImageInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceDeleteImageInvoker) Invoke added in v0.0.90

type GlanceDeleteImageMemberInvoker added in v0.0.90

type GlanceDeleteImageMemberInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceDeleteImageMemberInvoker) Invoke added in v0.0.90

type GlanceDeleteTagInvoker added in v0.0.90

type GlanceDeleteTagInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceDeleteTagInvoker) Invoke added in v0.0.90

type GlanceListImageMemberSchemasInvoker added in v0.0.90

type GlanceListImageMemberSchemasInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceListImageMemberSchemasInvoker) Invoke added in v0.0.90

type GlanceListImageMembersInvoker added in v0.0.90

type GlanceListImageMembersInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceListImageMembersInvoker) Invoke added in v0.0.90

type GlanceListImageSchemasInvoker added in v0.0.90

type GlanceListImageSchemasInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceListImageSchemasInvoker) Invoke added in v0.0.90

type GlanceListImagesInvoker added in v0.0.90

type GlanceListImagesInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceListImagesInvoker) Invoke added in v0.0.90

type GlanceShowImageInvoker added in v0.0.90

type GlanceShowImageInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceShowImageInvoker) Invoke added in v0.0.90

type GlanceShowImageMemberInvoker added in v0.0.90

type GlanceShowImageMemberInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceShowImageMemberInvoker) Invoke added in v0.0.90

type GlanceShowImageMemberSchemasInvoker added in v0.0.90

type GlanceShowImageMemberSchemasInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceShowImageMemberSchemasInvoker) Invoke added in v0.0.90

type GlanceShowImageSchemasInvoker added in v0.0.90

type GlanceShowImageSchemasInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceShowImageSchemasInvoker) Invoke added in v0.0.90

type GlanceUpdateImageInvoker added in v0.0.90

type GlanceUpdateImageInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceUpdateImageInvoker) Invoke added in v0.0.90

type GlanceUpdateImageMemberInvoker added in v0.0.90

type GlanceUpdateImageMemberInvoker struct {
	*invoker.BaseInvoker
}

func (*GlanceUpdateImageMemberInvoker) Invoke added in v0.0.90

type ImportImageQuickInvoker added in v0.0.90

type ImportImageQuickInvoker struct {
	*invoker.BaseInvoker
}

func (*ImportImageQuickInvoker) Invoke added in v0.0.90

type ImsClient

type ImsClient struct {
	HcClient *http_client.HcHttpClient
}

func NewImsClient

func NewImsClient(hcClient *http_client.HcHttpClient) *ImsClient

func (*ImsClient) AddImageTag

func (c *ImsClient) AddImageTag(request *model.AddImageTagRequest) (*model.AddImageTagResponse, error)

AddImageTag 添加镜像标签

该接口用于为指定镜像添加或更新指定的单个标签

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) AddImageTagInvoker added in v0.0.90

func (c *ImsClient) AddImageTagInvoker(request *model.AddImageTagRequest) *AddImageTagInvoker

AddImageTagInvoker 添加镜像标签

func (*ImsClient) BatchAddMembers

func (c *ImsClient) BatchAddMembers(request *model.BatchAddMembersRequest) (*model.BatchAddMembersResponse, error)

BatchAddMembers 批量添加镜像成员

该接口为扩展接口,主要用于镜像共享时用户将多个镜像共享给多个用户。 该接口为异步接口,返回job_id说明任务下发成功,查询异步任务状态,如果是success说明任务执行成功,如果是failed说明任务执行失败。如何查询异步任务,请参见异步任务查询。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) BatchAddMembersInvoker added in v0.0.90

func (c *ImsClient) BatchAddMembersInvoker(request *model.BatchAddMembersRequest) *BatchAddMembersInvoker

BatchAddMembersInvoker 批量添加镜像成员

func (*ImsClient) BatchAddOrDeleteTags

BatchAddOrDeleteTags 批量添加删除镜像标签

该接口用于为指定镜像批量添加/更新、删除标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) BatchAddOrDeleteTagsInvoker added in v0.0.90

func (c *ImsClient) BatchAddOrDeleteTagsInvoker(request *model.BatchAddOrDeleteTagsRequest) *BatchAddOrDeleteTagsInvoker

BatchAddOrDeleteTagsInvoker 批量添加删除镜像标签

func (*ImsClient) BatchDeleteMembers

func (c *ImsClient) BatchDeleteMembers(request *model.BatchDeleteMembersRequest) (*model.BatchDeleteMembersResponse, error)

BatchDeleteMembers 批量删除镜像成员

该接口为扩展接口,主要用于取消镜像共享。 该接口为异步接口,返回job_id说明任务下发成功,查询异步任务状态,如果是success说明任务执行成功,如果是failed说明任务执行失败。如何查询异步任务,请参见异步任务查询。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) BatchDeleteMembersInvoker added in v0.0.90

func (c *ImsClient) BatchDeleteMembersInvoker(request *model.BatchDeleteMembersRequest) *BatchDeleteMembersInvoker

BatchDeleteMembersInvoker 批量删除镜像成员

func (*ImsClient) BatchUpdateMembers

func (c *ImsClient) BatchUpdateMembers(request *model.BatchUpdateMembersRequest) (*model.BatchUpdateMembersResponse, error)

BatchUpdateMembers 批量更新镜像成员状态

该接口为扩展接口,主要用于用户接受或者拒绝多个共享镜像时批量更新镜像成员的状态。 该接口为异步接口,返回job_id说明任务下发成功,查询异步任务状态,如果是success说明任务执行成功,如果是failed说明任务执行失败。如何查询异步任务,请参见异步任务查询。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) BatchUpdateMembersInvoker added in v0.0.90

func (c *ImsClient) BatchUpdateMembersInvoker(request *model.BatchUpdateMembersRequest) *BatchUpdateMembersInvoker

BatchUpdateMembersInvoker 批量更新镜像成员状态

func (*ImsClient) CopyImageCrossRegion

CopyImageCrossRegion 跨Region复制镜像

该接口为扩展接口,用户在一个区域制作的私有镜像,可以通过跨Region复制镜像将镜像复制到其他区域,在其他区域发放相同类型的云服务器,帮助用户实现区域间的业务迁移。 该接口为异步接口,返回job_id说明任务下发成功,查询异步任务状态,如果是success说明任务执行成功,如果是failed说明任务执行失败。 如何查询异步任务,请参见异步任务进度查询。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) CopyImageCrossRegionInvoker added in v0.0.90

func (c *ImsClient) CopyImageCrossRegionInvoker(request *model.CopyImageCrossRegionRequest) *CopyImageCrossRegionInvoker

CopyImageCrossRegionInvoker 跨Region复制镜像

func (*ImsClient) CopyImageInRegion

func (c *ImsClient) CopyImageInRegion(request *model.CopyImageInRegionRequest) (*model.CopyImageInRegionResponse, error)

CopyImageInRegion Region内复制镜像

该接口为扩展接口,主要用于用户将一个已有镜像复制为另一个镜像。复制镜像时,可以更改镜像的加密等属性,以满足不同的场景。 该接口为异步接口,返回job_id说明任务下发成功,查询异步任务状态,如果是success说明任务执行成功,如果是failed说明任务执行失败。如何查询异步任务,请参见异步任务查询。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) CopyImageInRegionInvoker added in v0.0.90

func (c *ImsClient) CopyImageInRegionInvoker(request *model.CopyImageInRegionRequest) *CopyImageInRegionInvoker

CopyImageInRegionInvoker Region内复制镜像

func (*ImsClient) CreateDataImage

func (c *ImsClient) CreateDataImage(request *model.CreateDataImageRequest) (*model.CreateDataImageResponse, error)

CreateDataImage 使用外部镜像文件制作数据镜像

使用上传至OBS桶中的外部数据卷镜像文件制作数据镜像。作为异步接口,调用成功,只是说明后台收到了制作请求,镜像是否制作成功需要通过异步任务查询接口查询该任务的执行状态。具体请参考异步任务查询。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) CreateDataImageInvoker added in v0.0.90

func (c *ImsClient) CreateDataImageInvoker(request *model.CreateDataImageRequest) *CreateDataImageInvoker

CreateDataImageInvoker 使用外部镜像文件制作数据镜像

func (*ImsClient) CreateImage

func (c *ImsClient) CreateImage(request *model.CreateImageRequest) (*model.CreateImageResponse, error)

CreateImage 制作镜像

本接口用于制作私有镜像,支持: - 使用云服务器制作私有镜像。 - 使用上传至OBS桶中的外部镜像文件制作私有镜像。 - 使用数据卷制作系统盘镜像。

作为异步接口,调用成功,只是说明云平台收到了制作请求,镜像是否制作成功需要通过异步任务查询接口查询该任务的执行状态,具体请参考异步任务查询。

不同场景必选参数说明:

- 使用云服务器制作镜像时的请求的必选参数:name,instance_id。 - 使用上传至OBS桶中的外部镜像文件时的请求必选参数:name,image_url,min_disk。 - 使用数据卷制作系统盘镜像时的请求必选参数:name,volume_id,os_version

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) CreateImageInvoker added in v0.0.90

func (c *ImsClient) CreateImageInvoker(request *model.CreateImageRequest) *CreateImageInvoker

CreateImageInvoker 制作镜像

func (*ImsClient) CreateOrUpdateTags

func (c *ImsClient) CreateOrUpdateTags(request *model.CreateOrUpdateTagsRequest) (*model.CreateOrUpdateTagsResponse, error)

CreateOrUpdateTags 增加或修改标签

该接口主要用于为某个镜像增加或修改一个自定义标签。通过自定义标签,用户可以将镜像进行分类。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) CreateOrUpdateTagsInvoker added in v0.0.90

func (c *ImsClient) CreateOrUpdateTagsInvoker(request *model.CreateOrUpdateTagsRequest) *CreateOrUpdateTagsInvoker

CreateOrUpdateTagsInvoker 增加或修改标签

func (*ImsClient) CreateWholeImage

func (c *ImsClient) CreateWholeImage(request *model.CreateWholeImageRequest) (*model.CreateWholeImageResponse, error)

CreateWholeImage 制作整机镜像

使用云服务器或者云服务器备份制作整机镜像。作为异步接口,调用成功,只是说明后台收到了制作整机镜像的请求,镜像是否制作成功需要通过异步任务查询接口查询该任务的执行状态,具体请参考异步任务查询。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) CreateWholeImageInvoker added in v0.0.90

func (c *ImsClient) CreateWholeImageInvoker(request *model.CreateWholeImageRequest) *CreateWholeImageInvoker

CreateWholeImageInvoker 制作整机镜像

func (*ImsClient) DeleteImageTag

func (c *ImsClient) DeleteImageTag(request *model.DeleteImageTagRequest) (*model.DeleteImageTagResponse, error)

DeleteImageTag 删除镜像标签

该接口用于为镜像删除指定的标签

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) DeleteImageTagInvoker added in v0.0.90

func (c *ImsClient) DeleteImageTagInvoker(request *model.DeleteImageTagRequest) *DeleteImageTagInvoker

DeleteImageTagInvoker 删除镜像标签

func (*ImsClient) ExportImage

func (c *ImsClient) ExportImage(request *model.ExportImageRequest) (*model.ExportImageResponse, error)

ExportImage 导出镜像

该接口为扩展接口,用于用户将自己的私有镜像导出到指定的OBS桶中。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) ExportImageInvoker added in v0.0.90

func (c *ImsClient) ExportImageInvoker(request *model.ExportImageRequest) *ExportImageInvoker

ExportImageInvoker 导出镜像

func (*ImsClient) GlanceAddImageMember

GlanceAddImageMember 添加镜像成员(OpenStack原生)

用户共享镜像给其他用户时,使用该接口向该镜像成员中添加接受镜像用户的项目ID。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceAddImageMemberInvoker added in v0.0.90

func (c *ImsClient) GlanceAddImageMemberInvoker(request *model.GlanceAddImageMemberRequest) *GlanceAddImageMemberInvoker

GlanceAddImageMemberInvoker 添加镜像成员(OpenStack原生)

func (*ImsClient) GlanceCreateImageMetadata

GlanceCreateImageMetadata 创建镜像元数据(OpenStack原生)

创建镜像元数据。调用创建镜像元数据接口成功后,只是创建了镜像的元数据,镜像对应的实际镜像文件并不存在

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceCreateImageMetadataInvoker added in v0.0.90

func (c *ImsClient) GlanceCreateImageMetadataInvoker(request *model.GlanceCreateImageMetadataRequest) *GlanceCreateImageMetadataInvoker

GlanceCreateImageMetadataInvoker 创建镜像元数据(OpenStack原生)

func (*ImsClient) GlanceCreateTag

func (c *ImsClient) GlanceCreateTag(request *model.GlanceCreateTagRequest) (*model.GlanceCreateTagResponse, error)

GlanceCreateTag 增加标签(OpenStack原生)

该接口主要用于为某个镜像添加一个自定义标签。通过自定义标签,用户可以将镜像进行分类。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceCreateTagInvoker added in v0.0.90

func (c *ImsClient) GlanceCreateTagInvoker(request *model.GlanceCreateTagRequest) *GlanceCreateTagInvoker

GlanceCreateTagInvoker 增加标签(OpenStack原生)

func (*ImsClient) GlanceDeleteImage

func (c *ImsClient) GlanceDeleteImage(request *model.GlanceDeleteImageRequest) (*model.GlanceDeleteImageResponse, error)

GlanceDeleteImage 删除镜像(OpenStack原生)

该接口主要用于删除镜像,用户可以通过该接口将自己的私有镜像删除。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceDeleteImageInvoker added in v0.0.90

func (c *ImsClient) GlanceDeleteImageInvoker(request *model.GlanceDeleteImageRequest) *GlanceDeleteImageInvoker

GlanceDeleteImageInvoker 删除镜像(OpenStack原生)

func (*ImsClient) GlanceDeleteImageMember

GlanceDeleteImageMember 删除指定的镜像成员(OpenStack原生)

该接口用于取消对某个用户的镜像共享。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceDeleteImageMemberInvoker added in v0.0.90

func (c *ImsClient) GlanceDeleteImageMemberInvoker(request *model.GlanceDeleteImageMemberRequest) *GlanceDeleteImageMemberInvoker

GlanceDeleteImageMemberInvoker 删除指定的镜像成员(OpenStack原生)

func (*ImsClient) GlanceDeleteTag

func (c *ImsClient) GlanceDeleteTag(request *model.GlanceDeleteTagRequest) (*model.GlanceDeleteTagResponse, error)

GlanceDeleteTag 删除标签(OpenStack原生)

该接口主要用于删除某个镜像的自定义标签,通过该接口,用户可以将私有镜像中一些不用的标签删除。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceDeleteTagInvoker added in v0.0.90

func (c *ImsClient) GlanceDeleteTagInvoker(request *model.GlanceDeleteTagRequest) *GlanceDeleteTagInvoker

GlanceDeleteTagInvoker 删除标签(OpenStack原生)

func (*ImsClient) GlanceListImageMemberSchemas

GlanceListImageMemberSchemas 查询镜像成员列表视图(OpenStack原生)

该接口主要用于查询镜像成员列表视图,通过视图,用户可以了解到镜像成员包含哪些属性,同时也可以了解每个属性的数据类型。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceListImageMemberSchemasInvoker added in v0.0.90

func (c *ImsClient) GlanceListImageMemberSchemasInvoker(request *model.GlanceListImageMemberSchemasRequest) *GlanceListImageMemberSchemasInvoker

GlanceListImageMemberSchemasInvoker 查询镜像成员列表视图(OpenStack原生)

func (*ImsClient) GlanceListImageMembers

GlanceListImageMembers 获取镜像成员列表(OpenStack原生)

该接口用于共享镜像过程中,获取接受该镜像的成员列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceListImageMembersInvoker added in v0.0.90

func (c *ImsClient) GlanceListImageMembersInvoker(request *model.GlanceListImageMembersRequest) *GlanceListImageMembersInvoker

GlanceListImageMembersInvoker 获取镜像成员列表(OpenStack原生)

func (*ImsClient) GlanceListImageSchemas

GlanceListImageSchemas 查询镜像列表视图(OpenStack原生)

该接口主要用于查询镜像列表视图,通过该接口用户可以了解到镜像列表的详细情况和数据结构。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceListImageSchemasInvoker added in v0.0.90

func (c *ImsClient) GlanceListImageSchemasInvoker(request *model.GlanceListImageSchemasRequest) *GlanceListImageSchemasInvoker

GlanceListImageSchemasInvoker 查询镜像列表视图(OpenStack原生)

func (*ImsClient) GlanceListImages

func (c *ImsClient) GlanceListImages(request *model.GlanceListImagesRequest) (*model.GlanceListImagesResponse, error)

GlanceListImages 查询镜像列表(OpenStack原生)

获取镜像列表。 使用本接口查询镜像列表时,需要使用分页查询才能返回全部的镜像列表。 分页说明 分页是指返回一组镜像的一个子集,在返回的时候会存在下个子集的链接和首个子集的链接,默认返回的子集中数量为25,用户也可以通过使用limit和marker两个参数自己分页,指定返回子集中需要返回的数量。 响应中的参数first是查询首页的URL。next是查询下一页的URL。当查询镜像列表最后一页时,不存在next。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceListImagesInvoker added in v0.0.90

func (c *ImsClient) GlanceListImagesInvoker(request *model.GlanceListImagesRequest) *GlanceListImagesInvoker

GlanceListImagesInvoker 查询镜像列表(OpenStack原生)

func (*ImsClient) GlanceShowImage

func (c *ImsClient) GlanceShowImage(request *model.GlanceShowImageRequest) (*model.GlanceShowImageResponse, error)

GlanceShowImage 查询镜像详情(OpenStack原生)

查询单个镜像详情,用户可以通过该接口查询单个私有或者公共镜像的详情

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceShowImageInvoker added in v0.0.90

func (c *ImsClient) GlanceShowImageInvoker(request *model.GlanceShowImageRequest) *GlanceShowImageInvoker

GlanceShowImageInvoker 查询镜像详情(OpenStack原生)

func (*ImsClient) GlanceShowImageMember

GlanceShowImageMember 获取镜像成员详情(OpenStack原生)

该接口主要用于镜像共享中查询某个镜像成员的详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceShowImageMemberInvoker added in v0.0.90

func (c *ImsClient) GlanceShowImageMemberInvoker(request *model.GlanceShowImageMemberRequest) *GlanceShowImageMemberInvoker

GlanceShowImageMemberInvoker 获取镜像成员详情(OpenStack原生)

func (*ImsClient) GlanceShowImageMemberSchemas

GlanceShowImageMemberSchemas 查询镜像成员视图(OpenStack原生)

该接口主要用于查询镜像成员视图,通过视图,用户可以了解到镜像成员包含哪些属性,同时也可以了解每个属性的数据类型。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceShowImageMemberSchemasInvoker added in v0.0.90

func (c *ImsClient) GlanceShowImageMemberSchemasInvoker(request *model.GlanceShowImageMemberSchemasRequest) *GlanceShowImageMemberSchemasInvoker

GlanceShowImageMemberSchemasInvoker 查询镜像成员视图(OpenStack原生)

func (*ImsClient) GlanceShowImageSchemas

GlanceShowImageSchemas 查询镜像视图(OpenStack原生)

该接口主要用于查询镜像视图,通过视图,用户可以了解到镜像包含哪些属性,同时也可以了解每个属性的数据类型等。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceShowImageSchemasInvoker added in v0.0.90

func (c *ImsClient) GlanceShowImageSchemasInvoker(request *model.GlanceShowImageSchemasRequest) *GlanceShowImageSchemasInvoker

GlanceShowImageSchemasInvoker 查询镜像视图(OpenStack原生)

func (*ImsClient) GlanceUpdateImage

func (c *ImsClient) GlanceUpdateImage(request *model.GlanceUpdateImageRequest) (*model.GlanceUpdateImageResponse, error)

GlanceUpdateImage 更新镜像信息(OpenStack原生)

修改镜像信息

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceUpdateImageInvoker added in v0.0.90

func (c *ImsClient) GlanceUpdateImageInvoker(request *model.GlanceUpdateImageRequest) *GlanceUpdateImageInvoker

GlanceUpdateImageInvoker 更新镜像信息(OpenStack原生)

func (*ImsClient) GlanceUpdateImageMember

GlanceUpdateImageMember 更新镜像成员状态(OpenStack原生)

用户接受或者拒绝共享镜像时,使用该接口更新镜像成员的状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) GlanceUpdateImageMemberInvoker added in v0.0.90

func (c *ImsClient) GlanceUpdateImageMemberInvoker(request *model.GlanceUpdateImageMemberRequest) *GlanceUpdateImageMemberInvoker

GlanceUpdateImageMemberInvoker 更新镜像成员状态(OpenStack原生)

func (*ImsClient) ImportImageQuick

func (c *ImsClient) ImportImageQuick(request *model.ImportImageQuickRequest) (*model.ImportImageQuickResponse, error)

ImportImageQuick 镜像文件快速导入

使用上传至OBS桶中的超大外部镜像文件制作私有镜像,目前仅支持RAW或ZVHD2格式镜像文件。且要求镜像文件大小不能超过1TB。 由于快速导入功能要求提前转换镜像文件格式为RAW或ZVHD2格式,因此镜像文件小于128GB时推荐您优先使用常规的创建私有镜像的方式。 作为异步接口,调用成功,只是说明后台收到了制作请求,镜像是否制作成功需要通过异步任务查询接口查询该任务的执行状态,具体请参考异步任务查询。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) ImportImageQuickInvoker added in v0.0.90

func (c *ImsClient) ImportImageQuickInvoker(request *model.ImportImageQuickRequest) *ImportImageQuickInvoker

ImportImageQuickInvoker 镜像文件快速导入

func (*ImsClient) ListImageByTags

func (c *ImsClient) ListImageByTags(request *model.ListImageByTagsRequest) (*model.ListImageByTagsResponse, error)

ListImageByTags 按标签查询镜像

该接口用于按标签或其他条件对镜像进行过滤或者计数使用。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) ListImageByTagsInvoker added in v0.0.90

func (c *ImsClient) ListImageByTagsInvoker(request *model.ListImageByTagsRequest) *ListImageByTagsInvoker

ListImageByTagsInvoker 按标签查询镜像

func (*ImsClient) ListImageTags

func (c *ImsClient) ListImageTags(request *model.ListImageTagsRequest) (*model.ListImageTagsResponse, error)

ListImageTags 查询镜像标签

该接口用于为查询指定镜像上的所有标签

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) ListImageTagsInvoker added in v0.0.90

func (c *ImsClient) ListImageTagsInvoker(request *model.ListImageTagsRequest) *ListImageTagsInvoker

ListImageTagsInvoker 查询镜像标签

func (*ImsClient) ListImages

func (c *ImsClient) ListImages(request *model.ListImagesRequest) (*model.ListImagesResponse, error)

ListImages 查询镜像列表

根据不同条件查询镜像列表信息。 可以在URI后面用‘?’和‘&’添加不同的查询条件组合,请参考请求样例。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) ListImagesInvoker added in v0.0.90

func (c *ImsClient) ListImagesInvoker(request *model.ListImagesRequest) *ListImagesInvoker

ListImagesInvoker 查询镜像列表

func (*ImsClient) ListImagesTags

func (c *ImsClient) ListImagesTags(request *model.ListImagesTagsRequest) (*model.ListImagesTagsResponse, error)

ListImagesTags 查询租户所有镜像标签

该接口用于为查询租户的所有镜像上的标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) ListImagesTagsInvoker added in v0.0.90

func (c *ImsClient) ListImagesTagsInvoker(request *model.ListImagesTagsRequest) *ListImagesTagsInvoker

ListImagesTagsInvoker 查询租户所有镜像标签

func (*ImsClient) ListOsVersions

func (c *ImsClient) ListOsVersions(request *model.ListOsVersionsRequest) (*model.ListOsVersionsResponse, error)

ListOsVersions 查询镜像支持的OS列表

查询当前区域弹性云服务器的OS兼容性列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) ListOsVersionsInvoker added in v0.0.90

func (c *ImsClient) ListOsVersionsInvoker(request *model.ListOsVersionsRequest) *ListOsVersionsInvoker

ListOsVersionsInvoker 查询镜像支持的OS列表

func (*ImsClient) ListTags

func (c *ImsClient) ListTags(request *model.ListTagsRequest) (*model.ListTagsResponse, error)

ListTags 按条件查询租户镜像标签列表

根据不同条件查询镜像标签列表信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) ListTagsInvoker added in v0.0.90

func (c *ImsClient) ListTagsInvoker(request *model.ListTagsRequest) *ListTagsInvoker

ListTagsInvoker 按条件查询租户镜像标签列表

func (*ImsClient) ListVersions added in v0.0.81

func (c *ImsClient) ListVersions(request *model.ListVersionsRequest) (*model.ListVersionsResponse, error)

ListVersions 查询版本列表(OpenStack原生)

查询API的版本信息列表,包括API的版本兼容性、域名信息等。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) ListVersionsInvoker added in v0.0.90

func (c *ImsClient) ListVersionsInvoker(request *model.ListVersionsRequest) *ListVersionsInvoker

ListVersionsInvoker 查询版本列表(OpenStack原生)

func (*ImsClient) RegisterImage

func (c *ImsClient) RegisterImage(request *model.RegisterImageRequest) (*model.RegisterImageResponse, error)

RegisterImage 注册镜像

该接口用于将镜像文件注册为云平台未初始化的私有镜像。 使用该接口注册镜像的具体步骤如下: 将镜像文件上传到OBS个人桶中。具体操作请参见《对象存储服务客户端指南(OBS Browser)》或《对象存储服务API参考》。 使用创建镜像元数据接口创建镜像元数据。调用成功后,保存该镜像的ID。创建镜像元数据请参考创建镜像元数据(OpenStack原生)。 根据2得到的镜像ID,使用注册镜像接口注册OBS桶中的镜像文件。 注册镜像接口作为异步接口,调用成功后,说明后台收到了注册请求。需要根据镜像ID查询该镜像状态验证镜像注册是否成功。当镜像状态变为“active”时,表示镜像注册成功。 如何查询异步任务,请参见异步任务查询。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) RegisterImageInvoker added in v0.0.90

func (c *ImsClient) RegisterImageInvoker(request *model.RegisterImageRequest) *RegisterImageInvoker

RegisterImageInvoker 注册镜像

func (*ImsClient) ShowImageQuota

func (c *ImsClient) ShowImageQuota(request *model.ShowImageQuotaRequest) (*model.ShowImageQuotaResponse, error)

ShowImageQuota 查询镜像配额

该接口为扩展接口,主要用于查询租户在当前Region的私有镜像的配额数量。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) ShowImageQuotaInvoker added in v0.0.90

func (c *ImsClient) ShowImageQuotaInvoker(request *model.ShowImageQuotaRequest) *ShowImageQuotaInvoker

ShowImageQuotaInvoker 查询镜像配额

func (*ImsClient) ShowJob

func (c *ImsClient) ShowJob(request *model.ShowJobRequest) (*model.ShowJobResponse, error)

ShowJob 查询job状态

该接口为扩展接口,主要用于查询异步接口执行情况,比如查询导出镜像任务的执行状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) ShowJobInvoker added in v0.0.90

func (c *ImsClient) ShowJobInvoker(request *model.ShowJobRequest) *ShowJobInvoker

ShowJobInvoker 查询job状态

func (*ImsClient) ShowJobProgress added in v0.0.107

func (c *ImsClient) ShowJobProgress(request *model.ShowJobProgressRequest) (*model.ShowJobProgressResponse, error)

ShowJobProgress 异步任务进度查询

该接口为扩展接口,主要用于查询异步任务进度。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) ShowJobProgressInvoker added in v0.0.107

func (c *ImsClient) ShowJobProgressInvoker(request *model.ShowJobProgressRequest) *ShowJobProgressInvoker

ShowJobProgressInvoker 异步任务进度查询

func (*ImsClient) ShowVersion added in v0.0.81

func (c *ImsClient) ShowVersion(request *model.ShowVersionRequest) (*model.ShowVersionResponse, error)

ShowVersion 查询版本列表(OpenStack原生)

查询API的版本信息列表,包括API的版本兼容性、域名信息等。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) ShowVersionInvoker added in v0.0.90

func (c *ImsClient) ShowVersionInvoker(request *model.ShowVersionRequest) *ShowVersionInvoker

ShowVersionInvoker 查询版本列表(OpenStack原生)

func (*ImsClient) UpdateImage

func (c *ImsClient) UpdateImage(request *model.UpdateImageRequest) (*model.UpdateImageResponse, error)

UpdateImage 更新镜像信息

更新镜像信息接口,主要用于镜像属性的修改。当前仅支持可用(active)状态的镜像更新相关信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*ImsClient) UpdateImageInvoker added in v0.0.90

func (c *ImsClient) UpdateImageInvoker(request *model.UpdateImageRequest) *UpdateImageInvoker

UpdateImageInvoker 更新镜像信息

type ListImageByTagsInvoker added in v0.0.90

type ListImageByTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListImageByTagsInvoker) Invoke added in v0.0.90

type ListImageTagsInvoker added in v0.0.90

type ListImageTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListImageTagsInvoker) Invoke added in v0.0.90

type ListImagesInvoker added in v0.0.90

type ListImagesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListImagesInvoker) Invoke added in v0.0.90

type ListImagesTagsInvoker added in v0.0.90

type ListImagesTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListImagesTagsInvoker) Invoke added in v0.0.90

type ListOsVersionsInvoker added in v0.0.90

type ListOsVersionsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListOsVersionsInvoker) Invoke added in v0.0.90

type ListTagsInvoker added in v0.0.90

type ListTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListTagsInvoker) Invoke added in v0.0.90

func (i *ListTagsInvoker) Invoke() (*model.ListTagsResponse, error)

type ListVersionsInvoker added in v0.0.90

type ListVersionsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListVersionsInvoker) Invoke added in v0.0.90

type RegisterImageInvoker added in v0.0.90

type RegisterImageInvoker struct {
	*invoker.BaseInvoker
}

func (*RegisterImageInvoker) Invoke added in v0.0.90

type ShowImageQuotaInvoker added in v0.0.90

type ShowImageQuotaInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowImageQuotaInvoker) Invoke added in v0.0.90

type ShowJobInvoker added in v0.0.90

type ShowJobInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowJobInvoker) Invoke added in v0.0.90

func (i *ShowJobInvoker) Invoke() (*model.ShowJobResponse, error)

type ShowJobProgressInvoker added in v0.0.107

type ShowJobProgressInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowJobProgressInvoker) Invoke added in v0.0.107

type ShowVersionInvoker added in v0.0.90

type ShowVersionInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowVersionInvoker) Invoke added in v0.0.90

type UpdateImageInvoker added in v0.0.90

type UpdateImageInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateImageInvoker) 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