move cloud KMS providers to an external plugin

This commit is contained in:
Nicola Murino
2021-07-17 13:08:05 +02:00
parent 6d313f6d8f
commit 338301955f
11 changed files with 5 additions and 380 deletions

View File

@@ -22,11 +22,11 @@ type Info struct {
func GetAsString() string {
var sb strings.Builder
sb.WriteString(info.Version)
if len(info.CommitHash) > 0 {
if info.CommitHash != "" {
sb.WriteString("-")
sb.WriteString(info.CommitHash)
}
if len(info.BuildDate) > 0 {
if info.BuildDate != "" {
sb.WriteString("-")
sb.WriteString(info.BuildDate)
}