Pubtools-pyxis
项目描述
一组用于操作Pyxis服务的脚本。
需求
Python 3.7+
功能
pubtools-pyxis-get-operator-indices - 获取满足指定条件的索引镜像列表 pubtools-pyxis-get-repo-metadata - 获取Comet仓库的元数据 pubtools-pyxis-upload-signatures - 将容器签名上传到Pyxis
设置
$ pip install -r requirements.txt $ pip install . or $ python setup.py install
用法
获取操作索引
pubtools-pyxis-get-operator-indices \ --pyxis-server https://pyxis-server-url/ \ --pyxis-krb-principal lgallovi@REDHAT.COM \ --ocp-versions-range 4.6 \ --pyxis-insecure pubtools-pyxis-get-operator-indices \ --pyxis-server https://pyxis-server-url/ \ --pyxis-krb-principal iib-stage@REDHAT.COM \ --pyxis-krb-ktfile /path/to/file.keytab \ --ocp-versions-range 4.5-4.7 pubtools-pyxis-get-operator-indices \ --pyxis-server https://pyxis-server-url/ \ --pyxis-ssl-crtfile /path/to/file.crt \ --pyxis-ssl-keyfile /path/to/file.key \ --ocp-versions-range 4.6
获取仓库元数据
pubtools-pyxis-get-repo-metadata \ --pyxis-server https://pyxis-server-url/ \ --pyxis-ssl-crtfile /path/to/file.crt \ --pyxis-ssl-keyfile /path/to/file.key \ --repo-name some-repo/name pubtools-pyxis-get-repo-metadata \ --pyxis-server https://pyxis-server-url/ \ --pyxis-ssl-crtfile /path/to/file.crt \ --pyxis-ssl-keyfile /path/to/file.key \ --repo-name some-repo/name \ --only-internal-registry pubtools-pyxis-get-repo-metadata \ --pyxis-server https://pyxis-server-url/ \ --pyxis-ssl-crtfile /path/to/file.crt \ --pyxis-ssl-keyfile /path/to/file.key \ --repo-name some-repo/name \ --only-partner-registry
上传签名
pubtools-pyxis-upload-signatures \ --pyxis-server https://pyxis-server-url/ \ --pyxis-ssl-crtfile /path/to/file.crt \ --pyxis-ssl-keyfile /path/to/file.key \ --signatures '[{"foo": "bar"}]' pubtools-pyxis-upload-signatures \ --pyxis-server https://pyxis-server-url/ \ --pyxis-ssl-crtfile /path/to/file.crt \ --pyxis-ssl-keyfile /path/to/file.key \ --signatures @signatures.json
获取签名
pubtools-pyxis-get-signatures \ --pyxis-server https://pyxis-server-url/ \ --pyxis-ssl-crtfile /path/to/file.crt \ --pyxis-ssl-keyfile /path/to/file.key \ --manifest-digest sha256-digest-of-manifest,sha256-digest-of-other-manifest pubtools-pyxis-get-signatures \ --pyxis-server https://pyxis-server-url/ \ --pyxis-ssl-crtfile /path/to/file.crt \ --pyxis-ssl-keyfile /path/to/file.key \ --manifest-digest sha256-digest-of-manifest --reference pull-reference-of-image,pull-reference-of-image2
变更日志
1.3.5 (2023-03-14)
并行删除签名
1.3.4 (2023-03-01)
修复请求线程
停止对Python 2的支持
1.3.3 (2022-11-09)
容忍签名上传的409错误
添加Bandit检查并解决Bandit发现的问题
1.3.2 (2021-10-15)
修改了重试请求的方法
1.3.1 (2021-08-19)
修复了使用Python 2.6 distutils构建的问题
1.3.0 (2021-08-18)
添加了文档
添加了对签名并行上传的支持
1.2.0 (2021-06-10)
添加了将文件作为输入类型添加到–manifest_digests和–reference for get-signatures的能力
添加了删除签名的入口点
1.1.0 (2021-03-29)
添加了 upload-signatures 和 get-signatures 以与 pyxis sigstore 交互
添加了 get-repository-metadata 以从 pyxis 获取存储库数据
修复了 py2.6 pip URL
1.0.0 (2020-11-27)
将版本设置为 1.0.0 以表示稳定版本
0.2.0 (2020-11-23)
修复模块路径
0.1.0 (2020-11-20)
初始发布。
项目详情
关闭
pubtools-pyxis-1.3.5.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 53245abfb83fb4d2127e1e4b7a0345e0500ac30382ea8ec1599319bbd7633ac5 |
|
MD5 | 6744d13e333f3bdc4959796c99707dd5 |
|
BLAKE2b-256 | 7ee802b5b1d930b2563246eb4fa7e5a4de039fd29096f1792eab026372a646cc |
关闭
pubtools_pyxis-1.3.5-py2.py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 555ae4528fde9f6a0fe2eceea6bed751b446c28a580511ed9a53f0b16baeb861 |
|
MD5 | 0d989f1b47204de8829e0bed4d3616bf |
|
BLAKE2b-256 | bd7aa4cc634cdbfccf19a6fd0079c77bdbe02a4f929a2b10807d979309c718a1 |