models

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: Apache-2.0 Imports: 0 Imported by: 11 modules, 10 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 AuthorizationData

type AuthorizationData struct {

	/* 基于base64编码的字符串,包含指定JCR registry的授权信息。解码后可用于docker login。 (Optional) */
	AuthorizationToken string `json:"authorizationToken"`

	/* 用户直接使用的docker login 命令行 (Optional) */
	LoginCmdLine string `json:"loginCmdLine"`

	/* Unix 时钟,记录authorization token的过期时间。默认Authorization tokens有效期为12小时。 (Optional) */
	ExpiresAt string `json:"expiresAt"`
}

type ImageDetail

type ImageDetail struct {

	/* image registry 表示镜像的注册表归属 (Optional) */
	RegistryName string `json:"registryName"`

	/* image repository表示镜像的仓库归属 (Optional) */
	RepositoryName string `json:"repositoryName"`

	/* image manifest的sha256摘要 (Optional) */
	ImageDigest string `json:"imageDigest"`

	/* 镜像的Manifest (Optional) */
	ImageManifest string `json:"imageManifest"`

	/* 当前image被push到repository的时间 (Optional) */
	ImagePushedAt string `json:"imagePushedAt"`

	/* image在repository中的大小。从Docker 1.9之后的版本, Docker client会压缩镜像层数据再push到V2版本的Docker registry。
	docker image命令显示的是解压后的镜像大小,因此会比DescribeImages接口返回的镜像大小会大很多。
	 (Optional) */
	ImageSizeMB float64 `json:"imageSizeMB"`

	/* 镜像关联的所有Tag (Optional) */
	ImageTags []string `json:"imageTags"`

	/* 最近pull的时间 (Optional) */
	LastPullAt string `json:"lastPullAt"`

	/* 镜像被拉取次数 (Optional) */
	TotalPullTimes int `json:"totalPullTimes"`
}

type Quota

type Quota struct {

	/* 资源类型 [registry/repository] (Optional) */
	ResourceType string `json:"resourceType"`

	/* 可用资源上限 (Optional) */
	Limit int `json:"limit"`

	/* 已用资源数量 (Optional) */
	Used int `json:"used"`
}

type Registry

type Registry struct {

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

	/* registry endporint url (Optional) */
	RegistryUri string `json:"registryUri"`

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

	/* regsitry 使用的总存储空间 单位 (MB) (Optional) */
	TotalSpaceUsedMB float64 `json:"totalSpaceUsedMB"`

	/* registry 的创建时间 (Optional) */
	CreateTime string `json:"createTime"`
}

type Repository

type Repository struct {

	/* 记录用户repository创建的时间。 (Optional) */
	CreatedAt string `json:"createdAt"`

	/* 记录用户repository更新的时间。 (Optional) */
	UpdatedAt string `json:"updatedAt"`

	/* 注册表名称。 (Optional) */
	RegistryName string `json:"registryName"`

	/* 镜像仓库名称。 (Optional) */
	RepositoryName string `json:"repositoryName"`

	/* 镜像仓库中的镜像总个数。 (Optional) */
	RepositoryUri string `json:"repositoryUri"`

	/* 镜像仓库大小。 (Optional) */
	TotalSpaceUsedMB float64 `json:"totalSpaceUsedMB"`

	/* 镜像仓库描述。 (Optional) */
	Description string `json:"description"`
}

type RepositoryShort

type RepositoryShort struct {

	/* 记录用户repository创建的时间。 (Optional) */
	CreatedAt string `json:"createdAt"`

	/* 镜像仓库repository名称。 (Optional) */
	RepositoryName string `json:"repositoryName"`

	/* repository的URI,用户通过docker CLI,制定该URI直接进行docker pull/push等操作。 (Optional) */
	RepositoryUri string `json:"repositoryUri"`
}

Jump to

Keyboard shortcuts

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