client

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: 4 Imported by: 0

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) CheckRegistryName added in v1.1.0

func (c *CrClient) CheckRegistryName(request *cr.CheckRegistryNameRequest) (*cr.CheckRegistryNameResponse, error)

查询指定注册表名称是否已经存在以及是否符合命名规范。

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