MCPcopy Create free account
hub / github.com/nginx-proxy/docker-gen / tlsEnabled

Function tlsEnabled

internal/dockerclient/docker_cli.go:47–54  ·  view source on GitHub ↗
(tlsCert, tlsCaCert, tlsKey string)

Source from the content-addressed store, hash-verified

45}
46
47func tlsEnabled(tlsCert, tlsCaCert, tlsKey string) bool {
48 for _, v := range []string{tlsCert, tlsCaCert, tlsKey} {
49 if e, err := utils.PathExists(v); e && err == nil {
50 return true
51 }
52 }
53 return false
54}
55
56type DockerContainer struct {
57}

Callers 2

NewDockerClientFunction · 0.85
TestTlsEnabledFunction · 0.85

Calls 1

PathExistsFunction · 0.92

Tested by 1

TestTlsEnabledFunction · 0.68