如何在Google Cloud Library中使用代理 [英] How to use a proxy with google cloud libraries
本文介绍了如何在Google Cloud Library中使用代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码处于有出口限制的环境中,因此我需要通过代理才能连接到外界.谷歌云库是否有能力传递代理并通过该代理进行连接?
My code is in an environment that has egress restrictions therefore I need to go through a proxy in order to connect to the outside world. Does google cloud libraries have the ability to pass in a proxy and connect via that?
推荐答案
Google Cloud Client库不提供内置的代理支持.您将必须配置系统代理或特定于环境的代理.
Google Cloud Client libraries do not offer a built in proxy support. You will have to configure a system proxy or environment specific proxy.
For example, if you're running a JVM you can configure the proxy settings as described here.
Golang也支持类似的功能.
这篇关于如何在Google Cloud Library中使用代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文