mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-02 12:06:09 -04:00
cli: enable JSON output for constellation verify
on Azure TDX (#3164)
* Remove formatter factory * Enable `constellation verify` with JSON output for Azure TDX --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
b3fcdc9a22
commit
daaa7755a7
7 changed files with 90 additions and 157 deletions
|
@ -157,7 +157,7 @@ func getCertChain(cfg config.AttestationCfg) ([]byte, error) {
|
|||
return certChain, nil
|
||||
}
|
||||
|
||||
// FormatString builds a string representation of a report that is inteded for console output.
|
||||
// FormatString builds a string representation of a report that is intended for console output.
|
||||
func (r *Report) FormatString(b *strings.Builder) (string, error) {
|
||||
if len(r.ReportSigner) != 1 {
|
||||
return "", fmt.Errorf("expected exactly one report signing certificate, found %d", len(r.ReportSigner))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue