client

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrClient

type CrClient struct {
	core.JDCloudClient
}

func NewCrClient

func NewCrClient(credential *core.Credential) *CrClient

func (*CrClient) CreateRegistry

func (c *CrClient) CreateRegistry(request *cr.CreateRegistryRequest) (*cr.CreateRegistryResponse, error)

通过参数创建注册表。

func (*CrClient) CreateRepository

func (c *CrClient) CreateRepository(request *cr.CreateRepositoryRequest) (*cr.CreateRepositoryResponse, error)
通过参数创建镜像仓库。

仓库名称可以分解为多个路径名,每个名称必须至少包含一个小写字母数字,考虑URL规范。 支持包含段划线或者下划线进行分割,但不允许点'.',多个路径名之间通过("/")连接,总长度不超过256个字符,当前只支持二级目录。

func (*CrClient) DescribeImages

func (c *CrClient) DescribeImages(request *cr.DescribeImagesRequest) (*cr.DescribeImagesResponse, error)

返回指定repository中images的元数据,包括image size, image tags和creation date。

func (*CrClient) DescribeQuotas

func (c *CrClient) DescribeQuotas(request *cr.DescribeQuotasRequest) (*cr.DescribeQuotasResponse, error)

查询配额

func (*CrClient) GetAuthorizationToken

func (c *CrClient) GetAuthorizationToken(request *cr.GetAuthorizationTokenRequest) (*cr.GetAuthorizationTokenResponse, error)
<p>申请12小时有效期的令牌。 使用<code>docker</code> CLI push和pull镜像。</p>

<p><code>authorizationToken</code>为每个registry返回一个base64编码的字符串,解码后<code>docker login</code>命令 可完成指定registry的鉴权。JCR CLI提供<code>jcr get-login</code>进行认证处理。</p>

func (*CrClient) SetConfig

func (c *CrClient) SetConfig(config *core.Config)

func (*CrClient) SetLogger

func (c *CrClient) SetLogger(logger core.Logger)

Jump to

Keyboard shortcuts

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