client

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 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 ContainerregistryClient

type ContainerregistryClient struct {
	core.JDCloudClient
}

func NewContainerregistryClient

func NewContainerregistryClient(credential *core.Credential) *ContainerregistryClient

func (*ContainerregistryClient) CheckRegistryName

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

func (*ContainerregistryClient) CheckRepositoryName

查询指定镜像仓库名称是否已经存在以及是否符合命名规范。

func (*ContainerregistryClient) CreateRegistry

通过参数创建注册表。

func (*ContainerregistryClient) CreateRepository

通过参数创建镜像仓库。

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

func (*ContainerregistryClient) DeleteImage

删除镜像

imageDigest imageTag imageTagStatus 三者只能且必须传一个。 可根据Tag状态删除Image,例如删除所有tagged的镜像。 digest和tag唯一表征单个镜像,其中imageDigest为sha256哈希,image manifest的digest。 例如 sha256:examplee6d1e504117a17000003d3753086354a38375961f2e665416ef4b1b2f;image使用的tag, 如 "precise"

[MFA enabled]

func (*ContainerregistryClient) DeleteRegistry

删除指定用户下某个 registry. [MFA enabled]

func (*ContainerregistryClient) DeleteRepository

删除指定用户下某个镜像仓库. [MFA enabled]

func (*ContainerregistryClient) DescribeAuthorizationTokens

<p>批量查询令牌。</p>

<p>暂时不支持分页和过滤条件。</p>

func (*ContainerregistryClient) DescribeImages

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

func (*ContainerregistryClient) DescribeQuotas

查询配额

func (*ContainerregistryClient) DescribeRegistries

批量查询指定用户下所有 registry 详情。

暂不支持 filter.

func (*ContainerregistryClient) DescribeRegistry

查询指定用户下某个 registry 详情。

func (*ContainerregistryClient) DescribeRepositories

描述用户指定 registry 下的 repository.

func (*ContainerregistryClient) GetAuthorizationToken

<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 (*ContainerregistryClient) ReleaseAuthorizationToken

释放用户 registry 的 token。

func (*ContainerregistryClient) SetConfig

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

func (*ContainerregistryClient) SetLogger

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

Jump to

Keyboard shortcuts

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