apis

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRegistryNameRequest added in v1.1.0

type CheckRegistryNameRequest struct {
	core.JDCloudRequest

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

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

func NewCheckRegistryNameRequest added in v1.1.0

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

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

func NewCheckRegistryNameRequestWithAllParams added in v1.1.0

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

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

func NewCheckRegistryNameRequestWithoutParam added in v1.1.0

func NewCheckRegistryNameRequestWithoutParam() *CheckRegistryNameRequest

This constructor has better compatible ability when API parameters changed

func (CheckRegistryNameRequest) GetRegionId added in v1.1.0

func (r CheckRegistryNameRequest) GetRegionId() string

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

func (*CheckRegistryNameRequest) SetRegionId added in v1.1.0

func (r *CheckRegistryNameRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*CheckRegistryNameRequest) SetRegistryName added in v1.1.0

func (r *CheckRegistryNameRequest) SetRegistryName(registryName string)

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

type CheckRegistryNameResponse added in v1.1.0

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

type CheckRegistryNameResult added in v1.1.0

type CheckRegistryNameResult 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 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 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 {
	AuthorizationData cr.AuthorizationData `json:"authorizationData"`
}

Jump to

Keyboard shortcuts

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