Skip to content

Commit

Permalink
Add InsecureTLS method into backend for S3 (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: Anisur Rahman <[email protected]>
  • Loading branch information
anisurrahman75 authored Feb 5, 2024
1 parent a5cf0aa commit 6cee87e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1/generated.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions api/v1/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 6cee87e

Please sign in to comment.