ping ohpm 仓库地址。
对给定的或者是配置中的仓库地址进行身份验证。如果有效,将会输出相关信息,比如以下内容:
ohpm INFO: PING your_registry ohpm INFO: PONG 255ms
否则将会输出错误信息,比如以下内容:
ohpm INFO: PING your_registry ohpm ERROR: HttpCode 404, API ping in your_registry - Not Found
可以在 ping 命令后面配置 --ft <number> 或者 --fetch_timeout <number> 参数,设置操作的超时时间,如果没有指定,默认超时时间为 60000 ms。
可以在ping命令后面不配置参数、配置--strict_ssl或--strict_ssl true参数时,开启校验HTTPS证书。
从ohpm 26.0.0.630版本开始,如需关闭校验,可配置--no-strict_ssl或--strict_ssl false参数,推荐使用--no-strict_ssl参数。