terraform-provider-stackitp.../generator/cmd/publish/gpg.go
Marcel S. Henselin 7d4cbb6b08
All checks were successful
Publish / Check GoReleaser config (push) Successful in 5s
Publish / Publish provider (push) Successful in 16m14s
feat: initial copy of v0.1.0
2026-03-13 09:03:49 +01:00

14 lines
281 B
Go

package publish
import (
"fmt"
"strings"
)
func (p *Provider) ReadGpgFile() (string, error) {
gpgFile, err := ReadFile(p.GpgPubKeyFile)
if err != nil {
return "", fmt.Errorf("error reading '%s' file: %w", p.GpgPubKeyFile, err)
}
return strings.Join(gpgFile, "\n"), nil
}