github.com/kubeshop/testkube@v1.17.23/pkg/storage/minio/helpers.go (about) 1 package minio 2 3 func GetTLSOptions(ssl, skipVerify bool, certFile, keyFile, caFile string) []Option { 4 var opts []Option 5 if ssl { 6 if skipVerify { 7 opts = append(opts, Insecure()) 8 } else { 9 opts = append(opts, ClientCert(certFile, keyFile)) 10 if caFile != "" { 11 opts = append(opts, RootCAs(caFile)) 12 } 13 } 14 } 15 return opts 16 }