소스 검색

Add godoc comment about client tls verification.

Signed-off-by: David Calavera <david.calavera@gmail.com>
David Calavera 9 년 전
부모
커밋
4e2c0f385c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      api/client/lib/client.go

+ 1 - 0
api/client/lib/client.go

@@ -37,6 +37,7 @@ type Client struct {
 // Use DOCKER_HOST to set the url to the docker server.
 // Use DOCKER_HOST to set the url to the docker server.
 // Use DOCKER_API_VERSION to set the version of the API to reach, leave empty for latest.
 // Use DOCKER_API_VERSION to set the version of the API to reach, leave empty for latest.
 // Use DOCKER_CERT_PATH to load the tls certificates from.
 // Use DOCKER_CERT_PATH to load the tls certificates from.
+// Use DOCKER_TLS_VERIFY to enable or disable TLS verification, off by default.
 func NewEnvClient() (*Client, error) {
 func NewEnvClient() (*Client, error) {
 	var transport *http.Transport
 	var transport *http.Transport
 	if dockerCertPath := os.Getenv("DOCKER_CERT_PATH"); dockerCertPath != "" {
 	if dockerCertPath := os.Getenv("DOCKER_CERT_PATH"); dockerCertPath != "" {