diff --git a/api/v1/generated.pb.go b/api/v1/generated.pb.go index 8fda3229..61b39051 100644 --- a/api/v1/generated.pb.go +++ b/api/v1/generated.pb.go @@ -21,6 +21,7 @@ package v1 import ( fmt "fmt" + io "io" math "math" math_bits "math/bits" diff --git a/api/v1/helpers.go b/api/v1/helpers.go index d24d5434..7418e89c 100644 --- a/api/v1/helpers.go +++ b/api/v1/helpers.go @@ -163,3 +163,11 @@ func (backend Backend) Region() (string, bool) { } return "", false } + +// InsecureTLS returns insecureTLS of S3/S3 compatible backend +func (backend Backend) InsecureTLS() bool { + if backend.S3 != nil { + return backend.S3.InsecureTLS + } + return false +}