apis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRegistryNameRequest

type CheckRegistryNameRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 待验证的注册表名。  */
	RegistryName string `json:"registryName"`
}

func NewCheckRegistryNameRequest

func NewCheckRegistryNameRequest(
	regionId string,
	registryName string,
) *CheckRegistryNameRequest

* param regionId: Region ID (Required) * param registryName: 待验证的注册表名。 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCheckRegistryNameRequestWithAllParams

func NewCheckRegistryNameRequestWithAllParams(
	regionId string,
	registryName string,
) *CheckRegistryNameRequest

* param regionId: Region ID (Required) * param registryName: 待验证的注册表名。 (Required)

func NewCheckRegistryNameRequestWithoutParam

func NewCheckRegistryNameRequestWithoutParam() *CheckRegistryNameRequest

This constructor has better compatible ability when API parameters changed

func (CheckRegistryNameRequest) GetRegionId

func (r CheckRegistryNameRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CheckRegistryNameRequest) SetRegionId

func (r *CheckRegistryNameRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*CheckRegistryNameRequest) SetRegistryName

func (r *CheckRegistryNameRequest) SetRegistryName(registryName string)

param registryName: 待验证的注册表名。(Required)

type CheckRegistryNameResponse

type CheckRegistryNameResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    CheckRegistryNameResult `json:"result"`
}

type CheckRegistryNameResult

type CheckRegistryNameResult struct {
	Code   int    `json:"code"`
	Reason string `json:"reason"`
}

type CheckRepositoryNameRequest

type CheckRepositoryNameRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 注册表名。  */
	RegistryName string `json:"registryName"`

	/* 待验证的镜像仓库名。  */
	RepositoryName string `json:"repositoryName"`
}

func NewCheckRepositoryNameRequest

func NewCheckRepositoryNameRequest(
	regionId string,
	registryName string,
	repositoryName string,
) *CheckRepositoryNameRequest

* param regionId: Region ID (Required) * param registryName: 注册表名。 (Required) * param repositoryName: 待验证的镜像仓库名。 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCheckRepositoryNameRequestWithAllParams

func NewCheckRepositoryNameRequestWithAllParams(
	regionId string,
	registryName string,
	repositoryName string,
) *CheckRepositoryNameRequest

* param regionId: Region ID (Required) * param registryName: 注册表名。 (Required) * param repositoryName: 待验证的镜像仓库名。 (Required)

func NewCheckRepositoryNameRequestWithoutParam

func NewCheckRepositoryNameRequestWithoutParam() *CheckRepositoryNameRequest

This constructor has better compatible ability when API parameters changed

func (CheckRepositoryNameRequest) GetRegionId

func (r CheckRepositoryNameRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CheckRepositoryNameRequest) SetRegionId

func (r *CheckRepositoryNameRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*CheckRepositoryNameRequest) SetRegistryName

func (r *CheckRepositoryNameRequest) SetRegistryName(registryName string)

param registryName: 注册表名。(Required)

func (*CheckRepositoryNameRequest) SetRepositoryName

func (r *CheckRepositoryNameRequest) SetRepositoryName(repositoryName string)

param repositoryName: 待验证的镜像仓库名。(Required)

type CheckRepositoryNameResponse

type CheckRepositoryNameResponse struct {
	RequestID string                    `json:"requestId"`
	Error     core.ErrorResponse        `json:"error"`
	Result    CheckRepositoryNameResult `json:"result"`
}

type CheckRepositoryNameResult

type CheckRepositoryNameResult struct {
	Code   int    `json:"code"`
	Reason string `json:"reason"`
}

type CreateRegistryRequest

type CreateRegistryRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 用户定义的registry名称。<br> DNS兼容registry名称规则如下:
	<br> 不可为空,且不能超过32字符 <br> 以小写字母开始和结尾,支持使用小写字母、数字、中划线(-)
	*/
	RegistryName string `json:"registryName"`

	/* 注册表描述,<a href="https://www.jdcloud.com/help/detail/3870/isCatalog/1">参考公共参数规范</a>。
	(Optional) */
	Description *string `json:"description"`
}

func NewCreateRegistryRequest

func NewCreateRegistryRequest(
	regionId string,
	registryName string,
) *CreateRegistryRequest

* param regionId: Region ID (Required) * param registryName: 用户定义的registry名称。<br> DNS兼容registry名称规则如下: <br> 不可为空,且不能超过32字符 <br> 以小写字母开始和结尾,支持使用小写字母、数字、中划线(-) (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateRegistryRequestWithAllParams

func NewCreateRegistryRequestWithAllParams(
	regionId string,
	registryName string,
	description *string,
) *CreateRegistryRequest

* param regionId: Region ID (Required) * param registryName: 用户定义的registry名称。<br> DNS兼容registry名称规则如下: <br> 不可为空,且不能超过32字符 <br> 以小写字母开始和结尾,支持使用小写字母、数字、中划线(-) (Required) * param description: 注册表描述,<a href="https://www.jdcloud.com/help/detail/3870/isCatalog/1">参考公共参数规范</a>。 (Optional)

func NewCreateRegistryRequestWithoutParam

func NewCreateRegistryRequestWithoutParam() *CreateRegistryRequest

This constructor has better compatible ability when API parameters changed

func (CreateRegistryRequest) GetRegionId

func (r CreateRegistryRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateRegistryRequest) SetDescription

func (r *CreateRegistryRequest) SetDescription(description string)
param description: 注册表描述,<a href="https://www.jdcloud.com/help/detail/3870/isCatalog/1">参考公共参数规范</a>。

(Optional)

func (*CreateRegistryRequest) SetRegionId

func (r *CreateRegistryRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*CreateRegistryRequest) SetRegistryName

func (r *CreateRegistryRequest) SetRegistryName(registryName string)
param registryName: 用户定义的registry名称。<br> DNS兼容registry名称规则如下:
<br> 不可为空,且不能超过32字符 <br> 以小写字母开始和结尾,支持使用小写字母、数字、中划线(-)

(Required)

type CreateRegistryResponse

type CreateRegistryResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    CreateRegistryResult `json:"result"`
}

type CreateRegistryResult

type CreateRegistryResult struct {
	Registry cr.Registry `json:"registry"`
}

type CreateRepositoryRequest

type CreateRepositoryRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 注册表名称  */
	RegistryName string `json:"registryName"`

	/* 镜像仓库名称。
	可以专有模式如默认命名空间nginx-web-app;或者和命名空间一起将多个仓库聚集在一起如 project-a/nginx-web-app。
	*/
	RepositoryName string `json:"repositoryName"`

	/* 注册表描述,<a href="https://www.jdcloud.com/help/detail/3870/isCatalog/1">参考公共参数规范</a>。
	(Optional) */
	Description *string `json:"description"`
}

func NewCreateRepositoryRequest

func NewCreateRepositoryRequest(
	regionId string,
	registryName string,
	repositoryName string,
) *CreateRepositoryRequest
  • param regionId: Region ID (Required)
  • param registryName: 注册表名称 (Required)
  • param repositoryName: 镜像仓库名称。

可以专有模式如默认命名空间nginx-web-app;或者和命名空间一起将多个仓库聚集在一起如 project-a/nginx-web-app。

(Required)
*
* @Deprecated, not compatible when mandatory parameters changed

func NewCreateRepositoryRequestWithAllParams

func NewCreateRepositoryRequestWithAllParams(
	regionId string,
	registryName string,
	repositoryName string,
	description *string,
) *CreateRepositoryRequest
  • param regionId: Region ID (Required)
  • param registryName: 注册表名称 (Required)
  • param repositoryName: 镜像仓库名称。

可以专有模式如默认命名空间nginx-web-app;或者和命名空间一起将多个仓库聚集在一起如 project-a/nginx-web-app。

(Required)
* param description: 注册表描述,<a href="https://www.jdcloud.com/help/detail/3870/isCatalog/1">参考公共参数规范</a>。
(Optional)

func NewCreateRepositoryRequestWithoutParam

func NewCreateRepositoryRequestWithoutParam() *CreateRepositoryRequest

This constructor has better compatible ability when API parameters changed

func (CreateRepositoryRequest) GetRegionId

func (r CreateRepositoryRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateRepositoryRequest) SetDescription

func (r *CreateRepositoryRequest) SetDescription(description string)
param description: 注册表描述,<a href="https://www.jdcloud.com/help/detail/3870/isCatalog/1">参考公共参数规范</a>。

(Optional)

func (*CreateRepositoryRequest) SetRegionId

func (r *CreateRepositoryRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*CreateRepositoryRequest) SetRegistryName

func (r *CreateRepositoryRequest) SetRegistryName(registryName string)

param registryName: 注册表名称(Required)

func (*CreateRepositoryRequest) SetRepositoryName

func (r *CreateRepositoryRequest) SetRepositoryName(repositoryName string)
param repositoryName: 镜像仓库名称。

可以专有模式如默认命名空间nginx-web-app;或者和命名空间一起将多个仓库聚集在一起如 project-a/nginx-web-app。 (Required)

type CreateRepositoryResponse

type CreateRepositoryResponse struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    CreateRepositoryResult `json:"result"`
}

type CreateRepositoryResult

type CreateRepositoryResult struct {
	Repository cr.RepositoryShort `json:"repository"`
}

type DeleteImageRequest

type DeleteImageRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 注册表名称  */
	RegistryName string `json:"registryName"`

	/* 镜像仓库表名称  */
	RepositoryName string `json:"repositoryName"`

	/* sha256哈希,image manifest的digest. (Optional) */
	ImageDigest *string `json:"imageDigest"`

	/* image使用的tag (Optional) */
	ImageTag *string `json:"imageTag"`

	/* 枚举中的一个值,如 tagged 和 untagged. (Optional) */
	ImageTagStatus *string `json:"imageTagStatus"`
}

func NewDeleteImageRequest

func NewDeleteImageRequest(
	regionId string,
	registryName string,
	repositoryName string,
) *DeleteImageRequest

* param regionId: Region ID (Required) * param registryName: 注册表名称 (Required) * param repositoryName: 镜像仓库表名称 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteImageRequestWithAllParams

func NewDeleteImageRequestWithAllParams(
	regionId string,
	registryName string,
	repositoryName string,
	imageDigest *string,
	imageTag *string,
	imageTagStatus *string,
) *DeleteImageRequest

* param regionId: Region ID (Required) * param registryName: 注册表名称 (Required) * param repositoryName: 镜像仓库表名称 (Required) * param imageDigest: sha256哈希,image manifest的digest. (Optional) * param imageTag: image使用的tag (Optional) * param imageTagStatus: 枚举中的一个值,如 tagged 和 untagged. (Optional)

func NewDeleteImageRequestWithoutParam

func NewDeleteImageRequestWithoutParam() *DeleteImageRequest

This constructor has better compatible ability when API parameters changed

func (DeleteImageRequest) GetRegionId

func (r DeleteImageRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteImageRequest) SetImageDigest

func (r *DeleteImageRequest) SetImageDigest(imageDigest string)

param imageDigest: sha256哈希,image manifest的digest.(Optional)

func (*DeleteImageRequest) SetImageTag

func (r *DeleteImageRequest) SetImageTag(imageTag string)

param imageTag: image使用的tag(Optional)

func (*DeleteImageRequest) SetImageTagStatus

func (r *DeleteImageRequest) SetImageTagStatus(imageTagStatus string)

param imageTagStatus: 枚举中的一个值,如 tagged 和 untagged.(Optional)

func (*DeleteImageRequest) SetRegionId

func (r *DeleteImageRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DeleteImageRequest) SetRegistryName

func (r *DeleteImageRequest) SetRegistryName(registryName string)

param registryName: 注册表名称(Required)

func (*DeleteImageRequest) SetRepositoryName

func (r *DeleteImageRequest) SetRepositoryName(repositoryName string)

param repositoryName: 镜像仓库表名称(Required)

type DeleteImageResponse

type DeleteImageResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    DeleteImageResult  `json:"result"`
}

type DeleteImageResult

type DeleteImageResult struct {
}

type DeleteRegistryRequest

type DeleteRegistryRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 注册表名称  */
	RegistryName string `json:"registryName"`
}

func NewDeleteRegistryRequest

func NewDeleteRegistryRequest(
	regionId string,
	registryName string,
) *DeleteRegistryRequest

* param regionId: Region ID (Required) * param registryName: 注册表名称 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteRegistryRequestWithAllParams

func NewDeleteRegistryRequestWithAllParams(
	regionId string,
	registryName string,
) *DeleteRegistryRequest

* param regionId: Region ID (Required) * param registryName: 注册表名称 (Required)

func NewDeleteRegistryRequestWithoutParam

func NewDeleteRegistryRequestWithoutParam() *DeleteRegistryRequest

This constructor has better compatible ability when API parameters changed

func (DeleteRegistryRequest) GetRegionId

func (r DeleteRegistryRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteRegistryRequest) SetRegionId

func (r *DeleteRegistryRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DeleteRegistryRequest) SetRegistryName

func (r *DeleteRegistryRequest) SetRegistryName(registryName string)

param registryName: 注册表名称(Required)

type DeleteRegistryResponse

type DeleteRegistryResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    DeleteRegistryResult `json:"result"`
}

type DeleteRegistryResult

type DeleteRegistryResult struct {
}

type DeleteRepositoryRequest

type DeleteRepositoryRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 注册表名称  */
	RegistryName string `json:"registryName"`

	/* 镜像仓库名称  */
	RepositoryName string `json:"repositoryName"`
}

func NewDeleteRepositoryRequest

func NewDeleteRepositoryRequest(
	regionId string,
	registryName string,
	repositoryName string,
) *DeleteRepositoryRequest

* param regionId: Region ID (Required) * param registryName: 注册表名称 (Required) * param repositoryName: 镜像仓库名称 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteRepositoryRequestWithAllParams

func NewDeleteRepositoryRequestWithAllParams(
	regionId string,
	registryName string,
	repositoryName string,
) *DeleteRepositoryRequest

* param regionId: Region ID (Required) * param registryName: 注册表名称 (Required) * param repositoryName: 镜像仓库名称 (Required)

func NewDeleteRepositoryRequestWithoutParam

func NewDeleteRepositoryRequestWithoutParam() *DeleteRepositoryRequest

This constructor has better compatible ability when API parameters changed

func (DeleteRepositoryRequest) GetRegionId

func (r DeleteRepositoryRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteRepositoryRequest) SetRegionId

func (r *DeleteRepositoryRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DeleteRepositoryRequest) SetRegistryName

func (r *DeleteRepositoryRequest) SetRegistryName(registryName string)

param registryName: 注册表名称(Required)

func (*DeleteRepositoryRequest) SetRepositoryName

func (r *DeleteRepositoryRequest) SetRepositoryName(repositoryName string)

param repositoryName: 镜像仓库名称(Required)

type DeleteRepositoryResponse

type DeleteRepositoryResponse struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    DeleteRepositoryResult `json:"result"`
}

type DeleteRepositoryResult

type DeleteRepositoryResult struct {
}

type DescribeAuthorizationTokensRequest

type DescribeAuthorizationTokensRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 注册表名称  */
	RegistryName string `json:"registryName"`

	/* token - 令牌 ID,支持多个
	(Optional) */
	Filters []common.Filter `json:"filters"`

	/* 页码;默认为1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为20;取值范围[10, 100] (Optional) */
	PageSize *int `json:"pageSize"`
}

func NewDescribeAuthorizationTokensRequest

func NewDescribeAuthorizationTokensRequest(
	regionId string,
	registryName string,
) *DescribeAuthorizationTokensRequest

* param regionId: 地域 ID (Required) * param registryName: 注册表名称 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeAuthorizationTokensRequestWithAllParams

func NewDescribeAuthorizationTokensRequestWithAllParams(
	regionId string,
	registryName string,
	filters []common.Filter,
	pageNumber *int,
	pageSize *int,
) *DescribeAuthorizationTokensRequest

* param regionId: 地域 ID (Required) * param registryName: 注册表名称 (Required) * param filters: token - 令牌 ID,支持多个 (Optional) * param pageNumber: 页码;默认为1 (Optional) * param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)

func NewDescribeAuthorizationTokensRequestWithoutParam

func NewDescribeAuthorizationTokensRequestWithoutParam() *DescribeAuthorizationTokensRequest

This constructor has better compatible ability when API parameters changed

func (DescribeAuthorizationTokensRequest) GetRegionId

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeAuthorizationTokensRequest) SetFilters

func (r *DescribeAuthorizationTokensRequest) SetFilters(filters []common.Filter)
param filters: token - 令牌 ID,支持多个

(Optional)

func (*DescribeAuthorizationTokensRequest) SetPageNumber

func (r *DescribeAuthorizationTokensRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1(Optional)

func (*DescribeAuthorizationTokensRequest) SetPageSize

func (r *DescribeAuthorizationTokensRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)

func (*DescribeAuthorizationTokensRequest) SetRegionId

func (r *DescribeAuthorizationTokensRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

func (*DescribeAuthorizationTokensRequest) SetRegistryName

func (r *DescribeAuthorizationTokensRequest) SetRegistryName(registryName string)

param registryName: 注册表名称(Required)

type DescribeAuthorizationTokensResponse

type DescribeAuthorizationTokensResponse struct {
	RequestID string                            `json:"requestId"`
	Error     core.ErrorResponse                `json:"error"`
	Result    DescribeAuthorizationTokensResult `json:"result"`
}

type DescribeAuthorizationTokensResult

type DescribeAuthorizationTokensResult struct {
	AuthorizationTokens []cr.AuthorizationData `json:"authorizationTokens"`
	TotalCount          int                    `json:"totalCount"`
}

type DescribeImagesRequest

type DescribeImagesRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* registryName - 镜像仓储名称
	repositoryName - 镜像库名称
	imageDigest - 镜像哈希值
	imageTag - 镜像标签
	tagStatus - 打标TAGGED或没打标UNTAGGED
	 (Optional) */
	Filters []common.Filter `json:"filters"`

	/* 页码;默认为1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为20;取值范围[10, 100] (Optional) */
	PageSize *int `json:"pageSize"`
}

func NewDescribeImagesRequest

func NewDescribeImagesRequest(
	regionId string,
) *DescribeImagesRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeImagesRequestWithAllParams

func NewDescribeImagesRequestWithAllParams(
	regionId string,
	filters []common.Filter,
	pageNumber *int,
	pageSize *int,
) *DescribeImagesRequest
  • param regionId: Region ID (Required)
  • param filters: registryName - 镜像仓储名称

repositoryName - 镜像库名称 imageDigest - 镜像哈希值 imageTag - 镜像标签 tagStatus - 打标TAGGED或没打标UNTAGGED

(Optional)
* param pageNumber: 页码;默认为1 (Optional)
* param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)

func NewDescribeImagesRequestWithoutParam

func NewDescribeImagesRequestWithoutParam() *DescribeImagesRequest

This constructor has better compatible ability when API parameters changed

func (DescribeImagesRequest) GetRegionId

func (r DescribeImagesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeImagesRequest) SetFilters

func (r *DescribeImagesRequest) SetFilters(filters []common.Filter)
param filters: registryName - 镜像仓储名称

repositoryName - 镜像库名称 imageDigest - 镜像哈希值 imageTag - 镜像标签 tagStatus - 打标TAGGED或没打标UNTAGGED (Optional)

func (*DescribeImagesRequest) SetPageNumber

func (r *DescribeImagesRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1(Optional)

func (*DescribeImagesRequest) SetPageSize

func (r *DescribeImagesRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)

func (*DescribeImagesRequest) SetRegionId

func (r *DescribeImagesRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeImagesResponse

type DescribeImagesResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    DescribeImagesResult `json:"result"`
}

type DescribeImagesResult

type DescribeImagesResult struct {
	ImageDetails []cr.ImageDetail `json:"imageDetails"`
	TotalCount   int              `json:"totalCount"`
}

type DescribeQuotasRequest

type DescribeQuotasRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* resourceTypes - 资源类型,暂时只支持 [registry, repository],支持同时查询两种配额。
	(Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeQuotasRequest

func NewDescribeQuotasRequest(
	regionId string,
) *DescribeQuotasRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeQuotasRequestWithAllParams

func NewDescribeQuotasRequestWithAllParams(
	regionId string,
	filters []common.Filter,
) *DescribeQuotasRequest

* param regionId: Region ID (Required) * param filters: resourceTypes - 资源类型,暂时只支持 [registry, repository],支持同时查询两种配额。 (Optional)

func NewDescribeQuotasRequestWithoutParam

func NewDescribeQuotasRequestWithoutParam() *DescribeQuotasRequest

This constructor has better compatible ability when API parameters changed

func (DescribeQuotasRequest) GetRegionId

func (r DescribeQuotasRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeQuotasRequest) SetFilters

func (r *DescribeQuotasRequest) SetFilters(filters []common.Filter)
param filters: resourceTypes - 资源类型,暂时只支持 [registry, repository],支持同时查询两种配额。

(Optional)

func (*DescribeQuotasRequest) SetRegionId

func (r *DescribeQuotasRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeQuotasResponse

type DescribeQuotasResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    DescribeQuotasResult `json:"result"`
}

type DescribeQuotasResult

type DescribeQuotasResult struct {
	Quotas []cr.Quota `json:"quotas"`
}

type DescribeRegistriesRequest

type DescribeRegistriesRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`
}

func NewDescribeRegistriesRequest

func NewDescribeRegistriesRequest(
	regionId string,
) *DescribeRegistriesRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeRegistriesRequestWithAllParams

func NewDescribeRegistriesRequestWithAllParams(
	regionId string,
) *DescribeRegistriesRequest

* param regionId: Region ID (Required)

func NewDescribeRegistriesRequestWithoutParam

func NewDescribeRegistriesRequestWithoutParam() *DescribeRegistriesRequest

This constructor has better compatible ability when API parameters changed

func (DescribeRegistriesRequest) GetRegionId

func (r DescribeRegistriesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeRegistriesRequest) SetRegionId

func (r *DescribeRegistriesRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeRegistriesResponse

type DescribeRegistriesResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    DescribeRegistriesResult `json:"result"`
}

type DescribeRegistriesResult

type DescribeRegistriesResult struct {
	Registries []cr.Registry `json:"registries"`
}

type DescribeRegistryRequest

type DescribeRegistryRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 注册表名称  */
	RegistryName string `json:"registryName"`
}

func NewDescribeRegistryRequest

func NewDescribeRegistryRequest(
	regionId string,
	registryName string,
) *DescribeRegistryRequest

* param regionId: Region ID (Required) * param registryName: 注册表名称 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeRegistryRequestWithAllParams

func NewDescribeRegistryRequestWithAllParams(
	regionId string,
	registryName string,
) *DescribeRegistryRequest

* param regionId: Region ID (Required) * param registryName: 注册表名称 (Required)

func NewDescribeRegistryRequestWithoutParam

func NewDescribeRegistryRequestWithoutParam() *DescribeRegistryRequest

This constructor has better compatible ability when API parameters changed

func (DescribeRegistryRequest) GetRegionId

func (r DescribeRegistryRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeRegistryRequest) SetRegionId

func (r *DescribeRegistryRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DescribeRegistryRequest) SetRegistryName

func (r *DescribeRegistryRequest) SetRegistryName(registryName string)

param registryName: 注册表名称(Required)

type DescribeRegistryResponse

type DescribeRegistryResponse struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    DescribeRegistryResult `json:"result"`
}

type DescribeRegistryResult

type DescribeRegistryResult struct {
	Registry cr.Registry `json:"registry"`
}

type DescribeRepositoriesRequest

type DescribeRepositoriesRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* name - 仓库名称,模糊匹配,支持单个
	(Optional) */
	Filters []common.Filter `json:"filters"`

	/* 页码;默认为1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为20;取值范围[10, 100] (Optional) */
	PageSize *int `json:"pageSize"`
}

func NewDescribeRepositoriesRequest

func NewDescribeRepositoriesRequest(
	regionId string,
) *DescribeRepositoriesRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeRepositoriesRequestWithAllParams

func NewDescribeRepositoriesRequestWithAllParams(
	regionId string,
	filters []common.Filter,
	pageNumber *int,
	pageSize *int,
) *DescribeRepositoriesRequest

* param regionId: Region ID (Required) * param filters: name - 仓库名称,模糊匹配,支持单个 (Optional) * param pageNumber: 页码;默认为1 (Optional) * param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)

func NewDescribeRepositoriesRequestWithoutParam

func NewDescribeRepositoriesRequestWithoutParam() *DescribeRepositoriesRequest

This constructor has better compatible ability when API parameters changed

func (DescribeRepositoriesRequest) GetRegionId

func (r DescribeRepositoriesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeRepositoriesRequest) SetFilters

func (r *DescribeRepositoriesRequest) SetFilters(filters []common.Filter)
param filters: name - 仓库名称,模糊匹配,支持单个

(Optional)

func (*DescribeRepositoriesRequest) SetPageNumber

func (r *DescribeRepositoriesRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1(Optional)

func (*DescribeRepositoriesRequest) SetPageSize

func (r *DescribeRepositoriesRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)

func (*DescribeRepositoriesRequest) SetRegionId

func (r *DescribeRepositoriesRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeRepositoriesResponse

type DescribeRepositoriesResponse struct {
	RequestID string                     `json:"requestId"`
	Error     core.ErrorResponse         `json:"error"`
	Result    DescribeRepositoriesResult `json:"result"`
}

type DescribeRepositoriesResult

type DescribeRepositoriesResult struct {
	Repositories []cr.Repository `json:"repositories"`
	TotalCount   int             `json:"totalCount"`
}

type GetAuthorizationTokenRequest

type GetAuthorizationTokenRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 注册表名称  */
	RegistryName string `json:"registryName"`

	/* issue新token的过期时间, 可选参数为新生成令牌的过期时间,最大值为24小时,最小值为1小时,为空则默认为12小时过期时间。
	(Optional) */
	ExpiredAfterHours *int `json:"expiredAfterHours"`
}

func NewGetAuthorizationTokenRequest

func NewGetAuthorizationTokenRequest(
	regionId string,
	registryName string,
) *GetAuthorizationTokenRequest

* param regionId: 地域 ID (Required) * param registryName: 注册表名称 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGetAuthorizationTokenRequestWithAllParams

func NewGetAuthorizationTokenRequestWithAllParams(
	regionId string,
	registryName string,
	expiredAfterHours *int,
) *GetAuthorizationTokenRequest

* param regionId: 地域 ID (Required) * param registryName: 注册表名称 (Required) * param expiredAfterHours: issue新token的过期时间, 可选参数为新生成令牌的过期时间,最大值为24小时,最小值为1小时,为空则默认为12小时过期时间。 (Optional)

func NewGetAuthorizationTokenRequestWithoutParam

func NewGetAuthorizationTokenRequestWithoutParam() *GetAuthorizationTokenRequest

This constructor has better compatible ability when API parameters changed

func (GetAuthorizationTokenRequest) GetRegionId

func (r GetAuthorizationTokenRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetAuthorizationTokenRequest) SetExpiredAfterHours

func (r *GetAuthorizationTokenRequest) SetExpiredAfterHours(expiredAfterHours int)
param expiredAfterHours: issue新token的过期时间, 可选参数为新生成令牌的过期时间,最大值为24小时,最小值为1小时,为空则默认为12小时过期时间。

(Optional)

func (*GetAuthorizationTokenRequest) SetRegionId

func (r *GetAuthorizationTokenRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

func (*GetAuthorizationTokenRequest) SetRegistryName

func (r *GetAuthorizationTokenRequest) SetRegistryName(registryName string)

param registryName: 注册表名称(Required)

type GetAuthorizationTokenResponse

type GetAuthorizationTokenResponse struct {
	RequestID string                      `json:"requestId"`
	Error     core.ErrorResponse          `json:"error"`
	Result    GetAuthorizationTokenResult `json:"result"`
}

type GetAuthorizationTokenResult

type GetAuthorizationTokenResult struct {
	AuthorizationToken string `json:"authorizationToken"`
	LoginCmdLine       string `json:"loginCmdLine"`
	ExpiresAt          string `json:"expiresAt"`
}

type ReleaseAuthorizationTokenRequest

type ReleaseAuthorizationTokenRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 注册表名称  */
	RegistryName string `json:"registryName"`

	/* 准备释放的 token ID,功能为指定token释放。 (Optional) */
	AuthorizationToken *string `json:"authorizationToken"`

	/* true 表示强制删除用户当前registry下所有有效token的标志;false 表示删除所有有效token。 (Optional) */
	ForceAll *bool `json:"forceAll"`
}

func NewReleaseAuthorizationTokenRequest

func NewReleaseAuthorizationTokenRequest(
	regionId string,
	registryName string,
) *ReleaseAuthorizationTokenRequest

* param regionId: 地域 ID (Required) * param registryName: 注册表名称 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewReleaseAuthorizationTokenRequestWithAllParams

func NewReleaseAuthorizationTokenRequestWithAllParams(
	regionId string,
	registryName string,
	authorizationToken *string,
	forceAll *bool,
) *ReleaseAuthorizationTokenRequest

* param regionId: 地域 ID (Required) * param registryName: 注册表名称 (Required) * param authorizationToken: 准备释放的 token ID,功能为指定token释放。 (Optional) * param forceAll: true 表示强制删除用户当前registry下所有有效token的标志;false 表示删除所有有效token。 (Optional)

func NewReleaseAuthorizationTokenRequestWithoutParam

func NewReleaseAuthorizationTokenRequestWithoutParam() *ReleaseAuthorizationTokenRequest

This constructor has better compatible ability when API parameters changed

func (ReleaseAuthorizationTokenRequest) GetRegionId

func (r ReleaseAuthorizationTokenRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ReleaseAuthorizationTokenRequest) SetAuthorizationToken

func (r *ReleaseAuthorizationTokenRequest) SetAuthorizationToken(authorizationToken string)

param authorizationToken: 准备释放的 token ID,功能为指定token释放。(Optional)

func (*ReleaseAuthorizationTokenRequest) SetForceAll

func (r *ReleaseAuthorizationTokenRequest) SetForceAll(forceAll bool)

param forceAll: true 表示强制删除用户当前registry下所有有效token的标志;false 表示删除所有有效token。(Optional)

func (*ReleaseAuthorizationTokenRequest) SetRegionId

func (r *ReleaseAuthorizationTokenRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

func (*ReleaseAuthorizationTokenRequest) SetRegistryName

func (r *ReleaseAuthorizationTokenRequest) SetRegistryName(registryName string)

param registryName: 注册表名称(Required)

type ReleaseAuthorizationTokenResponse

type ReleaseAuthorizationTokenResponse struct {
	RequestID string                          `json:"requestId"`
	Error     core.ErrorResponse              `json:"error"`
	Result    ReleaseAuthorizationTokenResult `json:"result"`
}

type ReleaseAuthorizationTokenResult

type ReleaseAuthorizationTokenResult struct {
}

Jump to

Keyboard shortcuts

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